function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Manuel Reina RosManuel Reina Ros 

CPQ: Validation Exception: Cant update the subscription type on an amendment

Hey all :)

Looking for CPQ experts here, we are hitting this error while running the test method, inserting a Quote Line Item:

CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY, SBQQ.QuoteLineAfter: execution of AfterInsert caused by: System.DmlException: Update failed. First exception on row 0 with id a800j0000008fOtAAI; first error: FIELD_CUSTOM_VALIDATION_EXCEPTION, Line : Cant update the subscription type on an amendment.: [] 

Any ideas?

Much appreciated in advance,

Regards,
Manuel Reina



 

v varaprasadv varaprasad
Hi Manuel,

Due to insert and update events in the trigger you are facing this issue.

https://developer.salesforce.com/forums/?id=906F0000000A2DrIAK
https://salesforce.stackexchange.com/questions/226134/error-creating-cpq-sbqq-quoteline-c-object?rq=1

Hope this helps you!
If my answer helps resolve your query, please mark it as the 'Best Answer' & upvote it to benefit others.


Thanks
Varaprasad
Salesforce Freelance Consultant/Developer/Administrator
@For Salesforce Project Support: varaprasad4sfdc@gmail.com


Salesforce latest interview questions  :
https://www.youtube.com/channel/UCOcam_Hb4KjeBdYJlJWV_ZA?sub_confirmation=1