When deploying an Experience Site (formerly Community) bundle from a source org to a target org using Salesforce DevOps Center, the deployment fails with the following error:
"Your site needs a route with route type flow. Update your file and try again."
This error occurs because the Experience Site bundle in the deployment payload is missing a required default route file — in this example, a route of type "flow." Routes are metadata files that define the URL structure and page mapping within an Experience Site.
The required route file should be included automatically when the bundle is retrieved from Experience Builder or downloaded as metadata. However, the route file may be missing if:
Two options are available to resolve this deployment error. Option 1 is the recommended approach.
Option 1: Restore the Missing Route File (Recommended)
This option preserves all existing site customisations. You may need to repeat these steps if multiple route types are missing.
routes folder and locate the file with "routeType": "flow" (or whichever route type appears in the error message).appPageId value to match your original Experience Site (you can copy the appPageId from any other route file in your original bundle).views folder of the new site bundle, locate the file with the same name as the route file you just copied.appPageId to match your original Experience Site.Option 2: Switch and Reset the Experience Site Template (Destructive)
Warning: This approach resets all customizations made to the current Experience Site. Use only if Option 1 is not feasible and you are prepared to rebuild site content.
001920428

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.