Hello,
i have a question. I want to use Bildschirmfoto 2015-08-04 um 10.06.15.jpg the field "name" in my Metadata as the Filename in my File URL for my UniversalDataWriter.
In the Filename field i save the filename and the extension of the file (csv,pdf....)
Example: ${DATAOUT_DIR}/Filename
But it seems everything i try (partitioning key, #, ${name}) nothing works.
Any idea how i can solve that problem?
Thanks!
i have a question. I want to use Bildschirmfoto 2015-08-04 um 10.06.15.jpg the field "name" in my Metadata as the Filename in my File URL for my UniversalDataWriter.
In the Filename field i save the filename and the extension of the file (csv,pdf....)
Example: ${DATAOUT_DIR}/Filename
But it seems everything i try (partitioning key, #, ${name}) nothing works.
Any idea how i can solve that problem?
Thanks!
-
Hi Tocki,
You can use partitioning feature of the UniversalDataWriter. Basically what you need to do is to:- Set Partition key attribute of the writer to the field you want to use in the filename
- Next you need to define the Filer URL. To the place where the Partition key is supposed to be used write hash tag (#) - this is a placeholder for the key. So taking your example into account, it may look like this: ${DATAOUT_DIR}/#
- If you do not want to write value of the field used in the URL you can exclude it using "Exclude fields" attribute of the writer.
Hope this helps. -
Thank you, that worked
Please sign in to leave a comment.
Comments 2