Kentico CI store fails on finding content item asset in Azure Storage

2025/09/30 9:41 AM

Doing a Kentico CI store with content item assets in Azure Storage seems to fail. The following error occurs:

[ERR] KenticoCiStore: Message: Serialization of object type "Content item data Legacy media file" (contentitemdata.legacy.mediafile) failed for object "54745082-74da-4059-8fc4-8fe836c786e3" (ContentItemDataID: 374). See inner exception for further details.
[ERR] KenticoCiStore: Exception type: CMS.ContinuousIntegration.ObjectTypeSerializationException
[ERR] KenticoCiStore: Stack trace:
[ERR] KenticoCiStore: at CMS.ContinuousIntegration.Internal.FileSystemStoreAllJob.StoreSingleObjectTypeObject(FileSystemStoreJob storeJob, ObjectTypeInfo typeInfo, BaseInfo info, Int32 counter, Int32 total)
[ERR] KenticoCiStore: at CMS.ContinuousIntegration.Internal.FileSystemStoreAllJob.StoreAllObjectTypeObjects(String objectType, Int32 counter, Int32 total)
[ERR] KenticoCiStore: at CMS.ContinuousIntegration.Internal.AbstractFileSystemJob.CancellableForEach[T](IEnumerable1 collection, Action2 action, CancellationToken cancellationToken)
[ERR] KenticoCiStore: at CMS.ContinuousIntegration.Internal.FileSystemStoreAllJob.StoreObjects()
[ERR] KenticoCiStore: at CMS.ContinuousIntegration.Internal.FileSystemStoreAllJob.RunInternal(CancellationToken cancellationToken)
[ERR] KenticoCiStore: at CMS.ContinuousIntegration.Internal.AbstractFileSystemAllJob.Run(Nullable`1 cancellationToken)
[ERR] KenticoCiStore: Message: Serialization of the object CMS.ContentEngine.Internal.ContentItemDataInfo (contentitemdata.legacy.mediafile) - 54745082-74da-4059-8fc4-8fe836c786e3 has failed.
[ERR] KenticoCiStore: Exception type: CMS.ContinuousIntegration.ObjectSerializationException
[ERR] KenticoCiStore: Stack trace:
[ERR] KenticoCiStore: at CMS.ContinuousIntegration.Internal.AbstractSingleObjectJob.Run(BaseInfo baseInfo)
[ERR] KenticoCiStore: at CMS.ContinuousIntegration.Internal.FileSystemStoreAllJob.StoreSingleObjectTypeObject(FileSystemStoreJob storeJob, ObjectTypeInfo typeInfo, BaseInfo info, Int32 counter, Int32 total)
[ERR] KenticoCiStore: Message: Path 'assets\contentitems\00\00ddedec-210c-4948-8d44-9ba63b88402c\dfc3d011-8f63-43f6-9ed8-4b444333a1d0\1dc33986-af33-585d-ac61-80d2d3b55210.JPG' does not exist.
[ERR] KenticoCiStore: Exception type: System.IO.FileNotFoundException
[ERR] KenticoCiStore: Stack trace:
[ERR] KenticoCiStore: at Kentico.Xperience.AzureStorage.File.ThrowOnNonexistentFile(String path)
[ERR] KenticoCiStore: at Kentico.Xperience.AzureStorage.File.OpenRead(String path)
[ERR] KenticoCiStore: at CMS.ContentEngine.ContentItemAssetsProcessor.StoreFiles(ContentItemDataInfo contentItemData, RepositoryPathHelper repositoryPathHelper, IFileSystemWriter writer)
[ERR] KenticoCiStore: at CMS.ContentEngine.ContentItemDataFileStoreJob.RunInternal(BaseInfo baseInfo)
[ERR] KenticoCiStore: at CMS.ContinuousIntegration.Internal.AbstractSingleObjectJob.Run(BaseInfo baseInfo)
[ERR] KenticoCiStore: Target KenticoCiStore has thrown an exception

This happens while the file and the path does exist in Azure Storage, the file also works in the CMS (it can be downloaded as well). When I use the files on the file system it does work with the same path.

Has anyone else been successful in doing a Kentico CI store or restore with the files being in an Azure Storage environment?


Environment

  • Xperience by Kentico version: 30.8.2

  • .NET version: 9

  • Execution environment: Locally

Answers

To response this discussion, you have to login first.