You are here:
Omnistudio Document Generation Troubleshooting Reference
Use this table to identify common issues with Omnistudio Document Generation, what they mean, and how to fix them.

Verwenden Sie allgemeinere Suchbegriffe.
Wählen Sie weniger Filter aus, um Ihre Suche auszuweiten.
You are here:
Use this table to identify common issues with Omnistudio Document Generation, what they mean, and how to fix them.
| Available in: Lightning Experience |
| Available in: Professional, Enterprise, Unlimited, and Developer Editions |
| Issue | What It Means | How to Fix It |
|---|---|---|
| We couldn't generate the document. <recordId> + Invalid XML pseudo-attribute 'version' value ' | An RTB_ token in the .docx template is wrapped inside a text box, which generates invalid XML and prevents the document from being created. | Open the .docx template in Microsoft Word, locate the RTB_ tokens, remove any surrounding text boxes, and place the token directly in the document body. Save and try again. If the issue persists, contact Salesforce support. |
| We couldn't generate the document. Could not generate document: Scope parser execution failed. Try again or ask your Salesforce admin for help. | The tokenData passed to DocGen contains a null value within a nested array or object. DocGen can’t process null values in nested token data structures. The issue isn’t caused by JSON payload size. This error can occur even if document generation previously worked. | Inspect the tokenData passed to the document generation call, identify any null values in nested arrays or objects, and remove or replace them with empty string before trying again. If the issue persists, contact Salesforce support. |
| Access to XMLHttpRequest at 'https://<orgname>--omnistudio.sandbox.vf.force.com/resource/<resourceId>/omnistudio__vlocity_core_assets/latest/vlocity_core_assets.js' from origin 'https://<orgname>.sandbox.lightning.force.com/' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. | The Omnistudio sandbox Visualforce page origin isn’t listed in the org's CORS allowlist, blocking the browser from completing the request. | In Salesforce Setup, open CORS, click New, and add the blocked origin URL. For example, https://<orgname>--omnistudio.sandbox.vf.force.com). Save and perform a hard browser refresh 3–4 times. If the issue persists, contact Salesforce support. |

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.