Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Issue with custom SSIS powershell task


Issue with custom SSIS powershell task

Author
Message
jasonclements32304
jasonclements32304
SSC Rookie
SSC Rookie (28 reputation)SSC Rookie (28 reputation)SSC Rookie (28 reputation)SSC Rookie (28 reputation)SSC Rookie (28 reputation)SSC Rookie (28 reputation)SSC Rookie (28 reputation)SSC Rookie (28 reputation)

Group: General Forum Members
Points: 28 Visits: 201
I 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. http://www.red-gate.com/messageboard/viewtopic.php?t=16405

SSIS Powershell task: http://powershellscripttask.codeplex.com/ and http://ssisctc.codeplex.com/
Orlando Colamatteo
Orlando Colamatteo
SSCrazy Eights
SSCrazy Eights (8.3K reputation)SSCrazy Eights (8.3K reputation)SSCrazy Eights (8.3K reputation)SSCrazy Eights (8.3K reputation)SSCrazy Eights (8.3K reputation)SSCrazy Eights (8.3K reputation)SSCrazy Eights (8.3K reputation)SSCrazy Eights (8.3K reputation)

Group: General Forum Members
Points: 8259 Visits: 14368
It could be a permissions issue. Anything in the Agent Job logs?

__________________________________________________________________________________________________
There are no special teachers of virtue, because virtue is taught by the whole community. --Plato
jasonclements32304
jasonclements32304
SSC Rookie
SSC Rookie (28 reputation)SSC Rookie (28 reputation)SSC Rookie (28 reputation)SSC Rookie (28 reputation)SSC Rookie (28 reputation)SSC Rookie (28 reputation)SSC Rookie (28 reputation)SSC Rookie (28 reputation)

Group: General Forum Members
Points: 28 Visits: 201
I found this in the log.


Date 3/8/2013 8:16:52 AM
Log Windows NT (Red Gate Software)

Source SQL Doc 2
Category (0)
Event 32
Computer MYPC

Message
CommandLine
Main:Unhandled Exception
System.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)


Orlando Colamatteo
Orlando Colamatteo
SSCrazy Eights
SSCrazy Eights (8.3K reputation)SSCrazy Eights (8.3K reputation)SSCrazy Eights (8.3K reputation)SSCrazy Eights (8.3K reputation)SSCrazy Eights (8.3K reputation)SSCrazy Eights (8.3K reputation)SSCrazy Eights (8.3K reputation)SSCrazy Eights (8.3K reputation)

Group: General Forum Members
Points: 8259 Visits: 14368
That'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.

__________________________________________________________________________________________________
There are no special teachers of virtue, because virtue is taught by the whole community. --Plato
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search