Skip to main content
Solved

Lookup ONE Desktop


JTH
Data Pioneer
Forum|alt.badge.img+2
  • Data Pioneer
  • 16 replies

Hi,

I have a .csv file containing country codes that looks like:

countrycode.csv

I want to use this file as a lookup. In ONE Web it is possible to use a .lkp file as a lookup (why not just import an excel file there is beyond me). In order to do this I understoond I had to create a lookup builder:

Lookup builder​​

In the Text File Reader I selected the documented with the encoding (I hope this is the right one?). As for the columns I created nm_lnd and kd_lnd (both string).

Text File Reader - General
Text File Reader - Columns

As for the Lookup Builder:

Lookup Builder

When I run it a .lkp is created but also a rejected.txt with everything that is inside the .csv meaning I'm not able to create the desired .lkp file. What can I do to resolve this? Is there also documentation on how to create lookup using .csv somewhere? I can't find it.

Best answer by may_kwok

You may also find the lkp tutorials in ONE Desktop helpful:

 

 

In the example file, it is also semi-colon delimited. You can see how they configure the Text File Reader.

View original
Did this topic help you find an answer to your question?

3 replies

may_kwok
Star Blazer L3
Forum|alt.badge.img+4
  • Star Blazer L3
  • 81 replies
  • July 19, 2024

Your text file seems to be semi colon delimited. Your text file reader however seems to want to find \t as separators. Which means it could not find the column kd_lnd. It found nm_lnd;kd_lnd as the column header instead.

 

Try to open the CSV file itself in Ataccama desktop. It should prompt you to define correct metadata, with some auto recognition of separators and encoding. The preview at the bottom will show you if it has recognised the format. Then when you drag that file in it will use the metadata you have defined.


may_kwok
Star Blazer L3
Forum|alt.badge.img+4
  • Star Blazer L3
  • 81 replies
  • Answer
  • July 22, 2024

You may also find the lkp tutorials in ONE Desktop helpful:

 

 

In the example file, it is also semi-colon delimited. You can see how they configure the Text File Reader.


JTH
Data Pioneer
Forum|alt.badge.img+2
  • Author
  • Data Pioneer
  • 16 replies
  • July 22, 2024

Thank you May! Glad to see you around again 😀


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings