<?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: extract key value pairs. in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/extract-key-value-pairs/m-p/2375129#M137606</link>
    <description>Worked it out myself...&lt;BR /&gt;Create a dummy record as the first record of the data file with all the possible Key Value pairs in the required order. Can then use tPivotToColumnsDelimited to generate the records.&lt;BR /&gt;As long as the dummy values are at the beginning of each file, the format will always match.</description>
    <pubDate>Tue, 11 Aug 2015 14:29:23 GMT</pubDate>
    <dc:creator>IanM</dc:creator>
    <dc:date>2015-08-11T14:29:23Z</dc:date>
    <item>
      <title>extract key value pairs.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/extract-key-value-pairs/m-p/2375128#M137605</link>
      <description>&lt;P&gt;Hello, I'm having problems converting an extract that is being presented in Key/Value pairs. The&amp;nbsp;following is an example:&lt;BR /&gt;&lt;BR /&gt;A&lt;BR /&gt;groupNbr|04512345&lt;BR /&gt;language|jp&lt;BR /&gt;RangeNumber|2550xxxxx&lt;BR /&gt;LifecycleStatus|60&lt;BR /&gt;manufacturerPartNumber|Dxx&lt;BR /&gt;manufacturerPartNumberFormatted|Dxx&lt;BR /&gt;baseUnitOfMeasure|EA&lt;BR /&gt;salesUnitOfMeasure|BG&lt;BR /&gt;packSize|20&lt;BR /&gt;packType|FINISHED&lt;BR /&gt;additionalSearchTerms|&lt;BR /&gt;imagePrimary|F045xxxx.jpg&lt;BR /&gt;rangeID|PCSR_11xxx&lt;BR /&gt;subRangeID|PCSSR_35xxxx&lt;BR /&gt;subRangeName|xDL&lt;BR /&gt;familyID|PSF_43xxxx&lt;BR /&gt;familyName|xxxxxxxx&lt;BR /&gt;sectionName|xxxxxxxxxxxxxx&lt;BR /&gt;searchAttributeNameValue|xxxxxxxxxxxxxxxxxxxx&lt;BR /&gt;EOR&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT color="#000000"&gt;&lt;FONT size="3"&gt;&lt;FONT face="Calibri"&gt;My issue is that not all pairs are always present. They always have a groupNBR and a language but the next record may not, for example, have a record for 'imagePrimary' or 'sectionName' so it needs to be able to cope with varying record&amp;nbsp;format.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT color="#000000"&gt;&lt;FONT size="3"&gt;&lt;FONT face="Calibri"&gt;I have found MaheshMP's&amp;nbsp; tFileInputKeyValue custom component and though it works very well in foreground mode, it returns corrupted data when run as an exported job. Some files complete, others fail completely or have partial data. It does not error and I have not been able to identify the cause.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT color="#000000"&gt;&lt;FONT size="3"&gt;&lt;FONT face="Calibri"&gt;Does anyone have any recommendations for how I could use standard components to solve this please, or any other suggestions?&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT color="#000000"&gt;&lt;FONT size="3"&gt;&lt;FONT face="Calibri"&gt;Many thanks&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT color="#000000"&gt;&lt;FONT size="3"&gt;&lt;FONT face="Calibri"&gt;Ian&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Aug 2015 19:47:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/extract-key-value-pairs/m-p/2375128#M137605</guid>
      <dc:creator>IanM</dc:creator>
      <dc:date>2015-08-10T19:47:25Z</dc:date>
    </item>
    <item>
      <title>Re: extract key value pairs.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/extract-key-value-pairs/m-p/2375129#M137606</link>
      <description>Worked it out myself...&lt;BR /&gt;Create a dummy record as the first record of the data file with all the possible Key Value pairs in the required order. Can then use tPivotToColumnsDelimited to generate the records.&lt;BR /&gt;As long as the dummy values are at the beginning of each file, the format will always match.</description>
      <pubDate>Tue, 11 Aug 2015 14:29:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/extract-key-value-pairs/m-p/2375129#M137606</guid>
      <dc:creator>IanM</dc:creator>
      <dc:date>2015-08-11T14:29:23Z</dc:date>
    </item>
  </channel>
</rss>

