Migration of Audience From One Sandbox to Another in AEP | Community
Skip to main content
Level 2
January 29, 2024
Solved

Migration of Audience From One Sandbox to Another in AEP

  • January 29, 2024
  • 1 reply
  • 1252 views

What is the way to import an audience from one sandbox to another sandbox as I am getting an error message with the JSON structure as follows: [
  {
    "taskType": "POST",
    "taskStatus": "ERROR",
    "artifact": {
      "id": "f586d30d-56ca-4a4d-86be-794bf2e25dc8",
      "type": "PROFILE_SEGMENT",
      "found": false,
      "count": 0,
      "messages": [
        {
          "status": "FAIL_QUICKLY",
          "attempt": 1,
          "message": "com.adobe.aep.devex.rest.RestException: {\"requestId\":\"6fM00xDxom8eNpf8MLACKScEqHE1sMMh\",\"errors\":{\"400\":[{\"code\":\"200\",\"message\":\"Missing schema field: \\\"Retail_FirstName\\\". Fields in the schema are [BirthYear, CustomerAI, DOB, FirstName, Gender, LastName, customerSatisfactionScore, demoEnvironment, description, domainGroup, eyEmail, homeOfficeLocation, identification, identifiers, individualChara"
        }
      ]
    }
  }
] , how to fix this error or any suggestions on the successful way to do it will be helpful

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 arpan-garg

Hi @ribhuba - Happy to know this, in this case please mark it as correct answer 

1 reply

arpan-garg
Community Advisor
Community Advisor
January 29, 2024

Hi @ribhuba  - You can use sandbox tooling for doing the same. Please note that there are some limitations when you use sandbox tooling. The audience should be created by using Segmentation Service and not audience composition.

 

From the error you are facing, it seems that the schema on the environment which you are migrating the audience to does not have the fields which you have used to create the segment.

 

Can you please confirm that.

 

Thanks!

 

 

RibhuBaAuthor
Level 2
January 29, 2024

Hi @arpan-garg , double checked it and what you said was correct, there was columns missing in target sandbox.

So, for solving this we have to migrate the schema with the required columns that matches segment definition and then we migrate the segment.

arpan-garg
Community Advisor
arpan-gargCommunity AdvisorAccepted solution
Community Advisor
January 31, 2024

Hi @ribhuba - Happy to know this, in this case please mark it as correct answer