Skip to main content
Feb 27, 2025 11:05 AM UTC
Solved

Upsert in array elements

I have many elements in an array. how to upset data into array elements. So I can see in profile section

kautuk_sahni
kautuk_sahniAccepted solution
Level 9
Mar 7, 2025 12:55 PM UTC

@deepakma6 Did you find the suggestions helpful? Please let us know if you need more information. If a response worked, kindly mark it as correct for posterity; alternatively, if you found a solution yourself, we’d appreciate it if you could share it with the community. Thank you!

Kautuk Sahni

4 replies

DavidRoss91
Community Advisor
Community Advisor
Feb 28, 2025 2:25 PM UTC

Hi @deepakma6  you can add upsert to dataset using this documentation:

Enable a Dataset for Profile Updates using APIs | Adobe Experience Platform

Translate
David Ross
DeepakMa6Author
Feb 28, 2025 2:33 PM UTC

Hi @davidross91 

Thanks for your response. Yes, I enabled upsert for the dataset. I have to change the calculated attribute value in an array everyday (Example: Age). So, If I try to ingest, it is creating a new array element instead to upserting into existing array index. I am getting duplicate entries in an array. 
I am looking into the below documentation

Note: I have this attributes in a Experience profile class.
https://experienceleague.adobe.com/en/docs/experience-platform/data-prep/upserts

Translate
RiteshY18
Community Advisor
Community Advisor
Mar 4, 2025 12:21 AM UTC

@deepakma6  The streaming upserts method does not support updating, replacing, and removing identities. New identities are created if they do not exist. Hence the identity operation must always be set to create. If an identity already exists, the operation is a no-op.

Translate
kautuk_sahni
kautuk_sahniAccepted solution
Level 9
Mar 7, 2025 12:55 PM UTC

@deepakma6 Did you find the suggestions helpful? Please let us know if you need more information. If a response worked, kindly mark it as correct for posterity; alternatively, if you found a solution yourself, we’d appreciate it if you could share it with the community. Thank you!

Translate
Kautuk Sahni