SAP Knowledge Base Article - Public

3559886 - Error “Object reference not set to an instance of an object” when calling Edit() method

Symptom

"Object reference not set to an instance of an object." Error message thrown when calling Edit() method of IQuoteItem Interface for system list items. 

Environment

SAP SALES CLOUD CPQ

Reproducing the Issue

1. Open a quote with a system list item added
2. Open Script Workbench
3. Run following script: "a1 = context.Quote.GetItemByItemNumber(1).AsMainItem.Edit()"

Resolution

Tentative fix version is CPQ - 2505 release. There is no workaround for the issue.

Keywords

CPQ, Edit, method, scripting, python, interface, system, list, product, interface , KBA , CEC-SAL-CPQ , Sales Cloud CPQ , Known Error

Product

SAP CPQ 2025