COU-563 - Cannot install Member Type via Revision

Created by Shannon Deminick 03 May 2017, 00:57:18 Updated by Claus Jensen 15 Sep 2017, 12:42:28

Subtask of: COU-521

If you have a revision that contains the default member type and transfer that revision to site B and install you'll get an error:

System.ApplicationException: Error extracting item, ID: d59be02f-1df9-4228-aa1e-01917d806cda_9bbce930-5deb-4775-bbc6-4e4e94dfa0db, Name: Member, Type: Umbraco.Courier.ItemProviders.MemberType ---> System.NullReferenceException: Object reference not set to an instance of an object.
   at Umbraco.Courier.Persistence.V6.NHibernate.Persisters.ContentTypePersisterBase`1.PerformPersistItem(T docType, CmsContentType contentTypeEntity, ISession session)
   at Umbraco.Courier.Persistence.V6.NHibernate.Persisters.MemberTypeItem.PerformPersistItem(MemberType docType, CmsContentType contentTypeEntity, ISession session)
   at Umbraco.Courier.Persistence.V6.NHibernate.Persisters.ContentTypePersisterBase`1.PersistItem(T docType)
   at Umbraco.Courier.Core.ItemCrud`1.PersistItem[T1](T1 item)
   at Umbraco.Courier.Core.ItemCrudProvider.PersistItem[T](T item)
   at Umbraco.Courier.Core.GenericItemProvider`1.HandleItemExtract(T item)
   at Umbraco.Courier.ItemProviders.ItemProviders.MemberTypeItemProvider.HandleItemExtract(MemberType item)
   at Umbraco.Courier.Core.GenericItemProvider`1.HandleExtract(Item item)
   at Umbraco.Courier.Core.ItemProvider.Extract(Item item)
   --- End of inner exception stack trace ---
   at Umbraco.Courier.Core.ItemProvider.Extract(Item item)
   at Umbraco.Courier.RepositoryProviders.Local.ExtractItem(Item item, Boolean overwrite)
   at Umbraco.Courier.Core.Extraction.RevisionExtraction.ExtractItems(List`1 nodes)
   at Umbraco.Courier.Core.Extraction.RevisionExtraction.ExtractReadyRevisionBatch()
   at Umbraco.Courier.Core.Extraction.RevisionExtraction.Extract()
2017-05-03 10:55:54,186 [35] DEBUG Umbraco.Courier.Persistence.V6.NHibernate.NHibernateProvider - [Thread 35] Closing session, UseGlobalSession: False, key: 98362214-34d0-4ffc-b5de-c69cb4cbed7d
2017-05-03 10:55:54,190 [35] ERROR Umbraco.Courier.Core.TaskManager - [Thread 35] Error ExtractionTask with id: d5a9e719-e3ca-4bb9-9264-d7d91928b93b
System.ApplicationException: Error extracting item, ID: d59be02f-1df9-4228-aa1e-01917d806cda_9bbce930-5deb-4775-bbc6-4e4e94dfa0db, Name: Member, Type: Umbraco.Courier.ItemProviders.MemberType ---> System.NullReferenceException: Object reference not set to an instance of an object.
   at Umbraco.Courier.Persistence.V6.NHibernate.Persisters.ContentTypePersisterBase`1.PerformPersistItem(T docType, CmsContentType contentTypeEntity, ISession session)
   at Umbraco.Courier.Persistence.V6.NHibernate.Persisters.MemberTypeItem.PerformPersistItem(MemberType docType, CmsContentType contentTypeEntity, ISession session)
   at Umbraco.Courier.Persistence.V6.NHibernate.Persisters.ContentTypePersisterBase`1.PersistItem(T docType)
   at Umbraco.Courier.Core.ItemCrud`1.PersistItem[T1](T1 item)
   at Umbraco.Courier.Core.ItemCrudProvider.PersistItem[T](T item)
   at Umbraco.Courier.Core.GenericItemProvider`1.HandleItemExtract(T item)
   at Umbraco.Courier.ItemProviders.ItemProviders.MemberTypeItemProvider.HandleItemExtract(MemberType item)
   at Umbraco.Courier.Core.GenericItemProvider`1.HandleExtract(Item item)
   at Umbraco.Courier.Core.ItemProvider.Extract(Item item)
   --- End of inner exception stack trace ---
   at Umbraco.Courier.Core.ItemProvider.Extract(Item item)
   at Umbraco.Courier.RepositoryProviders.Local.ExtractItem(Item item, Boolean overwrite)
   at Umbraco.Courier.Core.Extraction.RevisionExtraction.ExtractItems(List`1 nodes)
   at Umbraco.Courier.Core.Extraction.RevisionExtraction.ExtractReadyRevisionBatch()
   at Umbraco.Courier.Core.Extraction.RevisionExtraction.Extract()
   at Umbraco.Courier.Core.Tasks.ExtractionTask.Run()
   at Umbraco.Courier.Core.BackgroundTaskRunner`1.ConsumeTaskInternal(T task)
2017-05-03 10:55:54,190 [35] ERROR Umbraco.Courier.Core.BackgroundTaskRunner - [Thread 35] An error occurred consuming task
System.ApplicationException: Error extracting item, ID: d59be02f-1df9-4228-aa1e-01917d806cda_9bbce930-5deb-4775-bbc6-4e4e94dfa0db, Name: Member, Type: Umbraco.Courier.ItemProviders.MemberType ---> System.NullReferenceException: Object reference not set to an instance of an object.
   at Umbraco.Courier.Persistence.V6.NHibernate.Persisters.ContentTypePersisterBase`1.PerformPersistItem(T docType, CmsContentType contentTypeEntity, ISession session)
   at Umbraco.Courier.Persistence.V6.NHibernate.Persisters.MemberTypeItem.PerformPersistItem(MemberType docType, CmsContentType contentTypeEntity, ISession session)
   at Umbraco.Courier.Persistence.V6.NHibernate.Persisters.ContentTypePersisterBase`1.PersistItem(T docType)
   at Umbraco.Courier.Core.ItemCrud`1.PersistItem[T1](T1 item)
   at Umbraco.Courier.Core.ItemCrudProvider.PersistItem[T](T item)
   at Umbraco.Courier.Core.GenericItemProvider`1.HandleItemExtract(T item)
   at Umbraco.Courier.ItemProviders.ItemProviders.MemberTypeItemProvider.HandleItemExtract(MemberType item)
   at Umbraco.Courier.Core.GenericItemProvider`1.HandleExtract(Item item)
   at Umbraco.Courier.Core.ItemProvider.Extract(Item item)
   --- End of inner exception stack trace ---
   at Umbraco.Courier.Core.ItemProvider.Extract(Item item)
   at Umbraco.Courier.RepositoryProviders.Local.ExtractItem(Item item, Boolean overwrite)
   at Umbraco.Courier.Core.Extraction.RevisionExtraction.ExtractItems(List`1 nodes)
   at Umbraco.Courier.Core.Extraction.RevisionExtraction.ExtractReadyRevisionBatch()
   at Umbraco.Courier.Core.Extraction.RevisionExtraction.Extract()
   at Umbraco.Courier.Core.Tasks.ExtractionTask.Run()
   at Umbraco.Courier.Core.BackgroundTaskRunner`1.ConsumeTaskInternal(T task)

Comments

Claus Jensen 11 Sep 2017, 11:33:03

I cannot replicate this anymore. It has most likely been fixed recently with some of the duplicate/existing guid work that has been done.

I have confirmed that the following works:

  • Creating a new member type, putting it in a revision and extracting it on site B.
  • Packing the built-in Member member type in a revision and extracting it on site B.
  • Modifying the built-in Member member type and packing it in a revision and extracting on site B.


Priority: Normal

Type: Bug

State: Can't Reproduce

Assignee:

Difficulty:

Category:

Backwards Compatible: True

Fix Submitted:

Affected versions:

Due in version: 3.1.5

Sprint:

Story Points:

Cycle: