Expand my Community achievements bar.

Create data element error with variable selection

Avatar

Level 9

I am following the documentation https://experienceleague.adobe.com/en/docs/platform-learn/implement-web-sdk/tags-configuration/creat... to create data element.
In the section Create Variable data elements for XDM and data objects when I select variable at step 4, I get error message
An error occurred.
Failed to load schema metadata. The resource was not found.
when I debugged it using chrome developer tools I found
http://ns.adobe.com/aep/errors/XDM-2012-404
A sandbox with the name undefined is not found. Error from Sandbox Management API: The sandbox was not found. 

I get the same issue when looked at the network call I see


https://platform.adobe.io/data/foundation/schemaregistry/tenant/schemas?property=meta:class==https%3...

 

{"type":"http://ns.adobe.com/aep/errors/XDM-2012-404","title":"Sandbox not found","status":404,"report":{"registryRequestId":"8147b086-1e1d-41be-8ddf-9975a3b27825","timestamp":"09-27-2024 11:41:32","detailed-message":"A sandbox with the name undefined is not found. Error from Sandbox Management API: The sandbox was not found. Refresh the page and try again.","sub-errors":[]},"detail":"A sandbox with the name undefined is not found. Error from Sandbox Management API: The sandbox was not found. Refresh the page and try again."}

I tried in incognito and different browsers, problem remains same in all browsers.

http://ns.adobe.com/aep/errors/XDM-2012-404 is something adobe internal url not accessible to public. Not sure what this means, if anyone experienced this pls let me know how to resolve this.

Attaching screenshot and video

 

 

3 Replies

Avatar

Employee

Hello @Mshaji 

 

When using the Adobe Web SDK within Adobe Launch/data collection there is a configuration which maps the Web SDK extension to a sandbox.  Please refer to this article.

 

https://experienceleague.adobe.com/en/docs/experience-platform/tags/extensions/client/web-sdk/web-sd...

 

Can you please confirm the sandbox(s) have been mapped into the Adobe Web SDK extension?

Avatar

Level 9

Its already configured and mapped, its only the problem with two data element type 

variable and xdm object rest of the data element works fine

 

Screen Shot 2024-09-27 at 10.34.56 PM.pngScreen Shot 2024-09-27 at 10.31.12 PM.png

Avatar

Level 9

Hi @brekrut ,

I compared xhr calls between dev and prod sandbox, I recorded their request and response, u can see the difference in call for x-sandbox-name

It seems that on dev x-sandbox-name is passed as undefined in request header. 
It says When making calls to Experience Platform APIs, a sandbox name must be supplied under the header x-sandbox-name
 
Why x-sandbox-name is not being passed  in dev sandbox? are there any settings to passing sandbox-name
 
Dev sandbox
 
XHRGET
[HTTP/1.1 404 Not Found 122ms]
 
GET /data/foundation/schemaregistry/tenant/schemas?property=meta%3Aclass%3D%3Dhttps%253A%252F%252Fns.adobe.com%252Fxdm%252Fcontext%252Fexperienceevent HTTP/1.1
Host: platform.adobe.io
 
x-api-key: Activation-DTM
x-gw-ims-org-id: xxxxxxxx@AdobeOrg
Authorization: Bearer xxxx
Content-Type: application/json
x-sandbox-name: undefined
 
 
{"type":"http://ns.adobe.com/aep/errors/XDM-2012-404","title":"Sandbox not found","status":404,
"report":{"registryRequestId":"541b994b-b07d-435c-9a88-998eebd55496","timestamp":"09-28-2024 11:57:18",
"detailed-message":"A sandbox with the name undefined is not found. Error from Sandbox Management API: The sandbox was not found. Refresh the page and try again.","sub-errors":[]},"detail":"A sandbox with the name undefined is not found. Error from Sandbox Management API: The sandbox was not found. Refresh the page and try again."}
 
 
Prod sandbox
 
 
GET /data/foundation/schemaregistry/tenant/schemas?property=meta%3Aclass%3D%3Dhttps%253A%252F%252Fns.adobe.com%252Fxdm%252Fcontext%252Fexperienceevent HTTP/1.1
Host: platform.adobe.io
 
x-api-key: Activation-DTM
x-gw-ims-org-id: xxxxxx@AdobeOrg
Authorization: Bearer xxxxx
Content-Type: application/json
x-sandbox-name: prod
 
XHRGET
[HTTP/1.1 200 OK 174ms]
 
{"results":[{"$id”:…...,"title":"WKND Demo Website AA Data Collection”},…..}