03-25-2024 01:09 PM
Hello all,
I'm doing something really simple, but I'm stuck with a basic issue that I don't really understand the root cause.
I'm running the pipeline below, which simply downloads a zip file from a server (using HTTP Client), writes the zip on the sldb, then reads the content of the zip before writing the file(s) that are archived in the zip.
My issue is that the zip file that I download has only one Excel document in a subfolder. When I try to use an expression to rename the file and write it to the root of the sldb, my document is not an Excel, it is a JSON (with an Excel name).
In my "File Writer" snap I use this expression for the file name: $['content-location'].replace(/\//, '-')
This is the value of $['content-location'] before the expression: