Administrators may occasionally encounter the following error message while attempting to view customer records in NetSuite:
Error "org.mozilla.javascript.EcmaError: TypeError: Cannot call method "updateDisplayType" of null (/SuiteBundles/Bundle 245812/com.netsuite.donormanagement/src/DonorIndividualForm/usecase/CustomerUEFormUseCases.js#49)"
This issue typically occurs when a required custom segment (e.g., “Household”) is not properly enabled or linked to the Customer entity. This guide outlines the steps to resolve the error through correct custom segment configuration.
Problem Details
- Error Context: Viewing a customer record via Lists > Relationships > Customers and clicking "View".
- Source: SuiteScript error related to a custom bundle (likely NFP Constituent Management.)
- Likely Cause: The ‘Household’ custom segment is not applied to the Customer entity, causing a script to fail when it expects this segment to be present.
Step-by-Step Solution
- Go to Customization > Lists, Records, & Fields > Custom Segments.
- Edit the 'Household' Segment
- In the segment configuration, click the Application & Sourcing tab.
- Under this tab, locate the Entities subtab.
- On the Entities subtab, ensure the checkbox next to Customer is checked.
- Click Save to apply the changes.
- Return to Lists > Relationships > Customers and attempt to view a customer record.
Result: The error should no longer appear.
Additional Recommendations
If you have additional custom scripts or bundles that rely on segments, ensure all linked entities are correctly enabled. If issues persist after these changes, review the full error trace and consult NetSuite Support.
We’d love to hear your thoughts – please feel free to share any insights or experiences you have in the comments or post a discussion in the NetSuite Admin Corner and let's continue learning together!