Apify Discord Mirror

Updated 5 months ago

Actor runs do not store output in dataset on Apify

At a glance

The community member is having an issue where their actor is working perfectly locally, storing output in JSON files in the default dataset, but when they run it on the Apify platform, the run shows no results even though the run was successful and results were found. They are attempting to store the results using await Dataset.pushData(result), and have confirmed that the object is correctly produced using log.info(`Result: ${JSON.stringify(result)})`. The community member is asking if there is a way to debug this issue since there are no errors.

In the comments, another community member suggests that the issue might be due to missing Actor.init or using a named dataset, and recommends using Actor.pushData instead.

I have an actor that is working perfectly locally - storing output in JSON files in the default dataset - but when I run it on the Apify platform, the run shows no results even though run was successful and results were found.

I am attempting to store the results with:
Plain Text
await Dataset.pushData(result)

I have also checked that the object is correctly produced using log.info(`Result: ${JSON.stringify(result)}`) and it is correctly logged out, so I would expect it to be stored.

Is there any way to debug this, since there are no errors?
L
1 comment
You might b missing Actor.init? Or you have named dataset? Generally, we use Actor.pushData instead
Add a reply
Sign up and join the conversation on Discord