<?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: tInputFileXML returns null values in Open Studio 7.1 in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tInputFileXML-returns-null-values-in-Open-Studio-7-1/m-p/2275499#M51853</link>
    <description>&lt;P&gt;Hi rahll,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The test I am doing since yesterday is with the file example.xml. The result is exactly the same I get with the real data. If I get to make work example.xml, that's it. The problem is that the file doesn't produce 4 records with data in Talend. It produces 4 records with null values. If I solve the problem with example.xml, I have solved the problem.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any help is welcome.&lt;/P&gt;</description>
    <pubDate>Wed, 20 Feb 2019 15:31:43 GMT</pubDate>
    <dc:creator>spr654</dc:creator>
    <dc:date>2019-02-20T15:31:43Z</dc:date>
    <item>
      <title>tInputFileXML returns null values in Open Studio 7.1</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tInputFileXML-returns-null-values-in-Open-Studio-7-1/m-p/2275491#M51845</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Using an xml that I have entered as metadata (I don't know why, but xsd files are not working 100% with the mapping), I have imported it as tInputFileXML in a job. This file is in attachment. This is the structure in the metadata:&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="metadata_example.PNG" style="width: 558px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M3D6.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/136895i6704BD58E1191F74/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M3D6.png" alt="0683p000009M3D6.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;In the file I have 2 transactions, and in each transactions I have&amp;nbsp; 2 changeEvents. 2 of the events are of type QualificationInformationChangeEvent; and 2 are customsqualificationValidityChangeEvent.&lt;/P&gt; 
&lt;P&gt;The issue: when I try to get the 4 records, I get nulls everywhere. This is the loop XPath query that I use:&lt;/P&gt; 
&lt;P&gt;"/ns0:replicationMessage/body/transaction/changeEvent"&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="job.PNG" style="width: 367px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M04S.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/132491iA6855E50B3DC040C/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M04S.png" alt="0683p000009M04S.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;and the results:&lt;/P&gt; 
&lt;P&gt;|messageId|sender|recoveryMode|sentOnTime|transactionId|changeType|changeTime|versionId|source|typeOfQualification...&lt;BR /&gt;|=--------+------+------------+----------+-------------+----------+----------+---------+------+-------------------+&lt;BR /&gt;|null |null |null |null |null |null |null |null |null |null&lt;BR /&gt;|null |null |null |null |null |null |null |null |null |null&lt;BR /&gt;|null |null |null |null |null |null |null |null |null |null&lt;BR /&gt;|null |null |null |null |null |null |null |null |null |null&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;What went wrong? Any help is welcome.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Feb 2019 14:13:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tInputFileXML-returns-null-values-in-Open-Studio-7-1/m-p/2275491#M51845</guid>
      <dc:creator>spr654</dc:creator>
      <dc:date>2019-02-19T14:13:06Z</dc:date>
    </item>
    <item>
      <title>Re: tInputFileXML returns null values in Open Studio 7.1</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tInputFileXML-returns-null-values-in-Open-Studio-7-1/m-p/2275492#M51846</link>
      <description>&lt;P&gt;Have you configured your XPaths? Can you show us the configuration of your tFileInputXML?&lt;/P&gt;</description>
      <pubDate>Tue, 19 Feb 2019 14:57:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tInputFileXML-returns-null-values-in-Open-Studio-7-1/m-p/2275492#M51846</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-02-19T14:57:53Z</dc:date>
    </item>
    <item>
      <title>Re: tInputFileXML returns null values in Open Studio 7.1</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tInputFileXML-returns-null-values-in-Open-Studio-7-1/m-p/2275493#M51847</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;thanks. Of course, here it is:&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="xpathquery.PNG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M38R.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/151828iBC14B45CCE93B7DD/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M38R.png" alt="0683p000009M38R.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, 19 Feb 2019 16:25:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tInputFileXML-returns-null-values-in-Open-Studio-7-1/m-p/2275493#M51847</guid>
      <dc:creator>spr654</dc:creator>
      <dc:date>2019-02-19T16:25:07Z</dc:date>
    </item>
    <item>
      <title>Re: tInputFileXML returns null values in Open Studio 7.1</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tInputFileXML-returns-null-values-in-Open-Studio-7-1/m-p/2275494#M51848</link>
      <description>&lt;P&gt;I see your loop shows a namespace, but your XPaths do not. Namespaces can be a bit of a pain here. You have a couple of options, you can add your namespaces to your XPaths. This will be a bit of a pain, but means you are being 100% accurate. Alternatively, goto the "Advanced Settings" and click on the "ignore the namespaces". See if that changes anything&lt;/P&gt;</description>
      <pubDate>Tue, 19 Feb 2019 17:07:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tInputFileXML-returns-null-values-in-Open-Studio-7-1/m-p/2275494#M51848</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-02-19T17:07:58Z</dc:date>
    </item>
    <item>
      <title>Re: tInputFileXML returns null values in Open Studio 7.1</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tInputFileXML-returns-null-values-in-Open-Studio-7-1/m-p/2275495#M51849</link>
      <description>Hi rahll, Thank you very much for your help. How can I add a namespace in a xpath? Could you show a picture of what you mean? Where should I add it? Thanks for your help and support.</description>
      <pubDate>Tue, 19 Feb 2019 20:06:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tInputFileXML-returns-null-values-in-Open-Studio-7-1/m-p/2275495#M51849</guid>
      <dc:creator>spr654</dc:creator>
      <dc:date>2019-02-19T20:06:02Z</dc:date>
    </item>
    <item>
      <title>Re: tInputFileXML returns null values in Open Studio 7.1</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tInputFileXML-returns-null-values-in-Open-Studio-7-1/m-p/2275496#M51850</link>
      <description>&lt;P&gt;I'm afraid I do not have any jobs where I have done this on the machine I am currently using. I tend to be lazy and just use the "ignore the namespace" option in most cases &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt; 
&lt;P&gt;However, this should help you (&lt;A href="https://stackoverflow.com/questions/3931817/xpath-expression-from-xml-with-namespace-prefix" target="_blank" rel="nofollow noopener noreferrer"&gt;https://stackoverflow.com/questions/3931817/xpath-expression-from-xml-with-namespace-prefix&lt;/A&gt;)&lt;/P&gt;</description>
      <pubDate>Tue, 19 Feb 2019 22:50:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tInputFileXML-returns-null-values-in-Open-Studio-7-1/m-p/2275496#M51850</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-02-19T22:50:17Z</dc:date>
    </item>
    <item>
      <title>Re: tInputFileXML returns null values in Open Studio 7.1</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tInputFileXML-returns-null-values-in-Open-Studio-7-1/m-p/2275497#M51851</link>
      <description>&lt;P&gt;Hi rahll,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ignoring the namespaces didn't work. Any ideas? I'm loosing hope...&lt;/P&gt;</description>
      <pubDate>Wed, 20 Feb 2019 09:48:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tInputFileXML-returns-null-values-in-Open-Studio-7-1/m-p/2275497#M51851</guid>
      <dc:creator>spr654</dc:creator>
      <dc:date>2019-02-20T09:48:58Z</dc:date>
    </item>
    <item>
      <title>Re: tInputFileXML returns null values in Open Studio 7.1</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tInputFileXML-returns-null-values-in-Open-Studio-7-1/m-p/2275498#M51852</link>
      <description>&lt;P&gt;Can you give an example of your actual XML file (remove any private data) and the XPaths you have just tried please? I will take a look and see what I can suggest&lt;/P&gt;</description>
      <pubDate>Wed, 20 Feb 2019 11:24:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tInputFileXML-returns-null-values-in-Open-Studio-7-1/m-p/2275498#M51852</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-02-20T11:24:39Z</dc:date>
    </item>
    <item>
      <title>Re: tInputFileXML returns null values in Open Studio 7.1</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tInputFileXML-returns-null-values-in-Open-Studio-7-1/m-p/2275499#M51853</link>
      <description>&lt;P&gt;Hi rahll,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The test I am doing since yesterday is with the file example.xml. The result is exactly the same I get with the real data. If I get to make work example.xml, that's it. The problem is that the file doesn't produce 4 records with data in Talend. It produces 4 records with null values. If I solve the problem with example.xml, I have solved the problem.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any help is welcome.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Feb 2019 15:31:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tInputFileXML-returns-null-values-in-Open-Studio-7-1/m-p/2275499#M51853</guid>
      <dc:creator>spr654</dc:creator>
      <dc:date>2019-02-20T15:31:43Z</dc:date>
    </item>
    <item>
      <title>Re: tInputFileXML returns null values in Open Studio 7.1</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tInputFileXML-returns-null-values-in-Open-Studio-7-1/m-p/2275500#M51854</link>
      <description>&lt;P&gt;Update:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I have created a new job and I have mapped &lt;STRONG&gt;manually &lt;/STRONG&gt;some fields. It is working now, but it is going to take me ages to fix all the mapping manually. Here is the mapping:&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="new_mapping.PNG" style="width: 795px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M3Fq.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/133780i332087567B2825B7/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M3Fq.png" alt="0683p000009M3Fq.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Feb 2019 15:54:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tInputFileXML-returns-null-values-in-Open-Studio-7-1/m-p/2275500#M51854</guid>
      <dc:creator>spr654</dc:creator>
      <dc:date>2019-02-20T15:54:02Z</dc:date>
    </item>
    <item>
      <title>Re: tInputFileXML returns null values in Open Studio 7.1</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tInputFileXML-returns-null-values-in-Open-Studio-7-1/m-p/2275501#M51855</link>
      <description>&lt;P&gt;Sorry, I didn't see the example XML you posted originally.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Your new layout makes sense having seen that. You need to loop on the element that is the key to your row data. My assumption previously was that you had the loop element correct since you were getting the correct number of rows, albeit with nulls. This would normally be a symptom of a namespace issue from my experience. I may have jumped to that conclusion, so I apologise for sending you down the wrong track.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I know populating the XPaths like this will be time consuming, but there is no easier way of doing this. I've had to interrogate XML files with multiple nested loops which have required multiple components and hundreds of XPaths, so know it is not fun.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Feb 2019 16:42:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tInputFileXML-returns-null-values-in-Open-Studio-7-1/m-p/2275501#M51855</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-02-20T16:42:11Z</dc:date>
    </item>
    <item>
      <title>Re: tInputFileXML returns null values in Open Studio 7.1</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tInputFileXML-returns-null-values-in-Open-Studio-7-1/m-p/2275502#M51856</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I have finally used the wizard to create the metadata.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Taking my example file, I have created a new input xml&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="importloopmetadata.png" style="width: 605px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M3IB.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/128714i41DA025246D65F47/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M3IB.png" alt="0683p000009M3IB.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;Then I select only the fields from&amp;nbsp;QualificationInformationChangeEvent.&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="select fields metadata.png" style="width: 605px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M2B6.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/128842i195EF7D67923F47C/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M2B6.png" alt="0683p000009M2B6.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;then, in a new job, I dragdropped the metadata as tInputXMLFile, and connected it to a tLogRow.&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="metadataImported.PNG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M3IL.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/130016i497C77A9B0891FDC/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M3IL.png" alt="0683p000009M3IL.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;and it found all the records (2).&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Rahll, thanks for your support. I will open now another ticket with my next issue...&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Feb 2019 14:01:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tInputFileXML-returns-null-values-in-Open-Studio-7-1/m-p/2275502#M51856</guid>
      <dc:creator>spr654</dc:creator>
      <dc:date>2019-02-21T14:01:08Z</dc:date>
    </item>
  </channel>
</rss>

