BM Preview Generation

Created by Shivani Zinjurke, Modified on Tue, 25 Mar at 1:14 PM by Shivani Zinjurke

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:

  1. When a fresh template is published.
  2. 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.


https://indattachment.freshdesk.com/inline/attachment?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZCI6ODgwNjUwOTA4NDAsImRvbWFpbiI6InZpcnR1YXJlc2VhcmNoaW5jLmZyZXNoZGVzay5jb20iLCJhY2NvdW50X2lkIjoyNjQzMzIwfQ.zr57vpcyGq0P2uCHbgF6TkQRhuA3vbo2jAC35_d1ZeA

 

 

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:

  1. If a Peer is Stuck in Status 102:
    • Try loading the peer on the frontend (BM Editor).
  2. If Loading from the Frontend Does Not Work:
    • Reset the peer and wait for the process to pick up the peer.
  3. 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.
  4. 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

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article