Start a conversation

Solution Basket Issues in Salesforce

Overview

When managing solution baskets in Salesforce, you may encounter issues with JSON schema validation errors related to configuration properties. This article provides steps to address JSON schema validation errors by modifying or deleting the ""evaluationOrder"" property.

Information

To resolve issues with solution baskets in Salesforce, follow these steps:

  1. Address JSON Schema Validation Errors:
    • If you encounter a CommonCartValidationError related to the evaluationOrder property (or similar issues), use the following script in the browser's console to identify discounts:
    • for(s of Object.values((await CS.SM.getActiveBasket()).solutions))
        for(x of[s,...Object.values(s.components)])
          for(c of Object.values(x.schema.configurations))
            console.log(c.configurationProperties?.csdiscounts__manual_discounts__c)
    • If the csdiscounts__manual_discounts__c property is null, modify it to a string (empty object) or delete it using:
    • for(s of Object.values((await CS.SM.getActiveBasket()).solutions))
        for(x of[s,...Object.values(s.components)])
          for(c of Object.values(x.schema.configurations))
            delete c.configurationProperties?.csdiscounts__manual_discounts__c
  2. Verify and Test:
    • Confirm that the error messages are resolved.
    • Test the basket configurations to ensure they are added successfully without errors.

Frequently Asked Questions:


What should I do if I encounter a JSON schema validation error related to the ""evaluationOrder"" property?
Use the provided script to identify and modify or delete the incorrect property in the browser's console.


What if the error message persists after deleting discounts?
Ensure that all instances of the incorrect property are addressed and verify that the basket configurations are added successfully.
Choose files or drag and drop files
Was this article helpful?
Yes
No
  1. Priyanka Bhotika

  2. Posted

Comments