Skip to main content
7 votes
Accepted

How to solve JSS application error "Error: Valid value for rootItemId not provided and failed to auto-resolve app root item."

Both the dictionary service and the sitemap service need a root item ID. This root item ID must be configured in two files: <jss-app>\src\lib\dictionary-service-factory.ts <jss-app>\src\...
Serge van den Oever's user avatar
5 votes

XM Cloud content delivery in local machine without any Edge url or config change?

Sitecore Experience Edge is a cloud-based CDN, it's not something you run locally. In basic terms, it is a CDN which is used as a replacement for your CD instances and Web database. You can read more ...
Rob Earlam's user avatar
5 votes

Create custom RESTful API in XM Cloud

You have touched on an important aspect of XM Cloud that separates it from previous versions of Sitecore. XM Cloud is not the place to be serving custom APIs from, and not the place to be doing the ...
Marcel Gruber's user avatar
4 votes
Accepted

How do I use the Sitecore CLI with Sitecore Cloud to serialize content?

Add https://sitecore.myget.org/feed/xmcloud-preview/package/nuget/Sitecore.DevEx.Extensibility.XMCloud reference: dotnet sitecore plugin add -n Sitecore.DevEx.Extensibility.XMCloud Then you should be ...
Alexander's user avatar
  • 1,273
4 votes
Accepted

Sitecore XM Cloud local instance Experience Editor "The operation has timed out"

If you are getting slow performance on your Experience Editor locally, you are probably running out of resources in your docker container. By default, docker gives your container 1gb RAM and shares ...
Richard Seal's user avatar
  • 20.5k
4 votes
Accepted

Sitecore XM Cloud local setup error with Node.js

I got help from Sitecore Slack Headless group and as suggested I run npm ci command on the Front-end app root directory. That resolved my initial problem. Initially I did npm install instead of npm ci....
Koushik Mukherjee's user avatar
4 votes
Accepted

Differences between Sitecore XP and Sitecore XM Cloud

Sitecore Forms is not available in XM Cloud yet, but Sitecore are planning to provide a XM Cloud Forms by the end of 2023. Currently you would need to use an 3rd party form provider such a Jotforms or ...
Adam Seabridge's user avatar
4 votes

Error when running .net 8 application with XM Cloud in local docker containers (XM Cloud Introduction) - Error NETSDK1045

I first thought this might be related to an old windows version I was running on. So I updated it. But that did not help. So,inspecting the docker image using docker image inspect mcr.microsoft.com/...
Sebastian Winter's user avatar
4 votes
Accepted

XM Cloud with NPM workspaces on local Docker throws "Error: EPERM: operation not permitted, symlink"

Workaround 1 - use Windows Server 2022 for the host machine I managed to eventually find there is an open issue here for this problem. ... the problem exists only when running Windows Server image on ...
Mark Gibbons's user avatar
  • 5,642
3 votes

Getting the url of the reference fields using Graph QL

To get the URL of selected item in the multilist (reference filed) you can build up a query like below. Here I'm using the default jss site with running a local docker/graphql instance. query ...
Sumit Helaiya's user avatar
3 votes

How to obtain GraphQL access token on local XM Cloud

Couple of things here, There are two types of API 1) Preview API - Which what you are referring to which has a URL https://xmcloudcm.localhost/sitecore/api/authoring/graphql/ide for this to work, you ...
Daivagna Nanavati's user avatar
3 votes
Accepted

XM Cloud component with dynamic placeholder

This is a known bug in JSS 21 and has been fixed in JSS 21.0.5. The bug was that all dynamic placeholder keys must be called container-{*} - this was hard coded into the PlaceholderCommon.tsx file in ...
Richard Seal's user avatar
  • 20.5k
3 votes
Accepted

PowerShell Elevate Session State on XM Cloud

As a Solution to be able to run Sitecore PowerShell Script, e.t.c. Is change the elevationAction in the config to Allow or Confirm, then you don't need to enter a password. Set the elevationAction can ...
Jan Bluemink's user avatar
  • 1,185
3 votes
Accepted

NodeJs Container Build in Xmcloud Foundation head

This issue is due to firewall settings and network policy settings on your development machine. Couple of things to try: Ensure that the Use Docker Compose V2 option is not checked and Use the WSL 2 ...
Raman Gupta's user avatar
  • 2,609
3 votes

PowerShell Elevate Session State on XM Cloud

The way to do this for local instances is: Add SITECORE_SPE_ELEVATION: "Allow" to your docker-compose.override.yml file: services: cm: environment: SITECORE_SPE_ELEVATION: &...
Marcel Gruber's user avatar
3 votes
Accepted

Is it possible to give a different hostname than xmcloudcm.localhost to the xmcloud docker container?

The short answer is no. It is not possible to change the default url of xmcloudcm.localhost - this is a restriction as you expected, that the url must be whitelisted for the auth0 redirects. Because ...
Richard Seal's user avatar
  • 20.5k
3 votes
Accepted

How to get data from an API using XM Cloud

you can start with the Sitecore documentation about XM Cloud development at https://doc.sitecore.com/xmc/en/developers/xm-cloud/index-en.html There is a section for Sitecore ASP.NET Rendering SDK API, ...
Freddy Rueda's user avatar
3 votes

How to get data from an API using XM Cloud

With xmCloud and Experience edge you need to use graphql to retrieve the published results from the Experience Edge. If you have a large inventory, you may want also to consider using Sitecore search. ...
Ghodrat Ashournia's user avatar
3 votes
Accepted

XM Cloud component organization location

The component folder in your Next.js app can be structured as you like. You should create folders in there to logically group your components. For example, you can put the OOTB components into a ...
Richard Seal's user avatar
  • 20.5k
3 votes
Accepted

Sitecore Serilization Roles Doesn't Get Created on XM Cloud Environments

This is because of the default way that XM Cloud deploys the serialization. The SCS files are used to generate an Item as Resources(IAR) file and that is layered into the XM Cloud instance. Roles ...
Richard Seal's user avatar
  • 20.5k
3 votes

Adding New Custom Insert Options

Yes, there is an Integration Point for SPE to add custom scripts to the Insert Options menu. You can read more about it in the official docs here.
Michael West's user avatar
  • 18.2k
3 votes

Delete permission for authors to delete items they have created themselves but no other items

this functionality doesn't exist without code customization in Sitecore XMC or Sitecore normal. You can have such a functionality just if a specific user has rights to create/delete items just under a ...
Vlad Iobagiu's user avatar
  • 18.6k
3 votes

Is there an option to enable custom error details in the Sitecore Experience Editor (XM Cloud)?

To enable custom error details in the Sitecore XM Cloud, you can utilize XDT transformation for the web.config file. In XM Cloud, XDT transforms are supported by specifying the fully qualified paths ...
Raman Gupta's user avatar
  • 2,609
3 votes

Source query For General Link Field Type

You can use a query like this to get the children Items of a specific type(You can change the query according to your need). Additionally provide a help text for the Content Authors to use internal ...
Debtanu Biswas's user avatar
3 votes

Sitecore XMC latest metadata.js script doesn't support monorepo?

I have a support ticket open, but the two changes I needed to make to the OOTB Sitecore app solution were as follows: Looking at the new getMetaData() call, you can locate the file itself here: https:...
Dave Goosem's user avatar
2 votes

XM Cloud locally with docker compose gives: unable to verify the first certificate

Ah blizz! I shouldn't set the environment variable NODE_TLS_REJECT_UNAUTHORIZED to 0 on the XM Cloud CM server (in the Docker container), but on my dev machine where I run jss start:connected. Now it ...
Serge van den Oever's user avatar
2 votes
Accepted

Does Sitecore XM Cloud support custom code e.g. scheduled tasks, computed index fields

There is a great article created by Martin, where he shared something about the customization and the way we can deploy it to XM Cloud. According to the article, it is possible to customize XM Cloud ...
Sumit Bhatia's user avatar
  • 5,105
2 votes
Accepted

Applying patch config files to a local XM Cloud Docker environment

To patch you config file you can prepare folder structure as \App_Config\Include\z.Services.GraphQL\z.Sitecore.Services.GraphQL.EdgeContent.config. As mentioned in read me it is XP0 container topology ...
Sumit Helaiya's user avatar
2 votes

How to obtain GraphQL access token on local XM Cloud

Do let me know if you are still facing issues, it seems there are changes you will need to do if you want to use authoring APIs First of all the browser should have the following URL https://<<...
Daivagna Nanavati's user avatar
2 votes

ERROR: Setting up your full-stack XM Cloud local development environment

Apart from the resolution provided my others you may also try listing the network used- docker network ls And prune- docker network prune Fo me this resolved the issue and was able to porceed.
Sandeep Pote's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible