<?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 Automatic creation of key between two tables in load script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Automatic-creation-of-key-between-two-tables-in-load-script/m-p/1838970#M1232129</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am trying to understand how can I add manually a key between two tables in the load script. I have tried to mimic what the wizard do : e.g.&lt;/P&gt;&lt;P&gt;// Start of [train.xml] LOAD statements&lt;BR /&gt;label:&lt;BR /&gt;LOAD label%Table,&lt;BR /&gt;%Key_train_17B52150F604C085 // Key to parent table: reportingExport/train&lt;BR /&gt;FROM train.xml (XmlSimple, Table is [reportingExport/train/labels/label]);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;train:&lt;BR /&gt;LOAD trainIdentifier,&lt;BR /&gt;trainFamilyID,&lt;BR /&gt;trainTrainGroupVersionName,&lt;BR /&gt;trainDescription,&lt;BR /&gt;timetablePeriod,&lt;BR /&gt;trainLineNumber,&lt;BR /&gt;familyNumber,&lt;BR /&gt;trainNumber,&lt;BR /&gt;idExtension,&lt;BR /&gt;trainTrainType,&lt;BR /&gt;trainTypeProfile,&lt;BR /&gt;trainRemarks,&lt;BR /&gt;[trainLineNumber/lineNumberIdentifier] as lineNumberIdentifier,&lt;BR /&gt;[trainTrainGroupVersionName/trainGroupVersionIdentifier] as trainGroupVersionIdentifier,&lt;BR /&gt;%Key_train_17B52150F604C085 // Key for this table: reportingExport/train&lt;BR /&gt;FROM train.xml (XmlSimple, Table is [reportingExport/train]);&lt;BR /&gt;// End of [train.xml] LOAD statements&lt;/P&gt;&lt;P&gt;And this works fine, %Key_train_17B52150F604C085 is populated in both tables. However, if I had manually this :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;sectionRemark:&lt;BR /&gt;LOAD trainPathNodeSectionRemark%Table,&lt;BR /&gt;%Key_trainPathNode_B23783C177252AE6 // Key to parent table: trainPathNode&lt;BR /&gt;FROM trainPath.xml (XmlSimple, Table is [reportingExport/trainPath/trainPathNode/trainPathNodeSectionRemarks/trainPathNodeSectionRemark]);&lt;/P&gt;&lt;P&gt;trainPathNode:&lt;BR /&gt;LOAD index,&lt;BR /&gt;isFirst,&lt;BR /&gt;&lt;EM&gt;... //many more lines&lt;/EM&gt;&lt;BR /&gt;%Key_trainPath_B23783C177252BF6 // Key to parent table: reportingExport/trainPath&lt;BR /&gt;FROM trainPath.xml (XmlSimple, Table is [reportingExport/trainPath/trainPathNode]);&lt;/P&gt;&lt;P&gt;%Key_trainPath_B23783C177252BF6 is not filled. I have also notice that %Key_trainPath_B23783C177252BF6 hat tags $text and $ascii while %Key_train_17B52150F604C085, introduced by the wizard has tags $numeric and $integer. I wonder what are the difference between the key introduced by the wizard and the one I am trying to define manually.&lt;/P&gt;&lt;P&gt;Thanks in advance for any help&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Pierre&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 26 Jan 2026 16:26:21 GMT</pubDate>
    <dc:creator>Pierre1</dc:creator>
    <dc:date>2026-01-26T16:26:21Z</dc:date>
    <item>
      <title>Automatic creation of key between two tables in load script</title>
      <link>https://community.qlik.com/t5/QlikView/Automatic-creation-of-key-between-two-tables-in-load-script/m-p/1838970#M1232129</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am trying to understand how can I add manually a key between two tables in the load script. I have tried to mimic what the wizard do : e.g.&lt;/P&gt;&lt;P&gt;// Start of [train.xml] LOAD statements&lt;BR /&gt;label:&lt;BR /&gt;LOAD label%Table,&lt;BR /&gt;%Key_train_17B52150F604C085 // Key to parent table: reportingExport/train&lt;BR /&gt;FROM train.xml (XmlSimple, Table is [reportingExport/train/labels/label]);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;train:&lt;BR /&gt;LOAD trainIdentifier,&lt;BR /&gt;trainFamilyID,&lt;BR /&gt;trainTrainGroupVersionName,&lt;BR /&gt;trainDescription,&lt;BR /&gt;timetablePeriod,&lt;BR /&gt;trainLineNumber,&lt;BR /&gt;familyNumber,&lt;BR /&gt;trainNumber,&lt;BR /&gt;idExtension,&lt;BR /&gt;trainTrainType,&lt;BR /&gt;trainTypeProfile,&lt;BR /&gt;trainRemarks,&lt;BR /&gt;[trainLineNumber/lineNumberIdentifier] as lineNumberIdentifier,&lt;BR /&gt;[trainTrainGroupVersionName/trainGroupVersionIdentifier] as trainGroupVersionIdentifier,&lt;BR /&gt;%Key_train_17B52150F604C085 // Key for this table: reportingExport/train&lt;BR /&gt;FROM train.xml (XmlSimple, Table is [reportingExport/train]);&lt;BR /&gt;// End of [train.xml] LOAD statements&lt;/P&gt;&lt;P&gt;And this works fine, %Key_train_17B52150F604C085 is populated in both tables. However, if I had manually this :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;sectionRemark:&lt;BR /&gt;LOAD trainPathNodeSectionRemark%Table,&lt;BR /&gt;%Key_trainPathNode_B23783C177252AE6 // Key to parent table: trainPathNode&lt;BR /&gt;FROM trainPath.xml (XmlSimple, Table is [reportingExport/trainPath/trainPathNode/trainPathNodeSectionRemarks/trainPathNodeSectionRemark]);&lt;/P&gt;&lt;P&gt;trainPathNode:&lt;BR /&gt;LOAD index,&lt;BR /&gt;isFirst,&lt;BR /&gt;&lt;EM&gt;... //many more lines&lt;/EM&gt;&lt;BR /&gt;%Key_trainPath_B23783C177252BF6 // Key to parent table: reportingExport/trainPath&lt;BR /&gt;FROM trainPath.xml (XmlSimple, Table is [reportingExport/trainPath/trainPathNode]);&lt;/P&gt;&lt;P&gt;%Key_trainPath_B23783C177252BF6 is not filled. I have also notice that %Key_trainPath_B23783C177252BF6 hat tags $text and $ascii while %Key_train_17B52150F604C085, introduced by the wizard has tags $numeric and $integer. I wonder what are the difference between the key introduced by the wizard and the one I am trying to define manually.&lt;/P&gt;&lt;P&gt;Thanks in advance for any help&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Pierre&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jan 2026 16:26:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Automatic-creation-of-key-between-two-tables-in-load-script/m-p/1838970#M1232129</guid>
      <dc:creator>Pierre1</dc:creator>
      <dc:date>2026-01-26T16:26:21Z</dc:date>
    </item>
  </channel>
</rss>

