Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7682819
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T18:39:21+00:00 2026-05-31T18:39:21+00:00

For more detailed logging, I want to retrieve the [System::TaskName] Right now, when starting

  • 0

For more detailed logging, I want to retrieve the [System::TaskName]

Right now, when starting from the task that fails we go to ‘script task’, there I fetch [System::TaskName] and write that in the log. Logically this writes the current TaskName = ‘Script task’ instead of the failed task
enter image description here

Problem is the System::TaskName is only know inside the task, logical…
In fact I want to update a variable ‘User::CurrentTaskName’ from inside the dataflow, = from inside the task.

This would be easiest if I could use a ‘Script Task’ component inside a dataflow but I can’t find that.
Probably I need a workaround.

Hope you guys understand approximately what I mean…

Thanks in advance!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T18:39:22+00:00Added an answer on May 31, 2026 at 6:39 pm

    I was able to access the TaskName by adding the following inside a Script Component.

    Private Function ReadVariable(ByVal varName As String) As Object
        Dim result As Object
        Try
            Dim vars As IDTSVariables100
            Me.VariableDispenser.LockForRead(varName)
            Me.VariableDispenser.GetVariables(vars)
            Try
                result = vars(varName).Value
            Catch ex As Exception
                Throw ex
            Finally
                vars.Unlock()
            End Try
        Catch ex As Exception
            Throw ex
        End Try
        Return result
    End Function
    

    and then accessing the variable like so

    ReadVariable("System::TaskName")
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there anyway to get more detailed error data back from createFileAtPath I was
Summary: I want to see more detailed XML/SVG parsing error messages. I want to
Subj. More detailed: If I have JS-code on the page, loaded from my site,
I have a little Try Catch block that will tell the user more detailed
how to let SBT generate more detailed outputs of tests? Now only thing I
Rational I would like to have more detailed logging debugging/logging output on a few
More specifically I want to test whether Oracle ODP.Net is installed on a machine.
Is there a more detailed error to be found other than the console's EXC_BAD_ACCESS?
I've written a more detailed post about this on my blog at: http://idisposable.co.uk/2010/07/chrome-are-you-sanitising-my-inputs-without-my-permission/ but
I've asked very similar question before and should have mentioned more detailed. Last time

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.