Monday, January 14, 2019

SWV>Script R01B-CS: TranLinesAutomate&Validate: An unexpected error has occurred

This error has two symptoms, an email and a pop-up message.

The email contains the following:


Account: XXX
Bundle Name: SWV Contract Renewals Module
Environment: XXX
Date & Time: X/X/2013 X:XX pm
Record Type: Sales Order


Internal ID:


 

Script: R01B-CS: TranLinesAutomate&Validate
Type: Client
Function: fieldChanged_TranLines
Error: JS_EXCEPTION
TypeError 'length' is null or not an object

 

The pop-up message would appear as soon as an Item is selected in the line level:

An unexpected error occurred in a script running on this page.


 

fieldChanged_TranLines (fieldChange)
customscript_swe_line_auto_valid (13315)
JS_EXCEPTION
TypeError Unable to get property 'length' of undefined or null reference.


These errors would appear if the Multiple Prices feature has been disabled.

 

To verify:
- Navigate to Setup > Company > Enable Features
- Go to Transactions tab> Sales section
- Verify if the Multiple Prices feature is enabled, otherwise, check the box

- Click Save

No comments:

Post a Comment