Upsert in array elements | Community
Skip to main content
February 27, 2025
Solved

Upsert in array elements

  • February 27, 2025
  • 2 replies
  • 912 views

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

Best answer by kautuk_sahni

@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!

2 replies

DavidRoss91
Community Advisor
Community Advisor
February 28, 2025

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

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

DeepakMa6Author
February 28, 2025

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

RiteshY18
Community Advisor
Community Advisor
March 4, 2025

@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.

kautuk_sahni
Community Manager
kautuk_sahniCommunity ManagerAccepted solution
Community Manager
March 7, 2025

@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