powerplatform-build-tools icon indicating copy to clipboard operation
powerplatform-build-tools copied to clipboard

Power Pages data model migration issue with non-English sites

Open gjerm opened this issue 4 months ago • 0 comments

After running the command to migrate the data model for our Power Pages site: pac powerpages migrate-datamodel --webSiteId <siteId> –-mode all

I checked the migration status with pac powerpages migrate-datamodel --webSiteId <siteId> --checkMigrationStatus, and saw that it was set to "Fullført", the Norwegian word for Completed. So I ran the migration:

pac powerpages migrate-datamodel --webSiteId <siteId> --updateDatamodelVersion --portalId <portalId>

And just got the response about the current migration status, without the actual migration being run. Since I had successfully done this on another Power Pages site that was in English, I noticed that there the status was listed as "Completed" and it worked as it should. In the Norwegian environment, I went to the table adx_websitemigrationtracker and edited the Choice column adx_migrationstatus so that the label for the completed status read "Completed" rather than "Fullført". After doing this, I ran the final migration step again and the data model migration finished successfully.

It seems like there is a bug where the migration status gets checked against the English word "Completed" rather than being language agnostic as was expected.

gjerm avatar Apr 18 '24 10:04 gjerm