SSIS 2008 User Variable in Expression for Execute Process Task

ⅰ亾dé卋堺 提交于 2019-12-11 06:46:32

问题


I have an SSIS 2008 package.

I have 3 user variables in the package. One is for an the environment, one is for the path for an executable, and the other is part of a message for an email.

I have a Script Task that sets the variable for the path (strAppPath) based on the environment variable.

strAppPath is used in an expression for the Executable property of an Execute Process Task. The job fails stating that the executable path for the Execute Process Task is not set.

I'm assuming that it is checking this path before the Script Task sets the variable.

Is there a way to work around this?


回答1:


Right click on your Execute Process Task and select Properties. In the properties window, you will have a DelayValidation option that is currently set to False Flip that to True.

What is happening is that when the package starts, it goes through a validation phase to ensure everything is kosher before it begins (no need to start processing if something is broken). In your case, that full validation is not desired as the Execute Process Task won't be valid until right before it's time to run. The validation will occur, just that it is delayed until it is time for the task to begin. Make sense?



来源:https://stackoverflow.com/questions/18106255/ssis-2008-user-variable-in-expression-for-execute-process-task

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!