Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

JoltTransformRecord issue

avatar
Explorer

I have designed flow in nifi for XML to JSON converter. And for that, I have used GenerateFlow File and JoltTransformRecord(not JoltTransform JSON).

 

But I am getting null value in the JSON file with the schema(output in screen shot).

Please find my jolt specification:

[
{
"operation":"shift",
"spec":{
"to":"Receiver",
"from":"Sender",
"heading":"Heading",
"body":"Message"
}
}
]

 

Jolt Transformation DSL is chain.

 

As I am trying to convert XML to JSON and make a change in element name in one go through JoltTransformRecord. I think JoltTransformRecord accepts any form of payload and then converts it into JSON format and then applies the change in elements of the JSON file.

 

OutputOutputInput fileInput file

 

 

Please help why this happens.

 

thanks

1 ACCEPTED SOLUTION

avatar
Expert Contributor
hide-solution

This problem has been solved!

Want to get a detailed solution you have to login/registered on the community

Register/Login
1 REPLY 1

avatar
Expert Contributor
hide-solution

This problem has been solved!

Want to get a detailed solution you have to login/registered on the community

Register/Login