Can't contract amendment order with Usage Product and existing Usages
Trailblazer Community

Can't contract amendment order with Usage Product and existing Usages

Salesforce Billing

Last updated 17 days ago ·Reference W-9007756 ·Reported By 1 users

In Review

Summary
Contracting an amendment order with usage product and usages returns error:

System.DmlException: Update failed. First exception on row 0 with id a2h7X0000007UbaQAE; first error: FIELD_CUSTOM_VALIDATION_EXCEPTION, Can't set Prerated Amount on usage summaries with a order item consumption schedule.: []

Repro
1. Create a Usage based product
2. Create a Consumption Schedule, assign this Consumption Schedule to the Usage product by creating a product consumption schedule record.
3. Create a new opportunity and a quote, add the Usage product to the quote.
4. Order the quote, Activate the Order.
5. Create a Usage on one or more Usage Summary records.
6. Contract the Order, and amend the contract.
7. When amending the contract, change the quantity of the quote line to be 0 to cancel the product.
8. Order the amendment quote.
9. Activate and Contract the Order, the error occurs.

Workaround
None

Reported By (1)

Any unreleased services, features, statuses, or dates referenced in this or other public statements are not currently available and may not be delivered on time or at all. Customers who purchase our services should make their purchase decisions based upon features that are currently available.