To realize this, I copied an already existing scenario with another report, changing just the report to retrieve.
But now I run into trouble, because I can’t get the original file from the binary code the module downlaods. I thought to use the same settings as in the other scenario, but unfortunately this doesn’t work. I guess the report fetched fromm amazon might be very different, from technical aspects, but since I can’t see any usable result I am not able to progress.
You can try using a “Convert encoding” module using the same input and output encoding, then you can use the output of this module in a subsequent module (like Parse CSV or JSON).
Alternatively, you can simply try using the toString built-in function in the mapped field, something like this: toString(data) – however this method doesn’t work in some cases where the encoding actually has to be converted.
Well still having issues with that file. I thought the enconding problem is solved, since I can see some text stuff!
But now I see that the file only contains the header. Whatever setting I use, there is no content. To check the file first, I only send it to my google cloud, uploading it as a .txt file.
I just want to quickly say congratulations on getting this up and running with the guidance of @samliew
Thanks a lot for stepping back in here and sharing your final insights and findings with the rest of the community. This is incredibly valuable and can be super helpful to others looking for similar information.
I had the same issue as you and fixed it the same way. However, I have not had success retrieving data for 2024 (2023 is working fine.)
Is it working for you?