Hello Folks,
I have created whole chat application using embedded service deployment in Salesforce. My chat window will be in salesforce only to another app user. My application is working perfect in my dev org. While deployment from Dev to QA - I am totally stuck, getting
issue everywhere. I couldn't deploy embedded service deployment from one org to other - I tried with Git, workbench and Changeset everywhere it's failing with site is not found or can not be created error. Is there anyone who faced the same and able to solve?
Thanks,
Seema.
Hi Seema, this is expected. An Embedded Service Deployment always points to a Site endpoint, and Sites (Force.com
or Experience) do not migrate through change sets or the Metadata API, so in QA the deployment references a Site that does not exist, hence site not found or cannot be created.
Fix, in order:
1. In QA, create and ACTIVATE the Site first (Setup, Sites, or the Experience site if Dev uses one) so QA has its own site domain.
2. Re-add your CSP Trusted Sites and CORS allowlist entries for the host page domain, or the widget loads but stays blocked.
3. Then deploy the Embedded Service Deployment plus its supporting metadata (chat or messaging config, flows, fields) pointing at that QA Site.
4. Do not reuse the Dev code snippet on the page, it hard-codes Dev org URLs. Copy the fresh snippet Salesforce generates for the QA deployment.
The Site is org-specific, so it can never come across in the change set itself. You build and activate it in the target org first, then layer the deployment on top.
If this helps, please mark it as the Best Answer so it helps the next person, thanks 🙂