Mapping csv array and object | Community
Skip to main content
Level 2
November 14, 2024
Solved

Mapping csv array and object

  • November 14, 2024
  • 1 reply
  • 690 views

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:

 

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?

 

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by RodolfoCh

Hello @rodolfoch,

 

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

 

~cheers,

Naresh Nakirikanti.


I solvet with this

Using Split with subarrays, and arrays_to_object to main arrays or main object

 

 

Thank u!

 

1 reply

nnakirikanti
Community Advisor
Community Advisor
November 22, 2024

Hello @rodolfoch,

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

 

~cheers

Naresh Nakirikanti

RodolfoChAuthor
Level 2
November 22, 2024

I already solvet it

Thank u!

 

 

nnakirikanti
Community Advisor
Community Advisor
November 22, 2024

Hello @rodolfoch,

 

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

 

~cheers,

Naresh Nakirikanti.