Loading
Salesforce から送信されるメールは、承認済ドメインからのみとなります続きを読む

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