Created 01-19-2021 03:05 AM
Hi @ApacheNifi,
i have i extracted the attributes from the filename and used AttributesToJson to create a json file to upload into elasticsearch (to create a catalog).
It gives me many problems, what can I do?
I also noticed that from updateattribute to attributetojson it adds "\ n" in two fields.
This is my flow:
UPDATEATTRIBUTE: I have correctly configured updateattribute and this is the result
Setting:
Result:
ATTRIBUTESTOJSON:
Configuration:
Result:
as you can notice in jsonattributes it adds a "\ n" at the end of the strings "giri" and "id-riduttore" fields
PUTELASTICSEARCHHTTPRECORD:
Configure:
Error:
How can i do this? thank you so much
Created 01-21-2021 07:06 AM
@Lallagreta
Make sure you do not have any line returns in the values for your dynamic properties added in the UpdateAttribute processor. When you click on the value field for each property you should not see a line "2".
For example:
Above would result in the value assigned to the FlowFile Attribute having a line return. If this is the case, edit the properties value(s) to remove the line returns so you only see one line (1).
Hope this helps,
Matt
Created on 01-19-2021 03:00 PM - edited 01-19-2021 03:04 PM
Just asking, what is the result if you change the Property 'Destination' at AttributesToJSON to flowfile-content? 😉😄😄
Created 01-21-2021 07:06 AM
@Lallagreta
Make sure you do not have any line returns in the values for your dynamic properties added in the UpdateAttribute processor. When you click on the value field for each property you should not see a line "2".
For example:
Above would result in the value assigned to the FlowFile Attribute having a line return. If this is the case, edit the properties value(s) to remove the line returns so you only see one line (1).
Hope this helps,
Matt