<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: JoltTransformRecord issue in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/JoltTransformRecord-issue/m-p/298763#M219354</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/77175"&gt;@ravi_sh_DS&lt;/a&gt;,&lt;BR /&gt;I am perfectly getting the output after using the joltTransformRecord&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PVVK_0-1593349890104.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/28105i6462FD3E23D8AB19/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PVVK_0-1593349890104.png" alt="PVVK_0-1593349890104.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The spec I used is the same that you mentioned in your question. I don't think that the processor is converting the xml into json at first. Had it been that case, jolt must be acting on&lt;BR /&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;"note":{&lt;/P&gt;&lt;P&gt;&amp;nbsp; "to":"...",&lt;BR /&gt;&amp;nbsp; "from":"...",&lt;/P&gt;&lt;P&gt;&amp;nbsp; "heading":"...",&lt;/P&gt;&lt;P&gt;&amp;nbsp; "body":"..."&lt;/P&gt;&lt;P&gt;&amp;nbsp;}&lt;BR /&gt;}&lt;BR /&gt;Even if the jolt is applied on the above json, your ouput will be empty json object. Can you check it once again?&lt;/P&gt;</description>
    <pubDate>Sun, 28 Jun 2020 13:26:09 GMT</pubDate>
    <dc:creator>PVVK</dc:creator>
    <dc:date>2020-06-28T13:26:09Z</dc:date>
    <item>
      <title>JoltTransformRecord issue</title>
      <link>https://community.cloudera.com/t5/Support-Questions/JoltTransformRecord-issue/m-p/294587#M217334</link>
      <description>&lt;P&gt;I have designed flow in nifi for XML to JSON converter. And for that, I have used GenerateFlow File and&amp;nbsp;JoltTransformRecord(not JoltTransform JSON).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I am getting null value in the JSON file with the schema(output in screen shot).&lt;/P&gt;&lt;P&gt;Please find my jolt specification:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;{&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;"operation":"shift",&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;"spec":{&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;"to":"Receiver",&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;"from":"Sender",&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;"heading":"Heading",&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;"body":"Message"&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;}&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;}&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;Jolt Transformation DSL is chain.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Output" style="width: 346px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/27212i48FF571BAB65FA32/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="Output" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Output&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Input file" style="width: 426px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/27213i3BF5BD1D493CBA8F/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="Input file" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Input file&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Please help why this happens.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;thanks&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Apr 2020 06:56:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/JoltTransformRecord-issue/m-p/294587#M217334</guid>
      <dc:creator>ravi_sh_DS</dc:creator>
      <dc:date>2020-04-23T06:56:51Z</dc:date>
    </item>
    <item>
      <title>Re: JoltTransformRecord issue</title>
      <link>https://community.cloudera.com/t5/Support-Questions/JoltTransformRecord-issue/m-p/298763#M219354</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/77175"&gt;@ravi_sh_DS&lt;/a&gt;,&lt;BR /&gt;I am perfectly getting the output after using the joltTransformRecord&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PVVK_0-1593349890104.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/28105i6462FD3E23D8AB19/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PVVK_0-1593349890104.png" alt="PVVK_0-1593349890104.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The spec I used is the same that you mentioned in your question. I don't think that the processor is converting the xml into json at first. Had it been that case, jolt must be acting on&lt;BR /&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;"note":{&lt;/P&gt;&lt;P&gt;&amp;nbsp; "to":"...",&lt;BR /&gt;&amp;nbsp; "from":"...",&lt;/P&gt;&lt;P&gt;&amp;nbsp; "heading":"...",&lt;/P&gt;&lt;P&gt;&amp;nbsp; "body":"..."&lt;/P&gt;&lt;P&gt;&amp;nbsp;}&lt;BR /&gt;}&lt;BR /&gt;Even if the jolt is applied on the above json, your ouput will be empty json object. Can you check it once again?&lt;/P&gt;</description>
      <pubDate>Sun, 28 Jun 2020 13:26:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/JoltTransformRecord-issue/m-p/298763#M219354</guid>
      <dc:creator>PVVK</dc:creator>
      <dc:date>2020-06-28T13:26:09Z</dc:date>
    </item>
  </channel>
</rss>

