How to ensure dataset is created before pushing data to it?
I have a public actor and some of my users experience that either default and/or named datasets don't seem to be existing and somehow won't be created when pushing data to them.
This is the error message I can see affecting only a handful of user runs:
`
How can I ensure that the datasets are created ahead of time when running the scraper before it collects data and then fails because the dataset cant be created or does not exist?
6 Replies
Someone will reply to you shortly. In the meantime, this might help:
Hi @Casper, can you send me some Id of the Run when the problem happened, so we can investigate?
metropolitan-bronzeOP•3mo ago
I have just sent you them now
Hi @Casper does the issue still occurs? Based on the logs it really seems that there is an attempt to push data into non-existing Dataset, can you share code when where you handle managing the datasets and pushing the items into them?
metropolitan-bronzeOP•2mo ago
@Pepa J I can give you access to the git repository to make it easier to troubleshoot. Just send me your github username in a DM 🙂 The issue only happens to a subset of customer runs.
@Casper The code looks good. I was trying to reproduce it, but unsuccessfully. Does it happen often? Would you be able to put together minimal code example of such a behavior?
We found out there was custom implementation of Dataset drop function that was meant for development purposes, but behaved differently on Apify Platform.