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: 
marko_rakar
Creator
Creator

Automatic unique field names

I am trying to import database which is exported from some ERP  system and some of the field names repeat themselves in a single table.

Is there a way to automaticaly make this fields unique (so when I try to import table for this fields to be identified and renamed)?

it is easy if you happen to have just few fields, but this tables come with hundreds of fields and it is quite time consuming to identify why error occurs exactly (my current process is to copy all field names into excel, sort it and visually find fields with same names).

2 Replies
marcus_sommer

You couldn't do it directly within a qlik load-statement. You will need an additionally routine which reads the fieldnames from the table and checked then within a loop if this fieldname already exists and if yes add an additional counter and then concat this fieldname-output within a variable which is then used as fieldlist within the real data-load.

But if possible you should try to fix it within the database.

- Marcus

marko_rakar
Creator
Creator
Author

this is actually good suggestion (little bit complicated but possible)

thanks

p.s. it is not possible to influence export and take care that field names are unique during export