I am having issues running the following VB script to create a new directory in my SSIS package. It should create the following new path D:\customers\documents\orders\20171205.
Public Sub Main()
'set dir path
Dts.Variables("var_DirPath").Value =
"D:\customers\documents\orders\" + Date.Today.Year.ToString +
Date.Today.Month.ToString + Date.Today.Day.ToString
Dts.TaskResult = ScriptResults.Success
End Sub
The ReadWriteVariables of the script task editor is configured to User:var_DirPath. The value of the variable is “D:\customers\documents\orders\"
The file task is configured for
UseDirector/Exists = True
Operation = Create directory
IsSourcePathAvailable = True
Source variable = User:var_DirPath
It resolves in the package during debugging, but I do not know why this simple script does not work.
Any assistance is appreciated.