AEP Data stream target mapping for device, environment, web from xdm object not working | Community
Skip to main content
ShaileshBassi
Community Advisor
Community Advisor
May 8, 2026
Question

AEP Data stream target mapping for device, environment, web from xdm object not working

  • May 8, 2026
  • 2 replies
  • 26 views

I have the below network request 

{
"events": [
{
"xdm": {
"eventType": "web.webpagedetails.pageViews",
"web": {
"webPageDetails": {
"URL": "https://www.xyz.com"
},
"webReferrer": {
"URL": "https://www.xyz.com"
}
},
"device": {
"screenHeight": 800,
"screenWidth": 1280,
"screenOrientation": "landscape"
},
"environment": {
"type": "browser",
"browserDetails": {
"viewportWidth": 1265,
"viewportHeight": 150
}
},
"placeContext": {
"localTimezoneOffset": -330,
"localTime": "2026-05-08T09:54:09.711+05:30",
"ianaTimezone": "Asia/Calcutta"
},
"timestamp": "2026-05-08T04:24:09.714Z",
"implementationDetails": {
"name": "https://ns.adobe.com/experience/alloy/reactor",
"version": "__VERSION__+2.34.2",
"environment": "browser"
},
"_myprojectname": {
"testobject": {
"webPageDetails": {
"title": "test page",
"referralSource": "abc"
}
}
}
},
"query": {
"personalization": {
"schemas": [
"https://ns.adobe.com/personalization/default-content-item",
"https://ns.adobe.com/personalization/html-content-item",
"https://ns.adobe.com/personalization/json-content-item",
"https://ns.adobe.com/personalization/redirect-item",
"https://ns.adobe.com/personalization/ruleset-item",
"https://ns.adobe.com/personalization/message/in-app",
"https://ns.adobe.com/personalization/message/content-card",
"https://ns.adobe.com/personalization/dom-action"
],
"decisionScopes": [
"__view__"
],
"surfaces": [
"web://xyz.com/webApp/test"
]
}
}
}
],
"query": {
"identity": {
"fetch": [
"ECID",
"CORE"
]
}
},
"meta": {
"queueTimeMillis": 6,
"state": {
"domain": "adobe.com",
"cookiesEnabled": true,
"entries": [
{
"key": "kndctr_1A6727E2_AdobeOrg_identity",
"value": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=="
}
]
}
}
}

For this I have created the schema where the entire webPageDetails fall under “testobject”.

And post that I have done the target mapping 

events[*].xdm.web.webPageDetails.URL   → _myprojectname.testobject.webPageDetails.URL  

But with above the field does not get populated but if I change to the below it starts working as expected.

events[*].xdm.web.webPageDetails.URL   → web.webPageDetails.URL  

 

Any pointers will be helpful.

 

Thanks

 

2 replies

Level 2
May 8, 2026

Hi Sailesh,
Hope you are doing fine :)
It looks like you have mapped custom field group in your event scheme(i may be wrong here), if you have included the default web object of AEP , the path of the object will lie outside your tenant object .

  • Standard Fields: When you use Adobe’s out-of-the-box field groups, the path starts at the root  It bypasses your _myprojectname namespace entirely. And this is the reason your second mapping works as it satisfies this.
  • Custom Fields: Your first mapping _myprojectname.testobject… would only work if you had manually defined webPageDetails as a sub-object within your own custom field group.

You can check the path of the object in your schema.
Hope this help.

Thanks,
Rituraj

Level 2
May 8, 2026

While it’s always recommended to use Adobe’s out-of-the-box standard fields wherever possible, in your case a custom structure can still work—as long as it exactly matches the structure and data types of all fields under webPageDetails.