I came across an interesting error within Dynamics yesterday when testing workflow on a VPC image of a clients environment. I submitted a Purchase Requisition into workflow and all went ok, however when one tries to navigate back to that record (or any other record submitted to workflow) on that form (i.e. when the workflow controls/ yellow bar is updated) the following error is displayed.
Error executing code: Wrong argument type for function.
(S)\Classes\SysWorkflowFormControls\getActionBarContentForOriginator - line 32
(C)\Classes\SysWorkflowFormControls\showOriginatorContent - line 19
(C)\Classes\SysWorkflowFormControls\updateControls - line 76
(C)\Classes\SysSetupFormRun\updateWorkflowControls - line 4
(C)\Classes\Info\formNotify
The Error seems to be linked mainly to datetime2str function call with in SysWorkflowFormControls.getActionBarContentForOriginator method.
The solution as described in this Communities Post is to simply ensure that you have installed at least Service Pack 1 to your AOS instance after restoring the clients environment onto the VPC or server.
Like this:
Be the first to like this post.