You need to sign in to do that
Don't have an account?
Richard Pitfield 10
Custom Quote Sync App Fails test run when syncing Formula fields from Opportunity LineItem > Quote Lineitem.
I have the Custom Quote App installed and I have set some Formula fields on the Opportunity Quote Lineitem that sync and work fine with a custom field on the Quote Lineitem.
However when I run the tests it fails on the Formula field and states.
System.DmlException: Update failed. First exception on row 0 with id 0063300000j5pokAAA; first error: CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY, OppLineSyncTrigger: execution of AfterInsert
caused by: System.SObjectException: Field Total_Price__c is not editable
Trigger.OppLineSyncTrigger: line 128, column 1: []
It is saying that the Formula field is not editable, which is correct, but can anyone explain how to get around this so I can run succesful tests and add more triggers?
Why do the formula fields fail the test and how can I avoid this while keeping them syncing.
Regards
Rich
However when I run the tests it fails on the Formula field and states.
System.DmlException: Update failed. First exception on row 0 with id 0063300000j5pokAAA; first error: CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY, OppLineSyncTrigger: execution of AfterInsert
caused by: System.SObjectException: Field Total_Price__c is not editable
Trigger.OppLineSyncTrigger: line 128, column 1: []
It is saying that the Formula field is not editable, which is correct, but can anyone explain how to get around this so I can run succesful tests and add more triggers?
Why do the formula fields fail the test and how can I avoid this while keeping them syncing.
Regards
Rich
I have a similar problem with formula field.
After some investigation I found that this module tries to update a formula field on the quote.
That's very strange as it is configured to update the opportunity with values from the quote.
Did you found the solution for this issue?
Thank you,
Piet