I have a large site that i'm converting from Drupal to Umbraco and I'm using CMSImport to get most of this content over. I've created an XML export of one of the sections that needs to be imported, and everything seems to map fine but then I get the following error
Error while importing data for property 'logo', datasource record Title = 'Node', Error :Illegal characters in path.
I'm just doing a test run of 3 nodes at the moment but I get this error for all three nodes. The XML for the property throwing the error is:
Hi Owen,
You are using an url which is not supported by default. Check the config settings for media and add the url to the "Parse media for the following domain urls" option.
Thank you for the response. I added "http://sub.domain.com/" to the "Parse media for the following domain urls" setting and I still receive the Illegal character error.
I've copied /sites/default/files to the umbraco root and used the relative url but I receive the same error.
I know this is a year ago now, but did you manage to resolve this? I'm having exactly the same issue on all media type!
eg:
Error while importing data for property 'pageHero', datasource record @nodeName = 'Eshott Hall Wedding Photography Sam Johno', Error :Illegal characters in path.
Error while importing data for property 'uBlogsyPostImage', datasource record @nodeName = 'Sandhole Oak Barn Pre-Wedding Engagement Shoot', Error :Illegal characters in path.
Parse media for the following domain urls 'http://www.richardsandcophotography.co.uk/'
My Media import path is '/media/media' and I've downloaded my entire media folder to this location.
System.ArgumentException: Illegal characters in path.
at System.IO.Path.CheckInvalidPathChars(String path, Boolean checkAdditional)
at System.Security.Permissions.FileIOPermission.CheckIllegalCharacters(String[] str)
at System.Security.Permissions.FileIOPermission.AddPathList(FileIOPermissionAccess access, AccessControlActions control, String[] pathListOrig, Boolean checkForDuplicates, Boolean needFullPath, Boolean copyPathList)
at System.Security.Permissions.FileIOPermission..ctor(FileIOPermissionAccess access, String path)
at System.Web.InternalSecurityPermissions.PathDiscovery(String path)
at System.Web.HttpRequest.MapPath(VirtualPath virtualPath, VirtualPath baseVirtualDir, Boolean allowCrossAppMapping)
at System.Web.HttpServerUtility.MapPath(String path)
at CMSImportLibrary.Helpers.MediaImportHelper.GetFullHtmlDecodedPath(String )
at CMSImportLibrary.Providers.FieldProviders.ProFieldAdapters.ImageCropperFieldProvider.Parse(Object value, PropertyInfo propertyInfo, FieldProviderOptions fieldProviderOptions)
at CMSImportLibrary.Providers.FieldProviders.FieldProviderFactory.Parse(PropertyInfo prop, Object value, FieldProviderOptions fieldProviderOptions)
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 )
2016-10-29 15:31:48,944 [P6244/D19/T32] INFO CMSImport.Extensions.Providers.ImportProviders.ImportProvider - CMSImport:Import task Import Blog Posts finished, Records in datasource: 46, Records Added 0, Records Updated 0, Records skipped 0, Records deleted 0, Errors 46, duration 00:00:50
error on images while importing from XML
I have a large site that i'm converting from Drupal to Umbraco and I'm using CMSImport to get most of this content over. I've created an XML export of one of the sections that needs to be imported, and everything seems to map fine but then I get the following error
Error while importing data for property 'logo', datasource record Title = 'Node', Error :Illegal characters in path.
I'm just doing a test run of 3 nodes at the moment but I get this error for all three nodes. The XML for the property throwing the error is:
I've tried having the destination property set to be both an upload field and a media picker with luck either way.
I've also tried adding the files folder to the root of my umbraco installation and changing the src to read /files/image.png with no luck
Could someone point me to what I'm doing wrong.
Thanks,
Owen
Hi Owen, You are using an url which is not supported by default. Check the config settings for media and add the url to the "Parse media for the following domain urls" option.
That should work.
Hope this helps,
Richard
Hi Richard,
Thank you for the response. I added "http://sub.domain.com/" to the "Parse media for the following domain urls" setting and I still receive the Illegal character error.
I've copied /sites/default/files to the umbraco root and used the relative url but I receive the same error.
And if it sheds any light on the issue, this is what i'm seeing in the error log.
I know this is a year ago now, but did you manage to resolve this? I'm having exactly the same issue on all media type!
eg: Error while importing data for property 'pageHero', datasource record @nodeName = 'Eshott Hall Wedding Photography Sam Johno', Error :Illegal characters in path.
Error while importing data for property 'uBlogsyPostImage', datasource record @nodeName = 'Sandhole Oak Barn Pre-Wedding Engagement Shoot', Error :Illegal characters in path.
Parse media for the following domain urls 'http://www.richardsandcophotography.co.uk/'
My Media import path is '/media/media' and I've downloaded my entire media folder to this location.
at System.IO.Path.CheckInvalidPathChars(String path, Boolean checkAdditional) at System.Security.Permissions.FileIOPermission.CheckIllegalCharacters(String[] str) at System.Security.Permissions.FileIOPermission.AddPathList(FileIOPermissionAccess access, AccessControlActions control, String[] pathListOrig, Boolean checkForDuplicates, Boolean needFullPath, Boolean copyPathList) at System.Security.Permissions.FileIOPermission..ctor(FileIOPermissionAccess access, String path) at System.Web.InternalSecurityPermissions.PathDiscovery(String path) at System.Web.HttpRequest.MapPath(VirtualPath virtualPath, VirtualPath baseVirtualDir, Boolean allowCrossAppMapping) at System.Web.HttpServerUtility.MapPath(String path) at CMSImportLibrary.Helpers.MediaImportHelper.GetFullHtmlDecodedPath(String ) at CMSImportLibrary.Providers.FieldProviders.ProFieldAdapters.ImageCropperFieldProvider.Parse(Object value, PropertyInfo propertyInfo, FieldProviderOptions fieldProviderOptions) at CMSImportLibrary.Providers.FieldProviders.FieldProviderFactory.Parse(PropertyInfo prop, Object value, FieldProviderOptions fieldProviderOptions) 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 ) 2016-10-29 15:31:48,944 [P6244/D19/T32] INFO CMSImport.Extensions.Providers.ImportProviders.ImportProvider - CMSImport:Import task Import Blog Posts finished, Records in datasource: 46, Records Added 0, Records Updated 0, Records skipped 0, Records deleted 0, Errors 46, duration 00:00:50
I assume you use latest versions? What are the urls in xml?
is working on a reply...