Kentico / xperience-by-kentico-kentico-migration-tool

A customizable tool that migrates older Kentico solutions to the latest version of Xperience by Kentico.
MIT License
7 stars 3 forks source link

Migration from K12 to XPbK 29.6.0 is causing error #279

Open stefanie27 opened 1 day ago

stefanie27 commented 1 day ago

Brief bug description

We recently migrated a K12 DB (v 12.0.101) to XPbK 29.3.3 and need to do the same for the live DB. We got latest version of the Migration Tool (1.9.0 for v29.6.0) and created a new Xperience project with updated code and database to v29.6.0. After we migrated the DB, we encountered multiple errors. When running the site following error appears "InvalidOperationException: No content type has been configured."

image

I then followed a forum entry to recreate the PageContentType classes via dotnet run --kxp-codegen --no-build --type "PageContentTypes" . I receive following error when doing that "An error occurred during the code file generating process. fail: Kentico.Web.Mvc.IStartupConfigureAction[0]  Startup action 'Kentico.Web.Mvc.CodeGenService'. System.ArgumentNullException: Value cannot be null. (Parameter 'json')"

image

ArjanvHugten commented 1 day ago

I had the same thing with the code generation command, in my case it seems to be related to the 'AllowedContentItemTypeIdentifiers' missing for the fields with the 'Kentico.Administration.ContentItemSelector' control.

tkrch commented 22 hours ago

Hi @stefanie27, a fix has been merged into master in past 9 hours (#280). Can You try if issue still persists with latest version from master branch?

stefanie27 commented 21 hours ago

Thanks @tkrch . I will check it out.