A script error occurs when exiting the Workflow Designer in Microsoft Dynamics CRM 2013. This can occur for an entity when fields exist with the same schema name but one having suffix of “_c”. In some cases the Dynamic options do not populate when selecting fields in the workflow designer.
One of the following three script errors may occur:
1.
<CrmScriptErrorReport>
<ReportVersion>1.0</ReportVersion>
<ScriptErrorDetails>
<Message>Uncaught TypeError: Cannot read property 'length' of undefined</Message>
<Line>1</Line>
<URL>/_static/_forms/select.js?ver=1163742643</URL>
<PageURL>/SFA/Workflow/entityform.aspx?entityFullName=account&entityname=account&stepId=CreateStep1&workflowId=0b37c976-7e2b-4314-9901-2c6458721c42</PageURL>
<Function>anonymousr:Cannotreadproperty'length'ofundefined</Function>
<CallStack>
<Function>anonymousr:Cannotreadproperty'length'ofundefined</Function>
</CallStack>
</ScriptErrorDetails>
</CrmScriptErrorReport>
2.
<CrmScriptErrorReport>
<ReportVersion>1.0</ReportVersion>
<ScriptErrorDetails>
<Message>Uncaught TypeError: Cannot read property 'undefined' of undefined</Message>
<Line>1</Line>
<URL>/_static/_forms/select.js?ver=1163742643</URL>
<PageURL>/SFA/Workflow/entityform.aspx?entityFullName=account&entityname=account&stepId=CreateStep1&workflowId=0b37c976-7e2b-4314-9901-2c6458721c42</PageURL>
<Function>anonymousr:Cannotreadproperty'undefined'ofundefined</Function>
<CallStack>
<Function>anonymousr:Cannotreadproperty'undefined'ofundefined</Function>
</CallStack>
</ScriptErrorDetails>
</CrmScriptErrorReport>
3.
<CrmScriptErrorReport>
<ReportVersion>1.0</ReportVersion>
<ScriptErrorDetails>
<Message>Uncaught TypeError: Cannot read property 'length' of undefined</Message>
<Line>1</Line>
<URL>/_static/_forms/textinputbehavior.js?ver=401231793</URL>
<PageURL>/SFA/Workflow/entityform.aspx?entityFullName=account&entityname=account&stepId=CreateStep1&workflowId=c8c907a5-73fd-4f9e-a18f-e72d2d379bde</PageURL>
<Function>anonymousr:Cannotreadproperty'length'ofundefined</Function>
<CallStack>
<Function>anonymousr:Cannotreadproperty'length'ofundefined</Function>
</CallStack>
</ScriptErrorDetails>
<ClientInformation>
</CrmScriptErrorReport>
One of the following three script errors may occur:
1.
<CrmScriptErrorReport>
<ReportVersion>1.0</ReportVersion>
<ScriptErrorDetails>
<Message>Uncaught TypeError: Cannot read property 'length' of undefined</Message>
<Line>1</Line>
<URL>/_static/_forms/select.js?ver=1163742643</URL>
<PageURL>/SFA/Workflow/entityform.aspx?entityFullName=account&entityname=account&stepId=CreateStep1&workflowId=0b37c976-7e2b-4314-9901-2c6458721c42</PageURL>
<Function>anonymousr:Cannotreadproperty'length'ofundefined</Function>
<CallStack>
<Function>anonymousr:Cannotreadproperty'length'ofundefined</Function>
</CallStack>
</ScriptErrorDetails>
</CrmScriptErrorReport>
2.
<CrmScriptErrorReport>
<ReportVersion>1.0</ReportVersion>
<ScriptErrorDetails>
<Message>Uncaught TypeError: Cannot read property 'undefined' of undefined</Message>
<Line>1</Line>
<URL>/_static/_forms/select.js?ver=1163742643</URL>
<PageURL>/SFA/Workflow/entityform.aspx?entityFullName=account&entityname=account&stepId=CreateStep1&workflowId=0b37c976-7e2b-4314-9901-2c6458721c42</PageURL>
<Function>anonymousr:Cannotreadproperty'undefined'ofundefined</Function>
<CallStack>
<Function>anonymousr:Cannotreadproperty'undefined'ofundefined</Function>
</CallStack>
</ScriptErrorDetails>
</CrmScriptErrorReport>
3.
<CrmScriptErrorReport>
<ReportVersion>1.0</ReportVersion>
<ScriptErrorDetails>
<Message>Uncaught TypeError: Cannot read property 'length' of undefined</Message>
<Line>1</Line>
<URL>/_static/_forms/textinputbehavior.js?ver=401231793</URL>
<PageURL>/SFA/Workflow/entityform.aspx?entityFullName=account&entityname=account&stepId=CreateStep1&workflowId=c8c907a5-73fd-4f9e-a18f-e72d2d379bde</PageURL>
<Function>anonymousr:Cannotreadproperty'length'ofundefined</Function>
<CallStack>
<Function>anonymousr:Cannotreadproperty'length'ofundefined</Function>
</CallStack>
</ScriptErrorDetails>
<ClientInformation>
</CrmScriptErrorReport>