when importing asset of a product with bulk import endpoint exception gets thrown that says 'Content with id xyz was not found'
with the stack trace:
at EPiServer.Core.Internal.DefaultContentLoader.Get[T](ContentReference contentLink, LoaderOptions loaderOptions)\r\n at EPiServer.Core.Internal.DefaultContentLoader.Get[T](Guid contentGuid, LoaderOptions loaderOptions)\r\n at EPiServer.Core.Internal.DefaultContentLoader.Get[T](Guid contentGuid)\r\n at EPiServer.Core.Internal.DefaultContentRepository.Get[T](Guid contentGuid)\r\n at EPiServer.ServiceApi.MediaImportImplementation.ImportProcessor.GetWriteable[TMediaData](String integrationId, String providerName, ContentReference mediaItemFolder, ContentReference mediaTypeFolder)\r\n at EPiServer.ServiceApi.MediaImportImplementation.ImportProcessor.ProcessMediaContent[TMediaData](RuntimeMediaType mediaType, Media media, ContentReference& reference)\r\n at EPiServer.ServiceApi.MediaImportImplementation.ImportProcessor.ProcessMedia[TMediaData](RuntimeMediaType mediaType, Media media)\r\n at EPiServer.ServiceApi.MediaImportImplementation.ImportProcessor.ProcessMedia(IXmlContent mediaContent)\r\n at EPiServer.ServiceApi.Jobs.MediaImportJob.ProcessXml(XmlSchema schema, IStreamSource streams, IMediaImporter processor)\r\n at EPiServer.ServiceApi.Jobs.MediaImportJob.ExecuteJob(Guid jobId)
This happens in DXC and I have no means to dig into DB.
Importing file is a zip file with an image and a xml file that holds references to the right product and its variation. Code used for both product and its variation is in form of GUID and that is why it puzzels me so much. Why id xyz in the exception instead of GUID?
Importing works for 99.99% of products but for less than 10 this exception gets into way.
Could it be that some dirty data was not removed when the catalog was deleted in some of the previous iterrations?