I am in the process of upgrading a DXA 1.8 CM to DXA 2.0. I have ensured that my Page Template is using the new DXA 2.0 Generate DXA R2 Page Model TBB. I am getting errors when publishing/previewing as follows:
(80040200) An error occurred while rendering Page 'Home' (tcm:56-1409-64) No items found for WebDAV URL(s): /webdav/MyPub/Home/_System/include/header.tpg.
I dont have an include page with title header in my implementation (it contains a module name prefix - mymodule:Header to enable the correct views to be used in the web application), so I am not sure where this is coming from? ... and why is it bothering with Includes when publishing the page anyway - the whole point of these is that they are separate from page publishing.
Edit - I think I have found the culprit: https://github.com/sdl/dxa-content-management/blob/25873210b246ab397dfc8efd0b63f30e1c5243f1/Sdl.Web.Tridion.Templates.R2/Data/DefaultModelBuilder.cs#L301 It seems that DXA 2.0 assumes that your include page title matches the URL. It also assumes all includes are in /system/include. This could cause problems for implementations where includes are in different places (for example to enable that different types of users can/cannot edit them).