Hi @MaggieL I have done some research on my end and noticed
1) another customer received this same error for the same exact scenarios of yours--QA records having Quote ID populated but Quote records do not exist.
Not sure how did that happen.
Can you please confirm if the error goes away after removing these 2 QA records?
2) there was another customer scenario where they had custom VF page and flows to call zqu.zQuoteUtil.renewQuote(quote); and the same error was thrown. Following was comment from Engineering :
When renewQuote is called, the quote should already be inserted into the database. In this case, it is inserted after renewQuote is called, in the NewQuoteController custom class.
After the quote has been inserted, I am able to successfully call renewQuote() through the developer console to successfully add the renewal amendment to the existing quote, using the following code.
zqu__Quote__c quote = [
SELECT
Id,zqu__Currency__c,zqu__ExistSubscriptionId__c,zqu__SubscriptionType__c,
zqu__AmendmentName__c,zqu__Amendment_Name__c, zqu__RenewalTerm__c
FROM zqu__Quote__c
WHERE
Id='a2l1b0000000ANdAAM'
LIMIT 1];
zqu.zQuoteUtil.renewQuote(quote);
The code should be revised to insert the quote before calling renewQuote, and the fields above should be included on the quote being passed in.
I am going to review the code as well and share any finding
Thanks
... View more