Error when using Powershell in FIM workflow

Hi,

I am using a PowerShell script to fetch the groups for a user. The script works perfectly fine in Powershell Console. The moment I use it in FIM Workflow, I get the following error.

Error: Failure on making enumeration web service call.

Filter = /Person[AccountName='<UsersAccountname>']

Error= The web service client has encountered the following class of error: IdentityIsNotFound
Details: Additional Text Details: The requestor's identity was not found.
Correlation Identifier: 705c19b5-0d03-45c0-b306-c46553eb804e
Failure Message:
Request Identifier:

I tried changing the filter in all possible ways and still landup getting the same error. Can someone help me here?

Thanks in Advance

Veena

May 25th, 2015 3:22am

This looks like an error on the user executing the Powershell workflow.

Are you executing as FIMService account or under another user?

Free Windows Admin Tool Kit Click here and download it now
May 25th, 2015 7:46am

Hi Leo,

Yes, I believe its running under FIMService account. Because when I am checking the event viewer its giving the below error:

GetCurrentUserFromSecurityIdentifier: No such user
Domain\FIMServiceAccount,
S-1-5-21-1380806297-2286519638-3397210491-103672

I do not see this service account present in Portal or MV.

Can you suggest me as to what can be done?

Thanks,

Veena

May 26th, 2015 2:15am

Hi Leo,

I projected the FIMService account from AD and provisioned to FIM Portal and executed the workflow. Now IdentyNotFound error is gone and I get the below error in event viewer when I execute the Powershell WF:

System.NullReferenceException:
Object reference not set to an instance of an object. at
FIM.Workflow.Common.Activities.RunPowerShellScript.RunScript(String script,
ArrayList arguments, Dictionary`2 parameters) at
FIM.Workflow.Common.Activities.RunPowerShellScript.Run_ExecuteCode(Object
sender, EventArgs e) at
System.Workflow.ComponentModel.Activity.RaiseEvent(DependencyProperty
dependencyEvent, Object sender, EventArgs e) at
System.Workflow.Activities.CodeActivity.Execute(ActivityExecutionContext
executionContext) at System.Workflow.ComponentModel.ActivityExecutor`1.Execute(T
activity, ActivityExecutionContext executionContext) at
System.Workflow.ComponentModel.ActivityExecutor`1.Execute(Activity activity,
ActivityExecutionContext executionContext) at
System.Workflow.ComponentModel.ActivityExecutorOperation.Run(IWorkflowCoreRuntime
workflowCoreRuntime) at System.Workflow.Runtime.Scheduler.Run()

The workflow gives a generic error stating" The workflow instance encountered an internal error during processing. Please contact your system administrator"

Any idea where I am going wrong?

Thanks,

Veena

Free Windows Admin Tool Kit Click here and download it now
May 26th, 2015 2:50am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics