Hi. I am having a problem with arrays in profile attributes and need guidance.
I am performing a proof of concept of arrays on profile attributes applying mapping functions. I have an XDM Individual Profile schema that, among its fields, there is an array of strings. In the same way, I have a dataset based on that schema.
I am using the Local File Upload source to upload CSV files. I have the following CSV files:
test1.csv
ID_CLIENTE_CORE, ARRAY
T0000000001, Hello
test2.csv
ID_CLIENTE_CORE, ARRAY
T0000000001, Friend
When it comes to mapping, I create a calculated field as follows:
upsert_array_append(to_array(false, ARRAY))
Let me explain why I use these mapping functions:
I have tried the following mappings:
Source data | Target fields |
upsert_array_append(to_array(false, ARRAY)) | _tenant.ArrayAppendTest.array |
upsert_array_append(to_array(false, ARRAY)) | _tenant.ArrayAppendTest.array[*] |
However, every time I upload data using any of the above mappings, the to_array(ARRAY) field replaces the one that was previously in the profile.
It should be noted that I have the isUpsert flag enabled [2], so I think my problem is related to how I am doing the mapping.
Doc. reference.
Solved! Go to Solution.
Topics help categorize Community content and increase your ability to discover relevant content.
Views
Replies
Total Likes
you're facing an issue with appending values to an array field in an XDM Individual Profile schema using Adobe Experience Platform. Based on your description, the problem likely lies in how the upsert_array_append function is applied during the data mapping process.
Here’s a breakdown of your situation:
Understanding to_array and upsert_array_append:
Issue Encountered:
Possible Cause:
Potential Solution:
Mapping Example:
Avoid using [*] unless you're targeting specific elements within an array. If [*] is not used correctly, it could lead to the behavior where existing elements are replaced.
Enabling the isUpsert Flag:
If the issue persists, it might be beneficial to reach out to Adobe Support for more detailed troubleshooting specific to your implementation.
you're facing an issue with appending values to an array field in an XDM Individual Profile schema using Adobe Experience Platform. Based on your description, the problem likely lies in how the upsert_array_append function is applied during the data mapping process.
Here’s a breakdown of your situation:
Understanding to_array and upsert_array_append:
Issue Encountered:
Possible Cause:
Potential Solution:
Mapping Example:
Avoid using [*] unless you're targeting specific elements within an array. If [*] is not used correctly, it could lead to the behavior where existing elements are replaced.
Enabling the isUpsert Flag:
If the issue persists, it might be beneficial to reach out to Adobe Support for more detailed troubleshooting specific to your implementation.
I have tried with _tenant.ArrayAppendTest.array, without using [*], getting the same result. I also have the isUpsert flag enabled.
Views
Replies
Total Likes
Hi @edgar_herrera upsert_array_append works only when dataset is enabled for upsert. Check and enable it by going through following link. Also you will not be able to verify this in datat lake as it gets updated into profile only.
Thanks,
Views
Replies
Total Likes
I have the isUpsert flag enabled. I have already mentioned it above
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies