Powershell activity output returning blank value

DanielCordick
Mega Patron
Mega Patron

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

1 ACCEPTED SOLUTION
7 REPLIES 7

Mike Patel
Tera Sage

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,

 

 

Ashutosh Munot1
Kilo Patron
Kilo Patron

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

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