1

For some reason my variables which I have added to the readonlyvariables(also tried readwritevariables)are not generated in code when I want to use them in code. What am I missing? I've added this script task in the Control Flow. When adding it in a data flow, it works fine. Is this the problem?

Regards!

enter image description here

enter image description here

1 Answer 1

2

Within a Script Task you have to use the following syntax:

Dts.Variables["varInputFile"].Value

Reference

Sign up to request clarification or add additional context in comments.

2 Comments

Thnx, it did work. Do you know why they made this difference? One time you can use Variables. the other time you need to use your answer...
@Miscode check the following article, you will find the difference in the comparison table: learn.microsoft.com/en-us/sql/integration-services/…

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.