-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ContentItemContentFolderID is NULL for Content Items migrated with a custom mapping class #321
Comments
Thank you for highlighting this request. We will review it internally and keep you informed of any developments. |
Hello, I will keep you informed. |
Thank you, @akfakmot ! |
@bluemodus-mwills @twozero6
example: |
@twozero6 Regarding the existing rows with ContentItemContentFolderID=NULL, please set them to a non-NULL value by the following query or alike. -- set everything to root folder Newest Migration Tool version doesn't produce new instances of this problem. Even with custom classmappings, the folder ID is set to root if not specified. |
@akfakmot -- I like that simple |
@akfakmot this is perfect, thank you! |
@akfakmot just confirming I will test this next week but the solution seems great. |
@akfakmot @Sapphirress I confirmed this is no longer an issue. The director approach will also work for sorting the items on a re-run. However, I was wondering about creating folders during the initial migration -- right now, everything except for media goes into the root folder. Is it an option to have each type go into its own folder by default? Would that be considered a separate Enhancement request? |
After migrating a K13 database to XbyK 29.7.0, I tried to upgrade the DB to 30.0.0 and the SQL upgrade failed due to:
The ALTER TABLE statement conflicted with the CHECK constraint "CHECK_CMS_ContentItem_ContentItemIsReusable_ContentItemContentFolderID". The conflict occurred in database "redacted-xbyk-project", table "dbo.CMS_ContentItem".
When running the following query, all content items that were migrated through a custom mapping class are returned:
SELECT * FROM CMS_ContentItem WHERE ContentItemIsReusable = 1 and ContentItemContentFolderID IS NULL
In addition to setting the FolderID value during a migration, please give us an option to Set\Create a folder for each item as a part of the ClassMapping class.
The text was updated successfully, but these errors were encountered: