- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-20-2020 03:33 PM
I am running a custom power shell activity and the output result is returning a blank value, when i run the same power shell script on my dev and test instance the output returns the desired value, i moved it to prod and now the output is blank. totally lost on this, i know my PS script works because i get an output on dev and test
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-20-2020 07:33 PM
Did you add the post processing script? like here

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-20-2020 07:33 PM
Did you add the post processing script? like here
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-21-2020 07:54 AM
Yes, I have a post processing script,
My custom powershell activity and workflow work on both of my dev and test environments, the output is not blank. Only when i moved to prod does the output return a blank value,

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-21-2020 09:26 AM
Hi,
Can you tell me few things:
1) PS script is on MID server?
2) Is this Script on your activity in script field?
3) Is this script stores on Script files on servicenow table?
4) Is this script running on MID server with MID Server account or with different credentials?
5) Is this script executed remotely on other server?
Thanks,
Ashutosh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-23-2020 09:10 AM
1. PS script is on the MID server,
2. the ps1 file is the script field, ( double checked this is the set up the same way on dev and test which work) same workflow, same custom activity, same credentials
3. Yes it is stored as a .ps1 file in the mid server script files
4. running with mid server account
5. no
--------------------------------------------------------------------
I checked the mid server agent logs and no errors are present the powershell scripts and returns a success. just no output on PROD