Copied to clipboard

Flag this post as spam?

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


  • Frederik T 242 posts 373 karma points
    May 16, 2013 @ 14:44
    Frederik T
    0

    Cant create revision "Unable to load item with id '-1'"

    Yeah another problem. I cant create a revision because this stack trace pops up:

    Umbraco.Courier.Core.Exceptions.PackageException: Unable to load item 
    with id '-1' from provider 'Media' ---> 
    Umbraco.Courier.Core.Exceptions.RetrieveException: Error retrieving item
     [-1] from provider [d8e6ad87-e73a-11df-9492-0800200c9a66]. ---> 
    System.ArgumentOutOfRangeException: Length cannot be less than zero.
    Parameter name: length
       at System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 
    length, Boolean fAlwaysCopy)
       at 
    Umbraco.Courier.Persistence.V4.NHibernate.Helpers.MediaHelper.GetFromFileName(String
     filePath, ISession session) in c:\Program Files 
    (x86)\teamcity\buildAgent\work\650bafc4b83aa858\Core\Umbraco.Courier.Persistence.NHibernate\Helpers\MediaHelper.cs:line
     0
       at 
    Umbraco.Courier.Persistence.V4.NHibernate.Persisters.MediaItem.RetrieveItem[T](ItemIdentifier
     itemId) in c:\Program Files 
    (x86)\teamcity\buildAgent\work\650bafc4b83aa858\Core\Umbraco.Courier.Persistence.NHibernate\Persisters\Media.cs:line
     72
       at 
    Umbraco.Courier.Core.ItemCrudProvider.RetrieveItem[T](ItemIdentifier 
    itemId)
       --- End of inner exception stack trace ---
       at 
    Umbraco.Courier.Core.ItemCrudProvider.RetrieveItem[T](ItemIdentifier 
    itemId)
       at 
    Umbraco.Courier.ItemProviders.MediaItemProvider.HandlePack(ItemIdentifier
     id)
       at Umbraco.Courier.Core.ItemProvider.Package(ItemIdentifier id)
       at Umbraco.Courier.RepositoryProviders.Local.Package(ItemIdentifier 
    itemId)
       at 
    Umbraco.Courier.Core.Packaging.RevisionPackaging.PackageItem(ItemIdentifier
     itemId, ItemProvider provider, QueuedItemIdentifier itemInQueue)
       --- End of inner exception stack trace ---
       at 
    Umbraco.Courier.Core.Packaging.RevisionPackaging.PackageItem(ItemIdentifier
     itemId, ItemProvider provider, QueuedItemIdentifier itemInQueue)
       at Umbraco.Courier.Core.Packaging.RevisionPackaging.PackageBatch()
       at Umbraco.Courier.Core.Packaging.RevisionPackaging.PackageBatch()
       at Umbraco.Courier.Core.Packaging.RevisionPackaging.PackageBatch()
       at Umbraco.Courier.Core.Packaging.RevisionPackaging.Package()
       at Umbraco.Courier.Core.Tasks.PackagingTask.Run()
       at Umbraco.Courier.Core.TaskManager.manageTask(IRevisionTask value)
     5/16/2013 2:40:26 PM

    I looked though the database and i cant seem to find anything related to a media node with the id of -1, so i dont know how this could happen. Maybe i am not looking the right place. either way, i get this error everytime so courier is essentially useless right now.

    I happens when i try to create a revision, and select a document, and all its dependencies. A revision is created with some files in it, but the receiving umbraco installation cant read it because it does not contain a comparison files, so the revision is not created correctly.

    I am using courier 2.7.7.3 (umbraco v4 version), installed on a Umbraco 4.7.2 installation.

  • Sam 2 posts 22 karma points
    Oct 02, 2013 @ 05:17
    Sam
    0

    I'm running into the same issue. Has anyone managed to resolve this?

    I'm using Courier 2.7.8.15 v4 with Umbraco 4.10.1.

  • Per Ploug 865 posts 3491 karma points MVP admin
    Oct 02, 2013 @ 13:14
    Per Ploug
    0

    Do you have the exact same stacktrace as the above? as the root of the issue was fixed some time ago - was to do with courier trying to load a media item based on a file it found in the RTE

  • Sam 2 posts 22 karma points
    Oct 03, 2013 @ 01:47
    Sam
    0

    Oops! Just checked the stack trace and it appears I'm getting a similar issue. Many apologies!

    Umbraco.Courier.Core.Exceptions.PackageException: Unable to load item 
    with id '-1' from provider 'Media' ---> 
    Umbraco.Courier.Core.Exceptions.RetrieveException: Error retrieving item 
    [-1] from provider [d8e6ad87-e73a-11df-9492-0800200c9a66]. ---> 
    System.ArgumentOutOfRangeException: Length cannot be less than zero. 
    Parameter name: length 
        at System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 
    length, Boolean fAlwaysCopy) 
        at 
    Umbraco.Courier.Persistence.V4.NHibernate.Helpers.MediaHelper.GetFromFileName(String 
    filePath, ISession session) in c:\Program Files 
    (x86)\teamcity\buildAgent\work\650bafc4b83aa858\Core\Umbraco.Courier.Persistence.NHibernate\Helpers\MediaHelper.cs:line 
     20
       at
    Umbraco.Courier.Persistence.V4.NHibernate.Persisters.MediaItem.RetrieveItem[T](ItemIdentifier 
     itemId) in c:\Program Files 
    (x86)\teamcity\buildAgent\work\650bafc4b83aa858\Core\Umbraco.Courier.Persistence.NHibernate\Persisters\Media.cs:line 
     77 
       at 
    Umbraco.Courier.Core.ItemCrudProvider.RetrieveItem[T](ItemIdentifier 
    itemId) 
        --- End of inner exception stack trace --- 
       at 
    Umbraco.Courier.Core.ItemCrudProvider.RetrieveItem[T](ItemIdentifier 
    itemId) 
       at
    Umbraco.Courier.ItemProviders.MediaItemProvider.HandlePack(ItemIdentifier 
     id) 
       at Umbraco.Courier.Core.ItemProvider.Package(ItemIdentifier id) 
       at Umbraco.Courier.RepositoryProviders.Local.Package(ItemIdentifier 
    itemId) 
       at 
    Umbraco.Courier.Core.Packaging.RevisionPackaging.PackageItem(ItemIdentifier 
     itemId, ItemProvider provider, QueuedItemIdentifier itemInQueue) 
       --- End of inner exception stack trace --- 
       at 
    Umbraco.Courier.Core.Packaging.RevisionPackaging.PackageItem(ItemIdentifier 
     itemId, ItemProvider provider, QueuedItemIdentifier itemInQueue) 
       at Umbraco.Courier.Core.Packaging.RevisionPackaging.PackageBatch() 
       at Umbraco.Courier.Core.Packaging.RevisionPackaging.Package() 
       at Umbraco.Courier.Core.TaskManager.manageTask(IRevisionTask value) 
     3/10/2013 12:35:28 p.m.
    

    The only differences I can see are the line numbers (20 and 77) and the Umbraco.Courier.Core.Packaging.RevisionPackaging.PackageItem etc. code block at the very end.

  • Anton Oosthuizen 206 posts 486 karma points
    Jan 30, 2014 @ 13:39
    Anton Oosthuizen
    0

    I'm getting a similar error v6.1.6

     

    error:Umbraco.Courier.Core.Exceptions.PackageException: Unable to load item with id '-1' from provider 'Media' ---> Umbraco.Courier.Core.Exceptions.RetrieveException: Error retrieving item [-1] from provider [d8e6ad87-e73a-11df-9492-0800200c9a66]. ---> System.ArgumentOutOfRangeException: Length cannot be less than zero. Parameter name: length at System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean fAlwaysCopy) at Umbraco.Courier.Persistence.V6.NHibernate.Helpers.MediaHelper.GetFromFileName(String filePath, ISession session) in c:\Program Files (x86)\teamcity\buildAgent\work\650bafc4b83aa858\Core\Umbraco.Courier.Persistence.V6.NHibernate\Helpers\MediaHelper.cs:line 18 at Umbraco.Courier.Persistence.V6.NHibernate.Persisters.MediaItem.RetrieveItem[T](ItemIdentifier itemId) in c:\Program Files (x86)\teamcity\buildAgent\work\650bafc4b83aa858\Core\Umbraco.Courier.Persistence.V6.NHibernate\Persisters\Media.cs:line 77 at Umbraco.Courier.Core.ItemCrudProvider.RetrieveItem[T](ItemIdentifier itemId) --- End of inner exception stack trace --- at Umbraco.Courier.Core.ItemCrudProvider.RetrieveItem[T](ItemIdentifier itemId) at Umbraco.Courier.ItemProviders.MediaItemProvider.HandlePack(ItemIdentifier id) at Umbraco.Courier.Core.ItemProvider.Package(ItemIdentifier id) at Umbraco.Courier.RepositoryProviders.Local.Package(ItemIdentifier itemId) at Umbraco.Courier.Core.Packaging.RevisionPackaging.PackageItem(ItemIdentifier itemId, ItemProvider provider, QueuedItemIdentifier itemInQueue) --- End of inner exception stack trace --- at Umbraco.Courier.Core.Packaging.RevisionPackaging.PackageItem(ItemIdentifier itemId, ItemProvider provider, QueuedItemIdentifier itemInQueue) at Umbraco.Courier.Core.Packaging.RevisionPackaging.PackageBatch() at Umbraco.Courier.Core.Packaging.RevisionPackaging.PackageBatch() at Umbraco.Courier.Core.Packaging.RevisionPackaging.PackageBatch() at Umbraco.Courier.Core.Packaging.RevisionPackaging.Package() at Umbraco.Courier.Core.TaskManager.manageTask(IRevisionTask value) 2014/01/30 02:36:29 PM

  • Anton Oosthuizen 206 posts 486 karma points
    Jan 30, 2014 @ 13:56
    Anton Oosthuizen
    0

    If I try to deploy media items the nodes gets created on the new site but the media filles does not get copied over and linked up.

     

Please Sign in or register to post replies

Write your reply to:

Draft