powershell - Strange new error in SSIS when working drive and executable drive are different -


i'm using visual studio 2008 code new package call powershell script load csv file in database.

the issue i'm facing when i'm create "execute process task" got , error: 0xc0029151, because powershell exe in drive c: , powershell script in drive d:.

if copy paste powershell binaries in d: drive, every thing works well.

this strange because i've got ssis same task , 1 runnin well.

note: looks somewhere need set "cd /d" setting change drive...

first of all, 0xc0029151 not strange, , not new error. it's dts_e_execproctask_processexitcodeexceeds means process exit code other expected. in other words, script may not working, or powershell call incorrect.

if script fine, try run entire command cmd (that powershell.exe script location parameter - assume that's way you're running in task).

if it's working, there may reason. execute process task has workingdirectory parameter, it's not being set .ps1, rather powershell.exe (because that's you're running in task), while script may still have different directory set it. in case add set-location in script , see happens.


Comments

Popular posts from this blog

c# - How Configure Devart dotConnect for SQLite Code First? -

java - Copying object fields -

c++ - Clear the memory after returning a vector in a function -