Overview
When adding products to a basket in Salesforce, you may encounter an asynchronous error due to the BasketBuilderAppController not returning a response. This issue can be caused by browser-specific problems, data inconsistencies, or excessive heap size due to large attachments or numerous active offers. This article provides steps to troubleshoot and resolve the issue by optimizing heap size and ensuring data consistency.
Information
To resolve the asynchronous error when adding products to a basket in Salesforce, follow these steps:
- Browser Environment: Ensure you are using a supported and up-to-date browser. Try reproducing the issue in an incognito or private browsing session to rule out caching or extension-related conflicts.
- Data Consistency: Verify that all products and offers in the affected category are active and have all required fields populated. Inactive or incomplete records can cause background processes to hang.
-
Reduce Heap Size:
- Examine attachments on Callout Result and Product Configuration Request records to see if their size can be reduced.
- Disable the
cscfga__Configuration_Offer__c
object in cached results by adding a new record in the 'JSON settings' custom setting. This, however, is not recommended, as it is only a temporary solution.
- Monitor Network Calls: Use the browser's developer tools to monitor network calls, specifically the
BasketBuilderAppController.addProduct
call to identify where the process is failing. - Review Console and Network Logs: Check the browser's developer console and network logs for additional error messages or failed requests that occur when adding a product from the affected category.
If the issue persists, further investigation by the package maintainers may be required.
Frequently Asked Questions
- What causes the asynchronous error when adding products to a basket?
- The error can be caused by browser-specific issues, data inconsistencies, or excessive heap size due to large attachments or numerous active offers.
- How can I reduce the heap size in Salesforce?
- You can reduce the heap size by examining and reducing the size of attachments on Callout Result and Product Configuration Request records. Additionally, disable the
cscfga__Configuration_Offer__c
object in cached results through JSON settings. - Is there a limit to the number of offers in a product category?
- While there is no explicit limit, having a large number of offers in a single category can impact performance. It is advisable to monitor and optimize the number of active offers to ensure smooth operation.
Priyanka Bhotika
Comments