Loading

Manufacturing Cloud: Sales Agreement 'Something has gone wrong' error when adding products

Publish Date: May 27, 2026
Description

The issue occurs when users are adding products to a Sales Agreement in Manufacturing Cloud Although users already have the required permissions and licenses, the operation fails immediately with the error message.

Resolution

Cause 1: Sales Agreement Product tab is hidden on the user's profile

The Lightning Add Products flow requires the Sales Agreement Product (SalesAgreementProduct) tab to be visible to the running user. To resolve the issue, follow these steps:

  1. Navigate to Setup, enter Profiles in the Quick Find box, and select Profiles.
  2. Open the profile assigned to the affected user, such as System Administrator.
  3. In Lightning Experience, select Object Settings, or in the Classic profile interface, select Tab Settings.
  4. Locate Sales Agreement Products (SalesAgreementProduct).
  5. Set the tab visibility to Default On instead of Tab Hidden, and save the changes.
  6. If the organization uses permission sets to manage tab visibility, navigate to Setup > Permission Sets > Manufacturing Sales Agreement permission set > Object Settings > Sales Agreement Products.
  7. Set the tab visibility to Available and Visible, and save the changes.
  8. Now logout and Login as the User .
  9. To confirm the issue is resolved, open a Sales Agreement, click Add Products, select a product, and click Next.

    The Edit Product screen should load successfully with the Initial Planned Quantity Value (InitialPlannedQuantity) and Initial Total Quantity (InitialTotalQuantity) fields visible, and the record should save without displaying the “Something Has Gone Wrong” error.

Cause 2: Field-level security blocks required Sales Agreement Product fields

If the user reaches the Edit Product screen but receives the error message “Item 1 has errors in these fields: Initial Planned Quantity Value, Initial Total Quantity” or a similar field-level error, the issue is caused by field-level security restrictions on required fields. To resolve the issue, follow these steps:

  1. Navigate to Setup and open Object Manager.
  2. Select Sales Agreement Product (SalesAgreementProduct).
  3. Open Fields & Relationships.
  4. Locate and open each of the following fields:
    Initial Planned Quantity Value (InitialPlannedQuantity)
    Initial Total Quantity (InitialTotalQuantity)
    Display Name (Name)
  5. For each field, click Set Field-Level Security.
  6. Select the Visible checkbox for the affected profile and ensure the Read-Only option is cleared.
  7. Save the changes for each field.

Cause 3: Duplicate Display Name on Sales Agreement Product

If the error "Item 1 has errors in these fields: Display Name" appears when adding a product that already exists on the Sales Agreement, the Display Name [Name] field must be unique per Sales Agreement Product record. To resolve the issue, follow these steps:

  1. From Setup, open Object Manager > Sales Agreement Product [SalesAgreementProduct] > Page Layouts and add the Display Name [Name] field to the layout so users can edit it.
  2. When adding the duplicate product, enter a unique value in Display Name [Name] 
  3. Confirm the issue is resolved by adding the previously failing product and saving — the record must save without the Display Name validation error.
Knowledge Article Number

005385159

 
Loading
Salesforce Help | Article