Expand my Community achievements bar.

SOLVED

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

 

 

1 Accepted Solution

Avatar

Correct answer by
Level 9

Yes that is correct, however it doesn't resolve the issue. This seems to be a product bug, not sure if there is any workaround

 

Here is the response from adobe engineer

We've added those sandboxes. That's why I think it's an actual product bug (or they intentionally require admin permissions for some reason). As an admin, I can access the dropdown but it seems like anyone with access to those sandboxes should be able access them as well.

 

Pasted image.png

 

 

We've added those sandboxes. That's why I think it's an actual product bug (or they intentionally require admin permissions for some reason). As an admin, I can access the dropdown but it seems like anyone with access to those sandboxes should be able access them as well.

 

View solution in original post

5 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”},…..}

Avatar

Administrator

@Mshaji Did you find the suggestion helpful? Please let us know if you require more information. Otherwise, please mark the answer as correct for posterity. If you've discovered a solution yourself, we would appreciate it if you could share it with the community. Thank you!



Kautuk Sahni

Avatar

Correct answer by
Level 9

Yes that is correct, however it doesn't resolve the issue. This seems to be a product bug, not sure if there is any workaround

 

Here is the response from adobe engineer

We've added those sandboxes. That's why I think it's an actual product bug (or they intentionally require admin permissions for some reason). As an admin, I can access the dropdown but it seems like anyone with access to those sandboxes should be able access them as well.

 

Pasted image.png

 

 

We've added those sandboxes. That's why I think it's an actual product bug (or they intentionally require admin permissions for some reason). As an admin, I can access the dropdown but it seems like anyone with access to those sandboxes should be able access them as well.