Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
jobid empty REST API ( sometimes ) - workflow executed correctly
2016-09-26
08:15 AM
3,279 Views
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Calling WFA from POSH using REST API. Finding frequent timeouts to get a job ID when executing a workflow.
Write-Host "Executing workflow : $workflowname"
$jobid = $wfa.executeWorkflow (...)
The workflow is executed fine, but very often the $jobid shows an empty variable.
Is there any way to fix this?
Thanks in advance.
Solved! See The Solution
1 ACCEPTED SOLUTION
trentino123 has accepted the solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Default time-out for a Web Service Proxy object ( $wfa) is 100 sec ( 100000 ms ). You can modify it as:
# Making it 500 sec.
$wfa.Timeout = 500000
## Now call Execute workflow method
$jobid = $wfa.executeWorkflow (...)
sinhaa
If this post resolved your issue, help others by selecting ACCEPT AS SOLUTION or adding a KUDO.
2 REPLIES 2
trentino123 has accepted the solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Default time-out for a Web Service Proxy object ( $wfa) is 100 sec ( 100000 ms ). You can modify it as:
# Making it 500 sec.
$wfa.Timeout = 500000
## Now call Execute workflow method
$jobid = $wfa.executeWorkflow (...)
sinhaa
If this post resolved your issue, help others by selecting ACCEPT AS SOLUTION or adding a KUDO.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks Sinha ! That solved the issue.
