Loading

Industries CPQ Change to Quote Error "List Has No Rows" for Custom Profile

Fecha de publicación: Oct 15, 2026
Descripción

Issue

A user who is assigned a custom profile can't complete the out-of-the-box (OOTB) Move, Add, Change, Delete (MACD) Change to Quote Industries CPQ process. When the user starts Change to Quote from an existing asset, the process fails and displays an Apex error. The same process can complete for users whose profile already has the required access.

Symptoms

  • The Change to Quote process stops before the quote is created or updated.
  • The user sees the following error: List has no rows for assignment to SObject
  • The error stack trace references the vlocity_cmt.OmniChangeToQuoteWrapper class

Root Cause

The Change to Quote process runs Apex code from the vlocity_cmt managed package, including the OmniChangeToQuoteWrapper class. Access to Apex classes is controlled per profile and permission set. When the custom profile is missing access to the classes that the Change to Quote process calls, the process fails and returns the "List has no rows for assignment to SObject" error.

In Apex, this error message indicates that a query expected to return a record returned no rows. In this scenario, granting the custom profile access to the vlocity_cmt classes resolves the error.

Solución

Grant the custom profile access to the vlocity_cmt Apex classes that the Change to Quote process uses.

Confirm the cause

  1. Ask the affected user to reproduce the issue, and note the exact error text and stack trace.
  2. Confirm that the stack trace references vlocity_cmt.OmniChangeToQuoteWrapper.
  3. Run the same Change to Quote action on the same asset as a user whose profile or permission sets already include access to the vlocity_cmt classes (for example, an administrator).
    • If the process succeeds for that user but fails for the custom-profile user, the likely cause is missing class access. Continue to the next section.
    • If the process also fails for that user, the cause is likely different. Review the asset and quote data and the full debug log before you continue.

Grant Apex class access

  1. From Setup, in the Quick Find box, enter Profiles, and then select Profiles.
  2. Click the name of the custom profile that is assigned to the affected user.
  3. In the Apex Class Access page or related list, click Edit.
  4. In the Available Apex Classes list, select vlocity_cmt.OmniChangeToQuoteWrapper and click Add.
  5. If the stack trace lists other vlocity_cmt classes, add those classes as well.
  6. Click Save.

Verify the fix

  1. Log in as the affected user, or ask the user to retry.
  2. Run the Change to Quote process on the same asset.
  3. Confirm that the process completes and the quote is created or updated without the error.
  4. If the error persists, set up a debug log for the affected user, reproduce the issue, and check the log for any other vlocity_cmt class in the stack trace. Grant access to that class and test again.

Tip: If several custom profiles need this access, consider granting the Apex classes through a permission set that you assign to the affected users.

Número del artículo de conocimiento

000985342

 
Cargando
Salesforce Help | Article