Flow designer returns Status 1 for powershell script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2025 11:19 PM - edited 08-04-2025 11:20 PM
Hi ,
When trying to execute a OOB flow action - Does Group exists? (from adv2 spoke), we are getting following in flow logs:
1. PowerShell Script execution failed. Script returned status 1 using account <Service-account name>.
2. Failed while executing ActionDoesGroupExists_AD_v2.ps1 (Access denied)
3. IPaasActionProbe | PowerShell Script execution failed. Script returned status 1 using account <Service-account name>.
Points to be noted:
1. Test credentials button on flow is returning no error and is successfully validating.
2. Same script with same creds when executing directly in Mid Server is working fine.
Need help on how to resolve this issue. Thanks
Regards,
Rohith.S
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-07-2025 09:01 PM
But it is not working as expected with the Credtype variable available. any idea on how to resolve this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-07-2025 09:09 PM
one observation , when i give credType as WMI its working fine. any reason for that?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-07-2025 09:21 PM
@Rohith Sureshk1 Ok ..
Is the account you're using a local account or one created in Active Directory ?
I'm assuming that you are using local account
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-07-2025 09:31 PM
@J Siva its AD account
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-07-2025 09:49 PM
@Rohith Sureshk1
Are you passing the service account name in the below format?
<DOMAIN>\<username>
