Not all data is displayed in the repeating group after the backend API call

Here’s the situation: the user selects a subject and a topic, and this data is sent to OpenAI. OpenAI returns a list of questions based on the selected subject and topic. I then use “Schedule API workflow on a list” to save this data to the database. Once OpenAI returns the information, I display a repeating group with the questions to the user.

The problem is that sometimes, even though OpenAI returns, say, 10 questions, only 9 are shown in the repeating group. This doesn’t happen every time, but it occurs fairly often.

Could you please help me understand what might be causing this and how to fix it? Thank you in advance.

Probably a racing issue. Can you share your settings?

I guess you could just add a delay between item in the list on SAWOL (2-3 seconds is normally enough)

Do you think this will help?
Because it will actually increase the time it takes to save data to the database.
And as a result, not all the data will have time to load into the repeating group.

Can you share your settings?

Yes, sure:

  1. New questions are created here using “Schedule API workflow on a list.”
  2. Immediately after that, I attach 4 answer options to each question.

  3. I wanted to somehow detect when all the questions have been created, and only after that display the repeating group.
    But I don’t know how I can determine that.
  4. Right after the “Schedule API workflow on a list”, I even do a page refresh to make sure that all the questions will appear in the repeating group.
    But sometimes, not all the questions are displayed.

How can I fix this?

From your screenshot, I don’t see why you could have racing issue (that mostly happen with field of type list and make change to a thing or when calling an API inside the backend WF that could lead to too many request on a short time on this API).
There’s a lot of conditionnal and steps, so it could be hard to check. Check your app logs, that could help you find if one condition is not met for a question.

Try to add a 2 seconds delay to know if this is the issue, but if this is the case, I would raise a support ticket as there’s no reason from what I see in your settings to have racing issue

Ok, thank you for your answer.

This topic was automatically closed after 70 days. New replies are no longer allowed.