Copied to clipboard

Flag this post as spam?

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


  • Michael Hyldsgaard 64 posts 124 karma points
    Jan 04, 2014 @ 13:41
    Michael Hyldsgaard
    0

    Error on packaging Data Types

    When packaging my data types with dependencies in 1 level I get this error message:

    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.Substring(Int32 startIndex, Int32 length) 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.Package() at Umbraco.Courier.Core.Tasks.PackagingTask.Run() at Umbraco.Courier.Core.TaskManager.manageTask(IRevisionTask value) 1/4/2014 1:37:07 PM

    I can't seem to find the data type that is triggering the error.

  • Morten Christensen 594 posts 2747 karma points admin hq c-trib
    Jan 04, 2014 @ 17:50
    Morten Christensen
    0

    Isn't the problem that you are packaging the media root rather then a media item? I don't see anything that would indicate that a DataType is causing this exception?

    Its trying to retrieve a media item with id -1 which is failing. I believe that is because the root item is not a valid media item.

     

    - Morten

  • Michael Hyldsgaard 64 posts 124 karma points
    Jan 04, 2014 @ 19:58
    Michael Hyldsgaard
    0

    It's not the data type itself but one of the dependencies (probably a content node). But I've looked in the Courier log files and can't seem to find any clue on which node might be causing the problem.

    I've have lots of nodes with media picker's where no media is actually chosen (they are optional). It should'nt really cause this kind of problem, right?

  • Morten Christensen 594 posts 2747 karma points admin hq c-trib
    Jan 04, 2014 @ 20:03
    Morten Christensen
    0

    Are there any pickers that have specifically picked the root media node? Maybe that is the problem. I'm not sure if your pickers would default to -1, but I wouldn't think that would be the case.

     

    - Morten

  • Michael Hyldsgaard 64 posts 124 karma points
    Jan 04, 2014 @ 20:13
    Michael Hyldsgaard
    0

    I don't really know. There are thousands of content nodes... I'll have to dig into the database I guess... :)

  • Michael Hyldsgaard 64 posts 124 karma points
    Jan 04, 2014 @ 21:19
    Michael Hyldsgaard
    0

    Hmm... no media related properties has been set to -1 (or any other weird value).

  • Morten Christensen 594 posts 2747 karma points admin hq c-trib
    Jan 04, 2014 @ 21:28
    Morten Christensen
    0

    I don't have any other ideas ... Other then to check the log or maybe change the log level (if necessary) to check for offending content. Would be nice to know which item triggers this media dependency.

    If you can narrow it done to one content item the please list the data types that are used, and i'll see if I can figure out what it could be. -Any custom data types?

     

    - Morten

  • Laurence Gillian 595 posts 1210 karma points
    May 23, 2015 @ 12:04
    Laurence Gillian
    0

    This issue has just popped up on one of our sites:

    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) at Umbraco.Courier.Persistence.V6.NHibernate.Persisters.MediaItem.RetrieveItem[T](ItemIdentifier itemId) 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) 5/23/2015 10:00:53 AM
    

    Seems to be a duplicate of: https://our.umbraco.org/forum/umbraco-pro/courier/40968-Cant-create-revision-Unable-to-load-item-with-id-1

    @ Anyone! ;-)

    Is this an error with extraction, rather than packaging? Is the error occurring on the source machine, or the target?

  • Paul Sterling 712 posts 1446 karma points MVP 4x admin c-trib
    May 25, 2015 @ 18:03
    Paul Sterling
    0

    @Laurence 

    The usual questions help here - which versions, repro steps, courierTraceLog.txt entries.

    Also, could you check the trace logs on the source and target - I think that'll point up where the error is occuring.

  • Laurence Gillian 595 posts 1210 karma points
    Jun 03, 2015 @ 13:27
    Laurence Gillian
    0

    Here are the logs from the Source...

    The Courier version is not stored in the InstalledPackages.config, it just says 'Courier for Umbraco 6'.

    The version number on the Umbraco.Courier.Core.dll is 1.0.5284.17386.

    Hope the following information is helpful!!!

    Umbraco version 6.1.6

    Best wishes, Laurence

    Courier log_Error.txt

    6/2/2015 1:27:51 PM; cc07b313-0843-4aa8-bbda-871c8da728c8 return null
    6/2/2015 1:27:51 PM; 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)
    at Umbraco.Courier.Persistence.V6.NHibernate.Persisters.MediaItem.RetrieveItem[T](ItemIdentifier itemId)
    at Umbraco.Courier.Core.ItemCrudProvider.RetrieveItem[T](ItemIdentifier itemId)
    6/2/2015 1:27:51 PM; 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)
    at Umbraco.Courier.Persistence.V6.NHibernate.Persisters.MediaItem.RetrieveItem[T](ItemIdentifier itemId)
    at Umbraco.Courier.Core.ItemCrudProvider.RetrieveItem[T](ItemIdentifier itemId)
    6/2/2015 1:27:51 PM; 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)
    at Umbraco.Courier.Persistence.V6.NHibernate.Persisters.MediaItem.RetrieveItem[T](ItemIdentifier itemId)
    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)

    Courier log_Debug.txt

    6/2/2015 1:27:50 PM; Opening session: 2c043fe1-1fc1-449c-bf7f-29e7622caf60
    6/2/2015 8:50:50 PM; loading session factory

    Courier log_Compare.txt

    6/2/2015 1:27:50 PM; Crisp & Fruity Rosé filtered:True Documents 7f8bbc0cccd84f81ab7411592aec5eab117059a4a563ddb8b89a885d0e5570da / 7f8bbc0cccd84f81ab7411592aec5eab117059a4a563ddb8b89a885d0e5570da
    6/2/2015 1:27:50 PM; Document Crisp & Fruity Rosé Property Data filtered:True PropertyData 117059a4a563ddb8b89a885d0e5570da / 117059a4a563ddb8b89a885d0e5570da
    6/2/2015 1:27:50 PM; [RTE] Insert Foodity - Add to Basket filtered:False Macros dbe873c8096ad73972942e43bab8626d / 5a391ee4d7cdeee2e546949492a68f81
    6/2/2015 1:27:50 PM; [RTE] Social Buttons filtered:False Macros 92c3fccb273b9bf2a1707ab7445e6622 / ab1cccff52e2b1f6d6b5158700bcb82f
    6/2/2015 1:27:51 PM; Wine filtered:False Document types ff9ff43332c82391da43e61f8fa90a4e / 8134b2cbfb42c6d30aa7b8153344e0c0
    6/2/2015 1:27:51 PM; [MNTP] Range(s) filtered:True Datatypes 8fcd61fc422a0d7e278f5d054ea6e661 / 8fcd61fc422a0d7e278f5d054ea6e661
    6/2/2015 1:27:51 PM; [DAMP] Image filtered:False Datatypes 56195a3240f7bbb2bf33a59c653b5c64 / 0d9eefd1cf866b5c1943a0ea00745ef9
    6/2/2015 1:27:51 PM; Richtext editor reduced filtered:True Datatypes 296de75f932cf7ce4ecdddceb7344871 / 296de75f932cf7ce4ecdddceb7344871
    6/2/2015 1:27:51 PM; [MNTP] Widget(s) filtered:True Datatypes 216d764a3e2ef0143b4acd469a16694d / 216d764a3e2ef0143b4acd469a16694d

    Courier log_Nulls.txt

    6/2/2015 1:27:50 PM; False < ~/umbraco/images/umbraco/Wine.png
    6/2/2015 1:27:50 PM; False > ~/umbraco/images/umbraco/Wine.png
    6/2/2015 1:27:50 PM; False < ~/umbraco/images/thumbnails/folder.png
    6/2/2015 1:27:50 PM; False > ~/umbraco/images/thumbnails/folder.png
    6/2/2015 1:27:51 PM; False < ~/bin/DigibizTree.dll
    6/2/2015 1:27:51 PM; False > ~/bin/DigibizTree.dll

    Courier log_RevisionLog.txt

    6/2/2015 1:27:26 PM; [Information];Umbraco.Courier.RepositoryProviders.CourierWebserviceRepositoryProvider;ExtractRevisions;Session opening: d5703d06-213b-4b82-8dfa-004d1b7790bd;
    6/2/2015 1:27:27 PM; [Error];-1;Umbraco.Courier.Persistence.V6.NHibernate.NHibernateProvider;PersistenceManager;Could not retrieve item:

    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)
    at Umbraco.Courier.Persistence.V6.NHibernate.Persisters.MediaItem.RetrieveItem[T](ItemIdentifier itemId)
    at Umbraco.Courier.Core.ItemCrudProvider.RetrieveItem[T](ItemIdentifier itemId);
    6/2/2015 1:27:27 PM; [Error];-1;Umbraco.Courier.Persistence.V6.NHibernate.NHibernateProvider;PersistenceManager;Could not retrieve item:

    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)
    at Umbraco.Courier.Persistence.V6.NHibernate.Persisters.MediaItem.RetrieveItem[T](ItemIdentifier itemId)
    at Umbraco.Courier.Core.ItemCrudProvider.RetrieveItem[T](ItemIdentifier itemId);
    6/2/2015 1:27:50 PM; [Information];Umbraco.Courier.RepositoryProviders.CourierWebserviceRepositoryProvider;ExtractRevisions;Session opening: 2c043fe1-1fc1-449c-bf7f-29e7622caf60;
    6/2/2015 1:27:51 PM; [Error];-1;Umbraco.Courier.Persistence.V6.NHibernate.NHibernateProvider;PersistenceManager;Could not retrieve item:

    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)
    at Umbraco.Courier.Persistence.V6.NHibernate.Persisters.MediaItem.RetrieveItem[T](ItemIdentifier itemId)
    at Umbraco.Courier.Core.ItemCrudProvider.RetrieveItem[T](ItemIdentifier itemId);
    6/2/2015 1:27:51 PM; [Error];-1;Umbraco.Courier.Persistence.V6.NHibernate.NHibernateProvider;PersistenceManager;Could not retrieve item:

    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)
    at Umbraco.Courier.Persistence.V6.NHibernate.Persisters.MediaItem.RetrieveItem[T](ItemIdentifier itemId)
    at Umbraco.Courier.Core.ItemCrudProvider.RetrieveItem[T](ItemIdentifier itemId);

  • Paul Sterling 712 posts 1446 karma points MVP 4x admin c-trib
    Jun 03, 2015 @ 18:06
    Paul Sterling
    0

    @Laurence

    That is quite an old version.  I'd strongly recommend you update to the latest release for v6 - 2.7.8.2.v6 - which has a number of fixes in the handling of media.

Please Sign in or register to post replies

Write your reply to:

Draft