<?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>topic Re: problem in data extraction from JSON file in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/problem-in-data-extraction-from-JSON-file/m-p/2332112#M101024</link>
    <description>&lt;BLOCKQUOTE&gt; 
 &lt;HR /&gt; 
 &lt;A href="https://community.qlik.com/s/profile/0053p000007LLsVAAW"&gt;@sreenathtr&lt;/A&gt; wrote: 
 &lt;BR /&gt; 
 &lt;P&gt;sorry for the delayed response,&lt;/P&gt; 
 &lt;P&gt;in the attached screenshot, if i am having 2 different values at status viz., viewed, expired; I am getting only one value. can you please let me know how can both the value be extracted and the result should have 2 rows; each row containing each value of status all the other remains the same.&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="event_status_error.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LvQl.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/143642i7FEBFF305B0D50F9/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LvQl.png" alt="0683p000009LvQl.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
 &lt;P&gt;&amp;nbsp;&lt;/P&gt; 
 &lt;P&gt;Also there is another problem which I encountered recently; different loop xpath query yields different rows from input. For Eg: if loop xpath query is based on title i am getting different no of rows compared to the loop xpath query that is based on /_acl/groups. Can you please let me know how is that possible and how to eliminate such differences while extracting the data from source.&lt;/P&gt; 
 &lt;HR /&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;P&gt;The difference in record count happens when there is no data or no value inside that particular xpath loop query for that&amp;nbsp;element hence that record gets discarded.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I guess, we need to select maximum level of depth as the absolute path, only&amp;nbsp;then only the JSON will get converted in RDB format. If we choose, as said above we encounter 2 issues&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;OL&gt; 
 &lt;LI&gt;different values are not coming (column Status)&lt;/LI&gt; 
 &lt;LI&gt;If the data inside the path is null then whole record is ignore&lt;/LI&gt; 
&lt;/OL&gt; 
&lt;P&gt;How to have more than one row if the status having more than 1 value and if there is no value in status; get that particular record to output with other column present (in which column status alone is&amp;nbsp;null)&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 19 Jul 2017 12:52:03 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-07-19T12:52:03Z</dc:date>
    <item>
      <title>problem in data extraction from JSON file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/problem-in-data-extraction-from-JSON-file/m-p/2332107#M101019</link>
      <description>&lt;P&gt;I have the following JSON file at input and while extracting the data (using tExtractJSONFields, Readby: XPath) from the input file;&amp;nbsp;I am getting only one record for the column status at output with value&amp;nbsp;as "Viewed" but the status "Expired" goes missing and does not come at Target. May I know what did i do wrong and how to resolve so as to get 2 records that makes both the record to come at output.&amp;nbsp;Any assistance is greatly appreciated.&lt;/P&gt;
&lt;PRE&gt;{
        "_id": "abcd1234",
        "type": "assigned",
        "_time": {
            "stt": "2017-05-31T20:15:56.920Z",
            "tmn": "2017-04-04T16:47:51.669Z"
        },
        "assignedBy": "59235523cdb4446f2f95e583",
        "isPrivate": false,
        "status": [
            "viewed",
            "expired"
        ],
        "confirmationStatus": "",
        "completedTime": "0001-01-01T00:00:00",
        "milestones": [
            {
                "title": "Week 1",
                "completeBy": "2017-06-09T00:00:00Z",
                "completedDate": "0001-01-01T00:00:00"
            },
            {
                "title": "Week 2",
                "completeBy": "2017-06-09T00:00:00Z",
                "completedDate": "0001-01-01T00:00:00"
             },
        ],
        "searchableTitle": "Title123",
        "_acl": {
            "creator": "avcbbde123",
            "gr": false,
            "gw": false,
            "groups": {
                "r": [
                    "abcde12345"
                ],
                "w": [
                    "uvwxyz6789"
                ]
            }
        },
        "count": 672
    }&lt;/PRE&gt;</description>
      <pubDate>Mon, 17 Jul 2017 08:06:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/problem-in-data-extraction-from-JSON-file/m-p/2332107#M101019</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-17T08:06:57Z</dc:date>
    </item>
    <item>
      <title>Re: problem in data extraction from JSON file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/problem-in-data-extraction-from-JSON-file/m-p/2332108#M101020</link>
      <description>Hi 
&lt;BR /&gt;Any other elements do you want to parse and extract value? Or you just want to extract value of status element? How do you set the Loop xpath query?
&lt;BR /&gt;
&lt;BR /&gt;Regards
&lt;BR /&gt;Shong</description>
      <pubDate>Mon, 17 Jul 2017 09:04:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/problem-in-data-extraction-from-JSON-file/m-p/2332108#M101020</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-17T09:04:44Z</dc:date>
    </item>
    <item>
      <title>Re: problem in data extraction from JSON file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/problem-in-data-extraction-from-JSON-file/m-p/2332109#M101021</link>
      <description>&lt;P&gt;Hello&lt;/P&gt; 
&lt;P&gt;Do you want to extract 2 lines with the same data, but for one the status should be viewed and the other expired, right?&lt;/P&gt; 
&lt;P&gt;Please find the image attached, maybe it could helps you.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks&lt;/P&gt; 
&lt;P&gt;Douglas&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2017-07-18 at 11.30.03.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LvRB.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/146411iCC4634533B35498F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LvRB.png" alt="0683p000009LvRB.png" /&gt;&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;</description>
      <pubDate>Tue, 18 Jul 2017 11:29:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/problem-in-data-extraction-from-JSON-file/m-p/2332109#M101021</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-18T11:29:40Z</dc:date>
    </item>
    <item>
      <title>Re: problem in data extraction from JSON file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/problem-in-data-extraction-from-JSON-file/m-p/2332110#M101022</link>
      <description>&lt;P&gt;sorry for the delayed response,&lt;/P&gt; 
&lt;P&gt;in the attached screenshot, if i am having 2 different values at status viz., viewed, expired; I am getting only one value. can you please let me know how can both the value be extracted and the result should have 2 rows; each row containing each value of status all the other remains the same.&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="event_status_error.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LvQl.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/143642i7FEBFF305B0D50F9/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LvQl.png" alt="0683p000009LvQl.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Also there is another problem which I encountered recently; different loop xpath query yields different rows from input. For Eg: if loop xpath query is based on title i am getting different no of rows compared to the loop xpath query that is based on /_acl/groups. Can you please let me know how is that possible and how to eliminate such differences while extracting the data from source.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2017 11:55:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/problem-in-data-extraction-from-JSON-file/m-p/2332110#M101022</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-19T11:55:21Z</dc:date>
    </item>
    <item>
      <title>Re: problem in data extraction from JSON file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/problem-in-data-extraction-from-JSON-file/m-p/2332111#M101023</link>
      <description>&lt;BLOCKQUOTE&gt; 
 &lt;HR /&gt; 
 &lt;A href="https://community.qlik.com/s/profile/0053p000007LM5aAAG"&gt;@douglaszickuhr&lt;/A&gt; wrote: 
 &lt;BR /&gt; 
 &lt;P&gt;Hello&lt;/P&gt; 
 &lt;P&gt;Do you want to extract 2 lines with the same data, but for one the status should be viewed and the other expired, right?&lt;/P&gt; 
 &lt;P&gt;Please find the image attached, maybe it could helps you.&lt;/P&gt; 
 &lt;P&gt;&amp;nbsp;&lt;/P&gt; 
 &lt;P&gt;Thanks&lt;/P&gt; 
 &lt;P&gt;Douglas&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2017-07-18 at 11.30.03.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LvRB.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/146411iCC4634533B35498F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LvRB.png" alt="0683p000009LvRB.png" /&gt;&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;HR /&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;P&gt;if i use status in loop xpath query, i am getting lesser no. of records than that of using another field in xpath query.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2017 12:03:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/problem-in-data-extraction-from-JSON-file/m-p/2332111#M101023</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-19T12:03:08Z</dc:date>
    </item>
    <item>
      <title>Re: problem in data extraction from JSON file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/problem-in-data-extraction-from-JSON-file/m-p/2332112#M101024</link>
      <description>&lt;BLOCKQUOTE&gt; 
 &lt;HR /&gt; 
 &lt;A href="https://community.qlik.com/s/profile/0053p000007LLsVAAW"&gt;@sreenathtr&lt;/A&gt; wrote: 
 &lt;BR /&gt; 
 &lt;P&gt;sorry for the delayed response,&lt;/P&gt; 
 &lt;P&gt;in the attached screenshot, if i am having 2 different values at status viz., viewed, expired; I am getting only one value. can you please let me know how can both the value be extracted and the result should have 2 rows; each row containing each value of status all the other remains the same.&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="event_status_error.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LvQl.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/143642i7FEBFF305B0D50F9/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LvQl.png" alt="0683p000009LvQl.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
 &lt;P&gt;&amp;nbsp;&lt;/P&gt; 
 &lt;P&gt;Also there is another problem which I encountered recently; different loop xpath query yields different rows from input. For Eg: if loop xpath query is based on title i am getting different no of rows compared to the loop xpath query that is based on /_acl/groups. Can you please let me know how is that possible and how to eliminate such differences while extracting the data from source.&lt;/P&gt; 
 &lt;HR /&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;P&gt;The difference in record count happens when there is no data or no value inside that particular xpath loop query for that&amp;nbsp;element hence that record gets discarded.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I guess, we need to select maximum level of depth as the absolute path, only&amp;nbsp;then only the JSON will get converted in RDB format. If we choose, as said above we encounter 2 issues&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;OL&gt; 
 &lt;LI&gt;different values are not coming (column Status)&lt;/LI&gt; 
 &lt;LI&gt;If the data inside the path is null then whole record is ignore&lt;/LI&gt; 
&lt;/OL&gt; 
&lt;P&gt;How to have more than one row if the status having more than 1 value and if there is no value in status; get that particular record to output with other column present (in which column status alone is&amp;nbsp;null)&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2017 12:52:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/problem-in-data-extraction-from-JSON-file/m-p/2332112#M101024</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-19T12:52:03Z</dc:date>
    </item>
  </channel>
</rss>

