'undefined' in DataSet it is keeping me from exporting data
when i run Dataset.getData() i keep finding one of the value as 'undefined'
this is preventing me from being able to Dataset.exportToCSV() because it complains about this undefined value.
is there a ways to clean the Dataset so that undefined value does not appear?
or to know why this is happening?
6 Replies
optimistic-gold•3y ago
is it in your own data items? can you share full error message?
complex-tealOP•3y ago
I poked around a little and this happend when one of the values in Datase is undefined
for example the out up of await Dataset.getData() would be something like this
@GoranTopic just advanced to level 1! Thanks for your contributions! 🎉
optimistic-gold•3y ago
You can try getting DS items with https://crawlee.dev/api/core/interface/DatasetDataOptions#clean but root cause of error is that you have corrupted item,
undefined
is not expected as item value, it supposed to be json objectcomplex-tealOP•3y ago
Thank you @Alexey Udovydchenko !
correct-apricot•3y ago
This is a bug in Crawlee so wil lbe fixed
@GoranTopic Would you please send me privately the dataset ID? I would want to see how the undefined got there