Expand my Community achievements bar.

Mapping csv array and object

Avatar

Level 1

Hello, Im trying to map csv to dataset 

 

Im having the follow csv:

SKUSizeColor
10214039001|10233324003|1025377500910|BOYS 6|10.5B1O SAPP|M19 SMO|ALU ALU
   

 

and  the follow schema:

RodolfoCh_0-1731599077761.png

 

I tried using the following transformation:

arrays_to_objects("SKU", explode(SKU, "\\|"), "_sportline.Color", explode(Color, "\\|"))

However, it only worked for the SKU column and not for Color. Could you please help me resolve this issue?

 

 

3 Replies

Avatar

Community Advisor

Hello @RodolfoCh,

Data Prep functions works like champ for me, can you the share the screen of target field mapping as well.

 

nnakirikanti_0-1732307913917.png

~cheers

Naresh Nakirikanti

Avatar

Community Advisor

Hello @RodolfoCh,

 

If you could share the answer, that would be fantastic so that the community can benefit from it.

 

~cheers,

Naresh Nakirikanti.