Workflow Failure : Dunning

Issue

Client having an issue with their existing workflow and an error message is like “This email notifies you of errors which occurred within asynchronous processing of a workflow that you own. For more information about these types of emails, please refer to the following page in Help Center: SuiteFlow (Workflow) > Testing and Troubleshooting Workflows > Viewing Workflow Activity > Error Handling for Scheduled Workflows.”

Error On Records:{“type”:”error.SuiteScriptError”,”name”:”JS_EXCEPTION”,”message”:”org.mozil=la.javascript .EcmaError:TypeError: Cannot read property \”value\” from undefined(/SuiteBundles/Bundle392827/com.netsuite.dunningletter/ss2/src/dunning/app /app_dunning_template_manager.js#102)”

Solution

The error message TypeError: Cannot read property \”value\” from undefined points to a line in the JS file. This line calls a function with parameter as (language[0].value).

After analyzing the scripts, templates and workflows, noticed that the Language field in the Preferences subtab in the Customer record is found empty in some of the records. When this language field is empty, those value will be missing in the corresponding script also and it results in generation of the error ‘Cannot read property \”value\” from undefined’.

Leave a comment

Your email address will not be published. Required fields are marked *