Dataset FIELDS attribute

I have an integration actor that relies on the FIELDS attributes from the input dataset (payload). I retrieve this data by pulling from the API https://api.apify.com/v2/datasets/{dataset_id}, but it seems that the FIELDS attributes are not populated immediately. Even after looping up to 20 times with a 5-second interval, sometimes they still aren't populated. Am I missing something, or is there a better way to handle this? Any feedback would be really appreciated. Thank you!
⌛ ... pending #1 (158 rows, 0 fields)
⌛ ... pending #2 (158 rows, 0 fields)
⌛ ... pending #3 (158 rows, 0 fields)
⌛ ... pending #4 (158 rows, 0 fields)
⌛ ... pending #5 (158 rows, 0 fields)
⌛ ... pending #6 (158 rows, 0 fields)
⌛ ... pending #7 (158 rows, 0 fields)
⌛ ... pending #8 (158 rows, 0 fields)
⌛ ... pending #9 (158 rows, 0 fields)
⌛ ... pending #10 (158 rows, 0 fields)
⌛ ... pending #11 (158 rows, 0 fields)
⌛ ... pending #12 (158 rows, 0 fields)
⌛ ... pending #13 (158 rows, 0 fields)
⌛ ... pending #14 (158 rows, 0 fields)
⌛ ... pending #15 (158 rows, 0 fields)
⌛ ... pending #16 (158 rows, 0 fields)
⌛ ... pending #17 (158 rows, 0 fields)
⌛ ... pending #18 (158 rows, 0 fields)
⌛ ... pending #19 (158 rows, 0 fields)
⌛ ... pending #20 (158 rows, 0 fields)
❌ Error: Dataset EMPTY or COLUMNS unavailable!
⌛ ... pending #1 (158 rows, 0 fields)
⌛ ... pending #2 (158 rows, 0 fields)
⌛ ... pending #3 (158 rows, 0 fields)
⌛ ... pending #4 (158 rows, 0 fields)
⌛ ... pending #5 (158 rows, 0 fields)
⌛ ... pending #6 (158 rows, 0 fields)
⌛ ... pending #7 (158 rows, 0 fields)
⌛ ... pending #8 (158 rows, 0 fields)
⌛ ... pending #9 (158 rows, 0 fields)
⌛ ... pending #10 (158 rows, 0 fields)
⌛ ... pending #11 (158 rows, 0 fields)
⌛ ... pending #12 (158 rows, 0 fields)
⌛ ... pending #13 (158 rows, 0 fields)
⌛ ... pending #14 (158 rows, 0 fields)
⌛ ... pending #15 (158 rows, 0 fields)
⌛ ... pending #16 (158 rows, 0 fields)
⌛ ... pending #17 (158 rows, 0 fields)
⌛ ... pending #18 (158 rows, 0 fields)
⌛ ... pending #19 (158 rows, 0 fields)
⌛ ... pending #20 (158 rows, 0 fields)
❌ Error: Dataset EMPTY or COLUMNS unavailable!
3 Replies
Hall
Hall6mo ago
Someone will reply to you shortly. In the meantime, this might help:
mere-teal
mere-teal6mo ago
Can you share an ID of the dataset? That looks like a bug if you indeed have non-empty items
!!!Joefree!!! 👑
!!!Joefree!!! 👑OP6mo ago
the datasets has gone 😓 but It happens less often now

Did you find this page helpful?