Overview
In the BM Editor, a preview is generated upon clicking the preview button, but only after all peers have been processed. The preview displays approved data for all peers.
A new preview is generated in two scenarios:
- When a fresh template is published.
- If the last preview was approved and any new peer is saved.
--------------------------------------------------------------------------------------------------------------------------------
Scenario 1: New Template Publication
When a new template is published, a new preview is generated through offline. Initially, all statuses are set to 101, and once processing is complete, they are updated to 100.
BMOffline Processes
On Live, there are three BMOffline processes running:
- bm.offline-one
- bm.offline-two
- bm.offline-three
You will encounter the error message "Please wait while we are preparing peers for the preview" if the preview button is clicked before all peers are processed and their TemplateStatus is not 100.
Query to Check Peer Processing Status
To check if all peers have been processed, use the following SQL query:
SELECT * FROM Jupiter.BMTemplateAndDataUpdateQueue
WHERE TemplateID = LatestTemplateID AND TemplateStatus = 100;
Scenario 2: Peer Save After Last Preview Approval
If the last preview was approved and a new peer is saved, the new preview is generated through a migration script. The status of all peers in the peer migration table should be 1 before the new preview can be loaded.
Query to Check Peer Migration Status
To verify if all peers are processed, use this SQL query:
SELECT * FROM Jupiter.BMOldPeerMigration
WHERE TemplateID = TemplateID;
----------------------------------------------------------------------------------------------------------------------------------------------
Checks to Resolve Preview Generation Issues:
- If a Peer is Stuck in Status 102:
- Try loading the peer on the frontend (BM Editor).
- If Loading from the Frontend Does Not Work:
- Reset the peer and wait for the process to pick up the peer.
- If the Peer Still Does Not Load:
- Reset the peer and load it from the frontend (online), ensuring all BMOffline services are stopped.
- For steps on stopping BMOffline services, refer to this guide.
- If Issues Persist:
- Report the issue if the above steps do not resolve the problem.
Written by: Shivani Zinjurke
Date: 05/August/2024
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article