내 커뮤니티 업적 표시줄을 확대합니다.

Adobe Experience Platform (AEP) & Apps User Groups are live to Network, learn, and share in your regional locations.

Mark Solution

활동이 없어 이 대화는 잠겼습니다. 새 게시물을 작성해 주세요.

해결됨

Data Ingestion for Object Array field using File Upload method?

Avatar

Level 3

Hi team,
Please help me to ingest below data in data lake through file upload method

Sample file in below records:

PNameBirthdate
Jery|doll2023-03-10T18:56:41+00:00|2023-08-10T18:56:41+00:00
Tom|Marry2023-05-10T18:56:41+00:00|2023-08-10T18:56:41+00:00


on below schema for reference schema structure for reference:

sandip_surse_0-1695740095648.png
Please provide the suggestion or guide me on the same.

We are expecting to getting similar records at dataset level:

PNameBirthdate
Jery|doll2023-03-10T18:56:41+00:00|2023-08-10T18:56:41+00:00
Tom|Marry2023-05-10T18:56:41+00:00|2023-08-10T18:56:41+00:00



Regards,
Sandip



1 채택된 해결책 개

Avatar

정확한 답변 작성자:
Community Advisor

Hello, @sandip_surse 

This solution will suit your needs:

Transform the arrays using the following method:

arrays_to_objects("birthDate", explode(Birthdate, "\|"), "XYZName", explode(PName, "\|"))

I couldn't find the correct name for the 'Name' field in your schema, so I used 'XYZName' as a placeholder above.

Once you've completed this step, kindly map it directly to the object array. Make sure to remove [0] from the data mapping.
Thanks,

Arpan

원본 게시물의 솔루션 보기

5 답변 개

Avatar

Level 1

Please confirm a proper file format (.Parquet or JSON) for manual file uploads, not csv.

https://experienceleague.adobe.com/docs/experience-platform/ingestion/tutorials/ingest-batch-data.ht...

Avatar

Level 3
Hi Verticurl,

It's CSV file format data.
We are already across on this document also we are able to see data during the data preparation but still data is not yet ingested as we expected.

 

Avatar

Level 1

For source connector Local File Upload, make sure you enable Error diagnostics to generate detailed error messages, then check for errors on failed ingestion status.


Please review docs:
https://experienceleague.adobe.com/docs/experience-platform/sources/connectors/local-system/local-fi...
https://experienceleague.adobe.com/docs/experience-platform/dataflows/ui/monitor-sources.html?lang=e...

Avatar

정확한 답변 작성자:
Community Advisor

Hello, @sandip_surse 

This solution will suit your needs:

Transform the arrays using the following method:

arrays_to_objects("birthDate", explode(Birthdate, "\|"), "XYZName", explode(PName, "\|"))

I couldn't find the correct name for the 'Name' field in your schema, so I used 'XYZName' as a placeholder above.

Once you've completed this step, kindly map it directly to the object array. Make sure to remove [0] from the data mapping.
Thanks,

Arpan

Avatar

Level 3

Thanks Arpan,
We are used similar way one more data prep function and now issue get fixed thanks...
to_array(true,split(attribute_Name,"|")