Not able to deploy Opportunity Product Layout to another org after removing "Sales Price" from the layout
Last updated 2020-02-15 ·Reference W-6753143 ·Reported By 2 users
Remove the "Sales price" from OpportunityLineItem-Opportunity Product Layout after enabling 'Supply Default Opportunity Line Item Values' perm in both source and target sandbox orgs. Users are getting error "Layout must contain an item for required layout field: UnitPrice" while deploying the layout from one sandbox to another sandbox.
Actual Behavior: Deployment failed with "Layout must contain an item for required layout field: UnitPrice" error.
Expected Behavior: Deployment should succeed without any errors.
1. Enable "Supply default opportunity line item values" in both source and target orgs
2. Login as a System Admin
3. Go to OpportunityLineItem-Opportunity Product Layout and remove "Sales Price","List Price" and "Total Price" fields and save the layout.
4. Try to deploy the layout from one sandbox to another sandbox , we get "Layout must contain an item for required layout field: UnitPrice" error. [Retrieving and deploying to the same org doesn't throw the error ]
<?xml version="1.0" encoding="UTF-8"?>
<members>OpportunityLineItem-Opportunity Product Layout</members>
Add the "Sales Price" to the Opportunity Product layout and deploy to another sandbox.
Is it Fixed?
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.