Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

A script error occurs in Workflow Designer in Microsoft Dynamics CRM 2013


View products that this article applies to.

Symptoms

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>



↑ Back to the top


Cause

This occurs because of fields existing with the naming convention of _c or _d. 

For example:

field1 = new_myfield_c

field2 = new_myfield_d

The <fieldname>_c naming convention in Dynamics CRM in the form HTML DOM represents the TD containing the label. Additionally, <fieldname>_d naming convention in Dynamics CRM in the form HTML DOM represents Cell id for a CRM field.

↑ Back to the top


Resolution

It is recommended to stay away from using this naming convention. This is being reviewed for a future CRM release.

↑ Back to the top


Keywords: kbmbspartner, kbmbsmigrate, kbsurveynew, kb

↑ Back to the top

Article Info
Article ID : 2976454
Revision : 1
Created on : 1/7/2017
Published on : 6/11/2014
Exists online : False
Views : 224