Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Problem loading XMLs

Hi all,

I want to load different XML files, they have the same format , so I want to have all their data in the same tables (I've attached the script).

In the script, I load an inline table with part of the path, because all files are in different folders, and with that way I have a shorter script.

I want to clarify that before that, I had loaded all the files individually and the %key generated by the wizard was the same for all them.

The problem is that the %key is repeated when the script loads all the files, leaving false associations.

What can I do??

Thanks in advance!

1 Solution

Accepted Solutions
rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

The trick is to add some uniqueness to the key, like the $(folder) or FilePath():

FilePath() & %Key_destino_2C4D9A0B3E130196 as key_ejecucion_SINC

-Rob

http://masterssummit.com

http://qlikviewcookbook.com

View solution in original post

6 Replies
Not applicable
Author

Hi, please don't use Qlikview generated Key columns as your associated keys. Please use your data points in the XML to make correct associations.

rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

The trick is to add some uniqueness to the key, like the $(folder) or FilePath():

FilePath() & %Key_destino_2C4D9A0B3E130196 as key_ejecucion_SINC

-Rob

http://masterssummit.com

http://qlikviewcookbook.com

Not applicable
Author

Thank you very much Rob!! It works!

Have a good week.

Not applicable
Author

Thanks for your answer. My problem was that some XML nodes didn't have data points.

Have a good week!

daniel_sonda
Contributor II
Contributor II

What's the logic behind the field [%Key_destino_2C4D9A0B3E130196]?

Is a sequencial key based on [destino] field?


rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

The [%Key_destino_2C4D9A0B3E130196] is automatically generated by QV to associate one-to-many relationships in the XML.