Copied to clipboard

Flag this post as spam?

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


  • Adriano Fabri 469 posts 1633 karma points
    Dec 19, 2016 @ 04:57
    Adriano Fabri
    0

    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)

    Can you help us? Thank you Adriano

  • Richard Soeteman 4046 posts 12899 karma points MVP 2x
    Dec 19, 2016 @ 07:11
    Richard Soeteman
    0

    Hi,

    The error is a permission error. Make sure the IIS user has access to the path.

    Hope this helps,

    Richard

  • Adriano Fabri 469 posts 1633 karma points
    Dec 19, 2016 @ 17:09
    Adriano Fabri
    0

    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:

    1. I created a media archive folder in the root of the new website.
    2. I assigned Full control to Network Service and IIS_IUSRS accounts to all website root folder and discendents (for new and old website)
    3. I also tried to add the new media archive folder to web.config as Reseserved Path...but nothing.
    4. 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: Select Datasource Select content import options Mapping of the image field that throw the eception Summary and Confirm Page Media Setting configuration

  • Richard Soeteman 4046 posts 12899 karma points MVP 2x
    Dec 20, 2016 @ 07:42
    Richard Soeteman
    0

    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

  • Adriano Fabri 469 posts 1633 karma points
    Dec 20, 2016 @ 15:45
    Adriano Fabri
    0

    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:

    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
    
    ...
    

    Adriano

  • Adriano Fabri 469 posts 1633 karma points
    Dec 22, 2016 @ 11:03
    Adriano Fabri
    0

    Any help?

  • Richard Soeteman 4046 posts 12899 karma points MVP 2x
    Dec 22, 2016 @ 11:44
    Richard Soeteman
    0

    Maybe there are also illegal characters in the path like teh description says?

  • Adriano Fabri 469 posts 1633 karma points
    Dec 29, 2016 @ 20:54
    Adriano Fabri
    0

    Unfortunately I didn't found any illegal character

Please Sign in or register to post replies

Write your reply to:

Draft