Loading

Salesforce CPQ Calculate API Fails with Error when Callback class has "CPQService" as Apex Class Name in Spring '22

Дата публикации: Sep 27, 2025
Описание
"CPQService" is a reserved name for Apex class in Salesforce CPQ starting in Spring '22 (v236). There is a corresponding SBQQ.CPQService class that is used by the Salesforce CPQ managed package. If you have an Apex Class named CPQService and this is used as a callback when using Calculate API, one of the following errors may appear:
  • "SBQQ.CPQService does not have a no-arg constructor"
  • "System.NullPointerException: Attempt to de-reference a null object"
  • "System.TypeException: The configuration of your org has changed, please reload the page. Missing dependent object: Class: SBQQ.CPQService"

The error appears because SBQQ namespace is incorrectly appended in your custom class when the Calculate API runs because of the conflict with the CPQ managed class.

Решение
Change or update the Apex class to have a different name than "CPQService". Consider dependencies such as your Apex class referenced by other Apex classes when making a change. If it is referenced by other classes, you will need to remove the reference first before you can update an Apex class name.
Номер статьи базы знаний

000393023

 
Загрузка
Salesforce Help | Article