Users receive error message “Cannot read property ‘key’ of undefined” in the Salesforce CPQ package when loading the Quote Line Editor after clicking the Edit Lines button on the quote record detail page.
This error can appear when there is a quote line that has a value in the SBQQ__RequiredBy__c field that references a quote line from a different quote. This data mix-up is often a result of cloning records via a method other than the Salesforce CPQ package’s “Clone With Related” button available on the Quote object.
To assist in locating the quote lines containing the invalid data, please use the SOQL query below. If you plug in the Id of the quote that is experiencing the error in both places with <ID OF QUOTE WITH ERROR>, the query will return a list of Ids of quote lines on the quote with improper lookups populated in SBQQ__RequiredBy__c.
SELECT Id FROM SBQQ__QuoteLine__c WHERE SBQQ__Quote__c = '<ID OF QUOTE WITH ERROR>' AND SBQQ__RequiredBy__c != null AND SBQQ__RequiredBy__r.SBQQ__Quote__c != '<ID OF QUOTE WITH ERROR>'
Note: a Price Action injecting a null value into a Checkbox field (as opposed to a true or false) will also encounter this similar error: Cannot read properties of undefined (reading 'type') when adding a Product to a Quote. Review Price Actions that target checkbox fields and ensure they do not inject a null value to resolve the behavior.
000382254

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.