JeffDarchuk / SitecoreSidekick

Framework for angularjs based microservice architecture operations.
MIT License
48 stars 33 forks source link

Feature request - continue on TemplateMissingFieldException #64

Closed markgibbons25 closed 3 years ago

markgibbons25 commented 3 years ago
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> Rainbow.Storage.Sc.Deserialization.TemplateMissingFieldException: The field 209d3b2f-0daf-4a38-a1a6-3c9f1ee60689 (likely FixLanguageUrls) is not present in Sitecore on the Settings template.
   at Rainbow.Storage.Sc.Deserialization.DefaultDeserializer.Deserialize(IItemData serializedItemData, IFieldValueManipulator fieldValueManipulator)
   at Rainbow.Storage.Sc.SitecoreDataStore.Save(IItemData item, IFieldValueManipulator fieldValueManipulator)
   --- End of inner exception stack trace ---
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
   at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at ScsContentMigrator.Services.DatastoreSaver.Save(IDataStore store, IItemData data)
   at ScsContentMigrator.Core.ContentItemInstaller.ProcessItem(PullItemModel args, IItemData localData, IItemData remoteData)

In cases like this I would like the option to continue to install the item, but just warn about the missing field instead.

JeffDarchuk commented 3 years ago

it may be a possibility, however this functionality is handled by Rainbow entirely. Without an option within Rainbow to provide this functionality it would be quite difficult to manage, I'll look into it though, thanks for the suggestion.

markgibbons25 commented 3 years ago

Looks like unicorn handles it as a soft failure: see here and here.