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
8 stars 5 forks source link

Legacy media file CI store error #301

Open karthik-akqa opened 4 days ago

karthik-akqa commented 4 days ago

From: Kentico Support support@kentico.com Sent: 15 November 2024 10:48 PM To: Karthik Raja Karthik.Raja@akqa.com Cc: Adithya Sivanandan adithya.sivanandan@akqa.com; Gitesh Shah Gitesh.Shah@akqa.com; Luke Ballantine Luke.Ballantine@akqa.com Subject: Re: Xperience by Kentico Ugra - Legacy media file CI store error Ticket:0087008874

[External Email]

Karthik, Yes, I would recommend removing those characters as they shouldn't be there in the file name. Were they present in the source database? If they weren't there and somehow added to the file name after migration, I would suggest creating a GitHub issue for this so our developers can take a look at it and fix any potential migration problems! Best regards, Eric Dugre Senior Support Specialist

Please rate my answer if you found it useful!

Kentico

------------------- Original Message -------------------

Hi Eric,

Thanks for the reply. Yes, I used the same tool.

Below is the Asset column value for this particular media item in the Legacy_MediaFile table:

{"Identifier":"48e7e5de-cc2d-5bee-8a42-196f37494e9d","Name":"1-Day-Conference-Famil-1\.jpg","Extension":".jpg","Size":17976,"LastModified":"2024-10-01T04:49:05.7672714Z"}

But the Name value is available here, so I removed “\” at the end of the name for this item and tried executing the command again and it showed error message for the next Legacy Media File item as below:

image

Then I removed “\” for all the items and executed the command, it successfully completed this time. Is removing “\” from the name fine? Will it have any other impacts?

Thanks, Karthik

From: Kentico Support [support@kentico.com](mailto:support@kentico.com) Sent: 15 November 2024 01:16 AM To: Karthik Raja [Karthik.Raja@akqa.com](mailto:Karthik.Raja@akqa.com) Cc: Adithya Sivanandan [adithya.sivanandan@akqa.com](mailto:adithya.sivanandan@akqa.com); Gitesh Shah [Gitesh.Shah@akqa.com](mailto:Gitesh.Shah@akqa.com); Luke Ballantine [Luke.Ballantine@akqa.com](mailto:Luke.Ballantine@akqa.com) Subject: Re: Xperience by Kentico Ugra - Legacy media file CI store error Ticket:0087008874

[External Email]

Hello Karthik, Thank you for contacting us! To confirm, you used this tool correct? I believe this is an issue with the asset metadata stored in the content item's field- this is the JSON that contains data such as the name and ID of the asset. A typical record looks like this: {"Identifier":"24b97f7b-32c9-47ce-8c63-cfbb0831db40","Name":"library.png","Extension":".png","Size":254776,"LastModified":"2024-11-14T19:31:20.4447407Z"} Based on what I see in the source code, "groupName" is related to the Name property in the above JSON. Perhaps in your case it is missing or invalid- can you please check the JSON for the object mentioned in the error? You can find the JSON in the Legacy_MediaFile table of your database, in the Asset column. Best regards, Eric Dugre Senior Support Specialist

Please rate my answer if you found it useful!

Kentico

------------------- Original Message -------------------

Hi,

We are running a site (rotoruanz.com) on Kentico version 12.0.88.

We have done the data migration from Kentico 12 to Xperience by Kentico using migration toolkit and all the old attachments have been converted into Legacy media file content hub content items. Currently we are trying to do CI Store operation using “dotnet run --kxp-ci-restore” command, but it is throwing below error. What does this error mean? What is groupName here? Can you please help us fixing this?

image

Thanks, Karthik

tkrch commented 3 days ago

Hi @karthik-akqa, this issue was fixed with #282. Fix was merged "Oct 31, 2024, 4:59 PM GMT+1" - was project migrated before this date? Can You try with latest version?