Error during import: A record failed to import for aliasmainImage
Hi,
today we bought, installed and configured your package (Pro version)...but when we run the import, after some minutes (and some document processed), we receive this error message: "Error during import, check the logfile for details"
In the LOG File I found these details:
2016-12-19 05:31:10,171 [P6692/D35/T140] ERROR CMSImportLibrary.Providers.ImportProviders.Content.ContentImportProvider - CMSImport:A record failed to import for aliasmainImage
System.ArgumentException: Illegal characters in path.
at System.IO.Path.CheckInvalidPathChars(String path, Boolean checkAdditional)
at System.Security.Permissions.FileIOPermission.AddPathList(FileIOPermissionAccess access, AccessControlActions control, String[] pathListOrig, Boolean checkForDuplicates, Boolean needFullPath, Boolean copyPathList)
at System.Security.Permissions.FileIOPermission.AddPathList(FileIOPermissionAccess access, String[] pathListOrig, Boolean checkForDuplicates, Boolean needFullPath, Boolean copyPathList)
at System.Security.Permissions.FileIOPermission..ctor(FileIOPermissionAccess access, String path)
at System.Web.HttpRequest.MapPath(VirtualPath virtualPath, VirtualPath baseVirtualDir, Boolean allowCrossAppMapping)
at System.Web.HttpServerUtility.MapPath(String path)
at CMSImportLibrary.Helpers.MediaImportHelper.ImportMedia(Object value, AdvancedSettingFieldOptions advancedFieldOptions, Int32 mediaParentLocation, Boolean allowFolderImport, IMediaResolver mediaResolver)
at CMSImportLibrary.AdvancedSettingControls.Data.MediaPickerSettingsData.Parse(Object value, AdvancedSettingFieldOptions fieldOptions, PropertyInfo propertyInfo)
at CMSImportLibrary.Import.AdvancedSettingsParser.Parse(Object value, PropertyInfo propertyInfo, AdvancedSettingFieldOptions fieldOptions, Dictionary`2 advancedSettings)
at CMSImportLibrary.Providers.ImportProviders.Content.ContentImportProvider.(ImportActions , IContent , Dictionary`2 , AdvancedSettingFieldOptions , PropertyInfo , Object , ImportState , Boolean& )
at CMSImportLibrary.Providers.ImportProviders.Content.ContentImportProvider.(ImportState , Int32 , ImportStatistics , String )
If I try to import all articles without images (there are only two fields for images), the import finish without errors.
I also tried to do the import in two steps:
1 ) before...all the articles with autopublish but without images (and all is done without errors)
2 ) after...all the articles with images with update option selected (we received the same error message)
Ok it is a permission error...but how can I resolve it?
The goal is to to import all articles stored in the old Umbraco 4.7.1.1 website to the new Umbraco 7.5 website
I try to explain what I've done:
I created a media archive folder in the root of the new website.
I assigned Full control to Network Service and IIS_IUSRS accounts to all website root folder and discendents (for new and old website)
I also tried to add the new media archive folder to web.config as Reseserved Path...but nothing.
I configured your CMS Import (see screenshots)
When I start the process, after a few time, I receive the error.
But if I try to start the process excluding from mapping the mainImage, all articles are imported correctly without any error (and without images...obviously)
Where do you think I wrong?
I look forward to your reply and sorry for the long post.
Adriano
This are some configuration screenshot of the configuration:
The Umbraco "Media" folder and my new "Media_Archivio" folder are in the root folder at the same level and have the same permissions.
The user "Network Service" and "IIS_IUSRS" have FULL CONTROL in all folders.
When I start the import, it stops after a little time with this message: "Error during import. Check the log file for details" .
In Umbraco Log there is nothing about CMSImport, but in the tracelog I found this messages for all articles that CMSImport tried to import:
16:32:40.665 ERROR CMSImportLibrary.Providers.ImportProviders.Content.ContentImportProvider
CMSImport:A record failed to import for aliasmainImage System.ArgumentException: Illegal characters in path. at System.IO.Path.CheckInvalidPathChars(String path, Boolean checkAdditional) at Sys
16:32:40.626 ERROR CMSImportLibrary.Providers.ImportProviders.Content.ContentImportProvider
CMSImport:A record failed to import for aliasmainImage System.ArgumentException: Illegal characters in path. at System.IO.Path.CheckInvalidPathChars(String path, Boolean checkAdditional) at Sys
16:32:40.527 ERROR CMSImportLibrary.Providers.ImportProviders.Content.ContentImportProvider
CMSImport:A record failed to import for aliasmainImage System.ArgumentException: Illegal characters in path. at System.IO.Path.CheckInvalidPathChars(String path, Boolean checkAdditional) at Sys
16:32:40.479 ERROR CMSImportLibrary.Providers.ImportProviders.Content.ContentImportProvider
CMSImport:A record failed to import for aliasmainImage System.ArgumentException: Illegal characters in path. at System.IO.Path.CheckInvalidPathChars(String path, Boolean checkAdditional) at Sys
16:32:40.438 ERROR CMSImportLibrary.Providers.ImportProviders.Content.ContentImportProvider
CMSImport:A record failed to import for aliasmainImage System.ArgumentException: Illegal characters in path. at System.IO.Path.CheckInvalidPathChars(String path, Boolean checkAdditional) at Sys
...
Error during import: A record failed to import for aliasmainImage
Hi, today we bought, installed and configured your package (Pro version)...but when we run the import, after some minutes (and some document processed), we receive this error message: "Error during import, check the logfile for details"
In the LOG File I found these details:
If I try to import all articles without images (there are only two fields for images), the import finish without errors.
I also tried to do the import in two steps: 1 ) before...all the articles with autopublish but without images (and all is done without errors) 2 ) after...all the articles with images with update option selected (we received the same error message)
Can you help us? Thank you Adriano
Hi,
The error is a permission error. Make sure the IIS user has access to the path.
Hope this helps,
Richard
Hi Richard,
thank you for your support.
Ok it is a permission error...but how can I resolve it?
The goal is to to import all articles stored in the old Umbraco 4.7.1.1 website to the new Umbraco 7.5 website
I try to explain what I've done:
When I start the process, after a few time, I receive the error.
But if I try to start the process excluding from mapping the mainImage, all articles are imported correctly without any error (and without images...obviously)
Where do you think I wrong?
I look forward to your reply and sorry for the long post. Adriano
This are some configuration screenshot of the configuration:
Hi,
It's normal that if you exclude that it will import since it will skip the property.
Check this article for folder permissions https://our.umbraco.org/Documentation/Getting-Started/Setup/Install/Permissions You need to set the same permissions on your import media folder as the normal media folder and make sure to reset the permissions on all child elements.
Hope this helps,
Richard
All permissions are ok...I already checked.
The Umbraco "Media" folder and my new "Media_Archivio" folder are in the root folder at the same level and have the same permissions.
The user "Network Service" and "IIS_IUSRS" have FULL CONTROL in all folders.
When I start the import, it stops after a little time with this message: "Error during import. Check the log file for details" .
In Umbraco Log there is nothing about CMSImport, but in the tracelog I found this messages for all articles that CMSImport tried to import:
Adriano
Any help?
Maybe there are also illegal characters in the path like teh description says?
Unfortunately I didn't found any illegal character
is working on a reply...