Error Submitting Batch For Workflow 2.0 Approval

September 8th, 2016 by

Microsoft Dynamics GPWhile preparing earlier today for a client demo on Workflow 2.0, I encountered an error while trying to submit a batch for approval.

Workflow Error
[Microsoft][SQL Server Native Client 11.0][SQL Server][A .NET Framework error occurred during execution of user-defined routine or aggregate "Get "GetAssignedUsers".
System.IO.FileLoadException: Could not load file or assembly 'System.DirectoryServices, Vers[

After clicking the OK button on the erro message the batch shows as automatically rejected.

I had a suspicion that this might be a result of the CLR Assemblies not having deployed correctly. Last time I saw this, it as when trying to select a manager for a Workflow Type while doing training.

Today while preparing, I had been able to select managers and users who would approve the workflow steps without any problems. I figured there was nothing to lose by giving a redploy of the assemblies another go:

exec wfDeployClrAssemblies
exec wfDeployClrAssemblies

After running the command against the system database (typically called DYNAMICS, but called D16R1 in my demo environment), I was able to resubmit the batch for approval.

Read original post Error Submitting Batch For Workflow 2.0 Approval at azurecurve|Ramblings of a Dynamics GP Consultant

Source: azurecurve

Leave a Reply