SQLServerCentral.com / SQL Server 2005 / SQL Server 2005 Integration Services / Issue with custom SSIS powershell task / Latest PostsInstantForum.NET v2.9.0SQLServerCentral.comhttp://www.sqlservercentral.com/Forums/notifications@sqlservercentral.comTue, 03 Mar 2015 11:58:27 GMT20RE: Issue with custom SSIS powershell taskhttp://www.sqlservercentral.com/Forums/Topic1428112-148-1.aspxThat's an error from SQL Doc and would not be related to this.Try looking in the Agent Job History log. Right-click the job and select View History.Fri, 08 Mar 2013 07:20:20 GMTOrlando ColamatteoRE: Issue with custom SSIS powershell taskhttp://www.sqlservercentral.com/Forums/Topic1428112-148-1.aspxI found this in the log.[code="other"]Date 3/8/2013 8:16:52 AMLog Windows NT (Red Gate Software)Source SQL Doc 2Category (0)Event 32Computer MYPCMessageCommandLineMain:Unhandled ExceptionSystem.ArgumentNullException: Value cannot be null.Parameter name: value at System.IO.Directory.SetCurrentDirectory(String path) at System.Environment.set_CurrentDirectory(String value) at RedGate.SQLDoc.Engine.Project.Project.(String ) at RedGate.SQLDoc.Engine.Project.Project.set_FilePathOfHtml(String value) at RedGate.SQLDoc.Engine.Project.Project..ctor() at RedGate.SQLDoc.Engine.Project.Project.LoadFromDisk(String pathAndFileName) at RedGate.SQLDoc.UI.CommandProcessor.RunProject() at RedGate.SQLDoc.UI.CommandProcessor.Run() at RedGate.SQLDoc.UI.Program.Main(String[] args)[/code]Fri, 08 Mar 2013 06:25:44 GMTjasonclements32304RE: Issue with custom SSIS powershell taskhttp://www.sqlservercentral.com/Forums/Topic1428112-148-1.aspxIt could be a permissions issue. Anything in the Agent Job logs?Thu, 07 Mar 2013 12:58:34 GMTOrlando ColamatteoIssue with custom SSIS powershell taskhttp://www.sqlservercentral.com/Forums/Topic1428112-148-1.aspxI have SSIS task calling custom powershell task and the package works when manually ran in BIDS. But when I call the package with SQL Agent as a scheduled job it complete in like 30 secs and it completes with successful reporting. It should take much longer; in BIDS like 15 mins. The powershell is not doing it's task with the SQL Agent. It's like it doesn't have enough time.I have set the SQL Agent Service to run as myself to clear any security issues.I have also setup a proxy account to run as myself but get the same results.When I run it from server's MSDB it works correctly. It just seems to be the SQL Agent process.This my SSIS package and powershell script. [url]http://www.red-gate.com/messageboard/viewtopic.php?t=16405[/url]SSIS Powershell task: [url]http://powershellscripttask.codeplex.com/[/url] and [url]http://ssisctc.codeplex.com/[/url]Thu, 07 Mar 2013 10:14:16 GMTjasonclements32304