Start a conversation

Resolving Batch Engine and Orchestration Steps Blocking Order Creation

Overview

The issue "Batch Engine and Orchestration Steps Blocking Orders creation" was reported, where baskets created in Elastic were not syncing with Salesforce (SFDC). This was identified as a core functionality defect affecting all sandboxes. The problem was resolved by restarting the Batch Engine and updating remote site settings with the correct endpoints.

Information

Issue: Batch Engine and Orchestration Steps Blocking Orders creation

Symptoms:

  • Baskets created in Elastic not syncing with Salesforce (SFDC)
  • All sandboxes impacted, affecting business delivery

Resolution Steps:

  1. Verify Batch Engine Status:
    • Ensure the Batch Engine is running by checking the status in the admin console (/apex/adminConsole).
    • If the Batch Engine is off, restart it using the integration user with the schedulable option if sandbox, and the queueable option for production.
  2. Update Remote Site Settings:
    • Check and update remote site settings with the appropriate endpoints to ensure outgoing messages are processed correctly.
    • Verify that all necessary endpoints are included in the remote site settings.
  3. Check Outgoing Messages:
    • Review pending outgoing messages to identify any that are stuck due to incorrect settings.
    • Change the status of older messages (older than a week) to 'Unrecoverable Error' to prevent issues with the Batch Engine.
  4. Verify Order Status:
    • Confirm that orders are being processed correctly in both Elastic and Salesforce.
    • Ensure that the order status is updated from 'Processing' to 'Completed' once synced.
  5. Monitor Error Queue:
    • Check the errorQueue in AMQP for any messages that may have ended there.
    • Resolve or purge messages from the queue to prevent backlog (only for sandboxes, for prod it needs further investigation).

Verification:

  • Confirm that baskets are now syncing correctly with Salesforce.
  • Ensure that no error messages are present and that orders are being created successfully.

Note: If issues persist, further investigation may be required to check for additional configuration errors or system limitations.

Frequently Asked Questions

How do I know if this issue applies to my situation?
You will experience baskets created in Elastic not syncing with Salesforce, and order creation will be blocked across all sandboxes.
What should I do if the Batch Engine is not running?
Restart the Batch Engine using the 'Accelerator CloudSense' user with the schedulable option to ensure it processes orders correctly.
How can I update remote site settings?
Access your Salesforce setup and navigate to Remote Site Settings. Add or update the necessary endpoints to ensure proper communication between systems.
What if the issue persists after following the resolution steps?
If the problem continues, check for additional configuration errors or contact support for further assistance, providing detailed logs and error messages.
Choose files or drag and drop files
Was this article helpful?
Yes
No
  1. Priyanka Bhotika

  2. Posted

Comments