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
as you can notice in jsonattributes it adds a "\ n" at the end of the strings "giri" and "id-riduttore" fields
@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).