Loading

Error Message: Your site needs a route with route type <missing route type>. Update your file and try again. when deploying using DevOps Center

Fecha de publicación: Feb 19, 2026
Descripción

When trying to deploy from a source org to a target org using DevOps Center following error occurs:

Error Message: Your site needs a route with route type flow. Update your file and try again.

Solución

The cause for this issue is that the template requires an out of the box route called flow. But it is missing in the payload, which causing the issue. These routes should be included by default from the template used for the site or if you added the components in builder then downloaded the bundle. But if you modify the  metadata from the bundle directly and don't include the appropriate route or you accidently deleted it you will get the error. 

 

There are 2 options to fix issue.

  1. First one is the recommended approach which can involve multiple repeats of the steps below.
    1. Create a new site with the same template and components as the affected site
    2. Retrieve the experience bundle for the new site
    3. In the routes folder find the file with a "routeType" : <route type from error>
    4. Copy that file, change the appPageId to match your original experience site (copy from another route in your original bundle.
    5. In the views folder find the file with the same name as the file from the routes folder.
    6. Copy that file, change the appPageId to match your original experience site (copy from another route in your original bundle).
    7. Put both files in your current sites bundle in the appropriate folders and redeploy.
    8. If you experience any more route errors repeat the above steps for the new route errors 
  2. Switch the experience site's template. This approach will wipe out all the changes made in the current site.
    1. All Sites --> Workspaces --> Administration --> Settings --> Change Template
    2. Change it to Anything other than it's current template
    3. Now Go to Builder Publish the site
    4. Now change the template back to the original template
    5. It should create a new site with all the OOTB routes.
Número del artículo de conocimiento

001920428

 
Cargando
Salesforce Help | Article