Hi,
So I'm using the Download tool to call an API that allows an authorized user to download Excel files from a server. I have the input to the Download tool sending it 6 reports to download and write the output to a filename in an input field.
Some of my files are downloading to my local file system with a 200/Success download header response in Alteryx. Those Excel files open and display their data fine.
Some of my files show up into the folder they are configured to save into, but Alteryx shows a 429/Failure download header. The files exist on my local file system as 1 KB files, and if I try to open them, Excel says they are corrupted.
429 is the error code for too many concurrent connections and it could vary based on current server load. I have not been able to figure out how to rate limit Alteryx across many tools/workflows since the Throttle tool doesn't really work. I think I can theoretically convert this to a macro and send each of the files into the macro individually to be downloaded and throttle or time delay it that way. But that is not really my question/curiousity.
I'm wondering when the Alteryx download tool does not get a 200/Success header, and it is set to output to a filename from a field, why does it store a file at all? Shouldn't it not write the file until it gets the 200/Success, or if it is raw writing the bitstream at least delete the file by default if the download header response isn't 200/Success? Is there a way to configure it to do this within the download tool, without tracking the responses and then doing a toolchain to delete any files that were written without a 200/Success download header?
Thanks.