HI,
I have a package with project level parameters. I have managed to run it from the SSIS Integration Service Catalog and it works, I actually need to use the command prompt, test it and if it works convert it to a bat file and use it to run it as I would have to add it to the task scheduler.
Anyway, this is my command, where am I making mistake, since this is a project level variable, how do I change my command accordingly
DTExec.exe /f "C:\Users\gdmal\source\repos\SSISTutorial\SSISTutorial\Package.dtsx" /SET \Package.Variables[Project::ServerName].Properties[Value];"DESKTOP-6TI366J" /SET \Package.Variables[Project::DatabaseName].Properties[Value];"sourcedb"
I am getting the below error
Started: 1:40:16 AM Error: 2020-05-27 01:40:16.85 Code: 0xC00470A6 Source: Package Description: The variable "$Project::DatabaseName" was not found in the Variables collection. The variable might not exist in the correct scope. End Error Error: 2020-05-27 01:40:16.85 Code: 0xC0047098 Source: Package Description: Attempt to parse the expression "@[$Project::DatabaseName]" failed and returned error code 0xC00470A6. The expression cannot be parsed. It might contain invalid elements or it might not be well-formed. There may also be an out-of-memory error. End Error Error: 2020-05-27 01:40:16.85 Code: 0xC0017003 Source: Package Description: The expression "@[$Project::DatabaseName]" on property "\Package.Connections[localhost.sourcedb].Properties[InitialCatalog]" cannot be evaluated. Modify the expression to be valid. End Error Error: 2020-05-27 01:40:16.85 Code: 0xC00470A6 Source: Package Description: The variable "$Project::ServerName" was not found in the Variables collection. The variable might not exist in the correct scope. End Error Error: 2020-05-27 01:40:16.85 Code: 0xC0047098 Source: Package Description: Attempt to parse the expression "@[$Project::ServerName]" failed and returned error code 0xC00470A6. The expression cannot be parsed. It might contain invalid elements or it might not be well-formed. There may also be an out-of-memory error. End Error Error: 2020-05-27 01:40:16.85 Code: 0xC0017003 Source: Package Description: The expression "@[$Project::ServerName]" on property "\Package.Connections[localhost.sourcedb].Properties[ServerName]" cannot be evaluated. Modify the expression to be valid. End Error Warning: 2020-05-27 01:40:16.85 Code: 0x80012017 Source: Package Description: The package path referenced an object that cannot be found: "\Package.Variables[Project::ServerName].Properties[Value]". This occurs when an attempt is made to resolve a package path to an object that cannot be found. End Warning DTExec: Could not set \Package.Variables[Project::ServerName].Properties[Value] value to DESKTOP-6TI366J. Started: 1:40:16 AM Finished: 1:40:16 AM Elapsed: 0.157 seconds