No template exists to render the document at URL

Hi,

I have upgraded an Umbraco 8 site to the latest version 13. We recently moved it from a self-hosted machine to Azure so the client could test it.

We are experiencing an issue where pages need to be republished in order to be to work. Initially, we thought this was a one-time issue—just republish all pages, and it would be fine. However, the problem keeps recurring.

The error message we are seeing is:
“No template exists to render the document at URL”

Has anyone experienced this before, or does anyone have an idea of what might be causing this?

Thanks in advance!

Im getting two errors on the same page.

i just got this

After i rebuild examine and rebuild the cache.

If you take a page that doesn’t work (error: “No template exists to render the document at URL”) and make a tiny change, then publish it, does it then work?

1 Like

Yes then it works.
We dont need to make a change, we just need to do a publish again

You’ll benefit from this feature coming in 13.8 then:

What happens when you do a publish all + descendants is that (for performance reasons) only the descendants that have unpublished changes get published.

But it seems that… something didn’t get rebuilt properly after your upgrade, be it the cache, or the indexes. I would suspect rebuilding all of NuCache plus rebuilding indexes might do the trick.

If not, and you can’t wait for 13.8 (April 10) then it would be some custom code you need to write to “hard-publish” each node.

1 Like

Looking forward to 13.8, awesome feature :smiley:

Unfortunally, we need to do something we need this ready for tomorrow :sweat_smile:

We tried writing some code to do the hard-publish. But we ended up do it manually yesterday. But today some of the pages have the error again :scream:

So i think we have some configuration missing or something like that.
We have followed the documentation
https://docs.umbraco.com/umbraco-cms/fundamentals/setup/server-setup/azure-web-apps

Yikes. I assume it errored out again after pushing a new version? No idea what could be going on, umbraco logs and/or server logs might give more clues.

Some vaguely relevant things I could find as well (but they’re mostly pretty old):

1 Like

@sebastiaan I think the last one is related to our issue. We are also using production mode

But we have tried to change production mode
Right now we are trying to remove usync migrations. We dont need it anymore and maybe its causing something .

Just a little disclaimer, im new to this specific project :sweat_smile:

Try those two different deployments out one at a time then to see which one makes the difference. Wonder what could be causing this if production mode is the problem.

I think production mode seems to be the most plausible reason due to other people experience it.
is there any way i can answer on the old ticket? It doesnt seem like the two people on the old ticket is on the forum

Only way right now is to continue the discussion and add a comment on the new post on this forum, they will get notified. I can merge the topics when you do so!

1 Like

Greetings,

I have tried to follow the following instructions:

As soon as I set “Development” or “Production” as the mode, I only get the error message:

Page not found. No template exists to render the document at URL '/'.

And in the console:

No physical template file was found for document type with alias website

What I have done so far.
In appsettings.json I set the mode to Development and ModelsMode to “SourceCodeAuto”.

I have removed the following settings from the .csproj:

<RazorCompileOnBuild>false</RazorCompileOnBuild>
<RazorCompileOnPublish>false</RazorCompileOnPublish>

And the .csproj also contains “CopyRazorGenerateFilesToPublishDirectory”, set to true.

I have published the website and also built it as a release build. But I still get the same errors. What am I doing wrong? Am I missing something?

My current appsettings.json file:

{
  "$schema": "appsettings-schema.json",
  "Serilog": {
    "MinimumLevel": {
      "Default": "Information",
      "Override": {
        "Microsoft": "Warning",
        "Microsoft.Hosting.Lifetime": "Information",
        "System": "Warning"
      }
    }
  },
  "Umbraco": {
    "CMS": {
      "ModelsBuilder": {
        "ModelsMode": "SourceCodeAuto",
        "FlagOutOfDateModels": true
      },
      "Runtime": {
        "Mode": "Development"
      },
      "Global": {
        "Id": "6accd714-46f7-4370-9c2b-a7d81a9087b6",
        "SanitizeTinyMce": true,
        "UseHttps": false
      },
      "Content": {
        "AllowEditInvariantFromNonDefault": true,
        "ContentVersionCleanupPolicy": {
          "EnableCleanup": true
        }
      },
      "Unattended": {
        "UpgradeUnattended": true
      },
      "Security": {
        "AllowConcurrentLogins": false
      },
      "WebRouting": {
        "UrlProviderMode": "Absolute"
      }
    }
  },
  "ConnectionStrings": {
    "umbracoDbDSN": "Data Source=|DataDirectory|/Umbraco.sqlite.db;Cache=Shared;Foreign Keys=True;Pooling=True",
    "umbracoDbDSN_ProviderName": "Microsoft.Data.Sqlite"
  }
}

This is a companion discussion topic for the original entry at https://our.umbraco.com/forum/113522-v13-production-and-development-mode-page-not-found-physical-template-missing

Did you find out if production mode was the reason for this ?
or another solution ?