Hey all, does anybody know how to check why a searchTask from 'N/task' is failing, if it seems to be working fine in terms of export to CSV in the user interface?
b
battk
07/11/2024, 5:56 PM
you need to store the task id you get after submitting the task
battk
07/11/2024, 5:57 PM
and then use task.checkStatus after it fails to check the status
m
Michael Pope
07/11/2024, 5:59 PM
@battk Thanks. I know you can check the status... but is there any way to get more detail than 'FAILED'?
Michael Pope
07/11/2024, 6:07 PM
@battk Nvm. Found out what the issue was. SearchTasks cannot export to a csv which was edited to be completely empty for some reason...
Michael Pope
07/11/2024, 6:08 PM
(If you use 'Add File' to import an empty one, it works, but if you go in and edit it to be empty in Netsuite, it fails)