Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Openfield Creative 62 posts 222 karma points
    Nov 03, 2015 @ 22:17
    Openfield Creative
    0

    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:

    <Logo><img src="http://sub.domain.com/sites/default/files/image.png" width="207" height="202" alt="" /></Logo>
    

    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

  • Richard Soeteman 3616 posts 11026 karma points MVP
    Nov 04, 2015 @ 09:39
    Richard Soeteman
    0

    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

  • Openfield Creative 62 posts 222 karma points
    Nov 04, 2015 @ 20:01
    Openfield Creative
    0

    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.

  • Openfield Creative 62 posts 222 karma points
    Nov 05, 2015 @ 15:26
    Openfield Creative
    1

    And if it sheds any light on the issue, this is what i'm seeing in the error log.

    2015-11-05 10:23:58,764 [P8648/D3/T20] ERROR CMSImportLibrary.Providers.ImportProviders.Content.ContentImportProvider - CMSImport:A record failed to import for aliaslogo 
    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.Providers.FieldProviders.ProFieldAdapters.UploadFieldProvider.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 )
    
  • Craig Richards 16 posts 74 karma points
    Oct 29, 2016 @ 14:29
    Craig Richards
    0

    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

  • Richard Soeteman 3616 posts 11026 karma points MVP
    Oct 31, 2016 @ 07:32
    Richard Soeteman
    0

    I assume you use latest versions? What are the urls in xml?

Please Sign in or register to post replies

Write your reply to:

Draft