Google Tag Manager

Forum Discussion

reentry's avatar
reentry
Influencer
2 months ago
Solved

Selection Stuck in "Processing" Status via API

Hello everyone,

I’m currently facing an issue when creating a Catalog Selection via the Braze API. The selection is successfully created, but it remains stuck in the "Processing" status and never completes.

{
  "selection": {
    "name": "Test Product Selection",
    "description": "Random MBB",
    "results_limit": 1,
    "filters": [
      {
        "field": "service_provider",
        "operator": "equals",
        "value": "Sport Fankhauser"
      }
    ]
  }
}

The selection is successfully created (message:success), but it remains stuck in"processing" status indefinitely.

Do i something wrong ?

  • Arso's avatar
    Arso
    2 months ago

    Do you still have the issue? Usually, updating a catalog or creating a selection gets them stuck in a "processing" state but that's only until you refresh or open the catalog in a new browser tab. 

    Can you test to see if you're able to reference the selection in templates? Ah, looking at your selection name - you have spaces between the words and you might not be able to reference it. The liquid to initialize the selection will likely break. 

    Try doing the same thing but replace the spaces with dashes or underscores. 

    • Arso's avatar
      Arso
      Expert

      Do you still have the issue? Usually, updating a catalog or creating a selection gets them stuck in a "processing" state but that's only until you refresh or open the catalog in a new browser tab. 

      Can you test to see if you're able to reference the selection in templates? Ah, looking at your selection name - you have spaces between the words and you might not be able to reference it. The liquid to initialize the selection will likely break. 

      Try doing the same thing but replace the spaces with dashes or underscores. 

  • Yup, no spaces, no special characters... hyphen or underscore separated is the way to go! 

    This is the case for many other things, but we've also noticed that it's a bit buggy with Catalog/Selections UI. Glad you got it figured out!