Copied to clipboard

Flag this post as spam?

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


  • Kiran 17 posts 109 karma points
    Feb 05, 2021 @ 12:05
    Kiran
    0

    Content Migration from Umbraco v7.15.6 to v8.1.0

    Hi Everyone,

    When we are trying to upgrade the umbraco version 7.15.6 to 8.1.0 by following the below link

    https://our.umbraco.com/documentation/getting-started/setup/upgrading/migrating-to-v8

    But we are getting error, Please find the below log for your reference.

    {"@t":"2021-02-05T11:40:47.8663621Z","@mt":"Execute {MigrationType}","MigrationType":"ConvertRelatedLinksToMultiUrlPicker","SourceContext":"Umbraco.Core.Migrations.MigrationPlan","ProcessId":4324,"ProcessName":"iisexpress","ThreadId":63,"AppDomainId":4,"AppDomainAppId":"LMW3SVC2ROOT","MachineName":"DESKTOP-NCFRDII","Log4NetLevel":"INFO ","HttpRequestNumber":9,"HttpRequestId":"21c1503a-98ce-451a-a2b7-86d10aa8f2a1"}
    

    {"@t":"2021-02-05T11:41:30.0614511Z","@mt":"Database configuration failed","@l":"Error","@x":"System.NullReferenceException: Object reference not set to an instance of an object.\r\n at Umbraco.Core.Migrations.Upgrade.V800.ConvertRelatedLinksToMultiUrlPicker.Migrate()\r\n at Umbraco.Core.Migrations.MigrationBase.Umbraco.Core.Migrations.IMigration.Migrate()\r\n at Umbraco.Core.Migrations.MigrationPlan.Execute(IScope scope, String fromState, IMigrationBuilder migrationBuilder, ILogger logger)\r\n at Umbraco.Core.Migrations.Upgrade.Upgrader.Execute(IScopeProvider scopeProvider, IMigrationBuilder migrationBuilder, IKeyValueService keyValueService, ILogger logger)\r\n at Umbraco.Core.Migrations.Install.DatabaseBuilder.UpgradeSchemaAndData(MigrationPlan plan)","SourceContext":"Umbraco.Core.Migrations.Install.DatabaseBuilder","ProcessId":4324,"ProcessName":"iisexpress","ThreadId":63,"AppDomainId":4,"AppDomainAppId":"LMW3SVC2ROOT","MachineName":"DESKTOP-NCFRDII","Log4NetLevel":"ERROR","HttpRequestNumber":9,"HttpRequestId":"21c1503a-98ce-451a-a2b7-86d10aa8f2a1"} {"@t":"2021-02-05T11:41:30.0624504Z","@mt":"The database schema validation produced the following summary: {DbSchemaSummary}","DbSchemaSummary":"The following tables were found in the database, but are not in the current schema:\r\nUFRecordDataDateTime,UFUserSecurity,UFUserFormSecurity,TranslatorUsers,TranslateJobs,BlogNewsLetterEmail,TranslateSets,cmsContent,TranslateProperties,TranslateNodes,TranslateJobNodes,cmsContentVersion,cmsContentXml,cmsDataType,cmsDataTypePreValues,cmsDocument,cmsMedia,cmsPreviewXml,cmsPropertyData,cmsTask,cmsTaskType,dbo.MovieLikes,EnquiryTBL,eventdetailsform,NewsSettlerDetails,nsEmailTrackingItems,nsNewsletters,nsSubscribers,nsSubscriptions,nsTrackingItems,umbracoDomains,umbracoMigration,WorkflowSettings,WorkflowUserGroups,WorkflowUser2UserGroup,UFRecords,WorkflowUserGroupPermissions,UFRecordFields,WorkflowInstance,UFRecordDataString,WorkflowTaskInstance,UFRecordDataLongString,UFRecordDataInteger,UFRecordDataBit,ContactDetails,umbracoContent,umbracoContentVersion,umbracoMediaVersion,umbracoDocument,umbracoDataType,umbracoDomain,umbracoPropertyData,cmsContentNu,umbracoDocumentVersion,umbracoKeyValue,umbracoContentVersionCultureVariation,umbracoDocumentCultureVariation,umbracoContentSchedule\r\n \r\nThe following columns were found in the database, but are not in the current schema:\r\nUFRecordDataDateTime,Id,UFRecordDataDateTime,Key,UFRecordDataDateTime,Value,UFUserSecurity,User,UFUserSecurity,ManageDataSources,UFUserSecurity,ManagePreValueSources,UFUserSecurity,ManageWorkflows,UFUserSecurity,ManageForms,UFUserFormSecurity,Id,UFUserFormSecurity,User,UFUserFormSecurity,Form,UFUserFormSecurity,HasAccess,UFUserFormSecurity,AllowInEditor,UFUserFormSecurity,SecurityType,TranslatorUsers,id,TranslatorUsers,userId,TranslatorUsers,nodeId,TranslatorUsers,cultureName,TranslateJobs,id,TranslateJobs,key,TranslateJobs,name,TranslateJobs,sourceCultureId,TranslateJobs,sourceCultureName,TranslateJobs,targetCultureId,TranslateJobs,targetCultureName,TranslateJobs,created,TranslateJobs,submitted,TranslateJobs,recevied,TranslateJobs,accepted,TranslateJobs,status,TranslateJobs,providerKey,TranslateJobs,providerName,TranslateJobs,providerProps,TranslateJobs,setKey,TranslateJobs,translator,TranslateJobs,userId,TranslateJobs,groupId,BlogNewsLetterEmail,Id,BlogNewsLetterEmail,BlogNewsletterEmail,TranslateSets,id,TranslateSets,key,TranslateSets,name,TranslateSets,master,TranslateSets,cultureId,TranslateSets,cultureName,TranslateSets,sites,TranslateSets,copyOnCreate,TranslateSets,includeNodeName,TranslateSets,properties,TranslateSets,multiProperties,TranslateSets,providerKey,TranslateSets,autoSend,TranslateSets,ignoreDocTypes,cmsContent,pk,cmsContent,nodeId,cmsContent,contentType,TranslateProperties,id,TranslateProperties,nodeKey,TranslateProperties,alias,TranslateProperties,source,TranslateProperties,target,TranslateProperties,sortOrder,TranslateProperties,group,TranslateNodes,id,TranslateNodes,key,TranslateNodes,setKey,TranslateNodes,cultureId,TranslateNodes,cultureName,TranslateNodes,masterId,TranslateNodes,targetId,TranslateNodes,status,TranslateNodes,created,TranslateNodes,updated,TranslateNodes,writerId,TranslateNodes,masterNodeName,TranslateNodes,targetNodeName,TranslateNodes,isDictionary,TranslateNodes,contentVersion,TranslateJobNodes,id,TranslateJobNodes,jobId,TranslateJobNodes,nodeId,cmsContentVersion,id,cmsContentVersion,ContentId,cmsContentVersion,VersionId,cmsContentVersion,VersionDate,cmsContentXml,nodeId,cmsContentXml,xml,cmsDataType,pk,cmsDataType,nodeId,cmsDataType,propertyEditorAlias,cmsDataType,dbType,cmsDataTypePreValues,id,cmsDataTypePreValues,datatypeNodeId,cmsDataTypePreValues,value,cmsDataTypePreValues,sortorder,cmsDataTypePreValues,alias,cmsDocument,nodeId,cmsDocument,published,cmsDocument,documentUser,cmsDocument,versionId,cmsDocument,text,cmsDocument,releaseDate,cmsDocument,expireDate,cmsDocument,updateDate,cmsDocument,templateId,cmsDocument,newest,cmsMacro,macroScriptType,cmsMacro,macroScriptAssembly,cmsMacro,macroXSLT,cmsMacro,macroPython,cmsMedia,nodeId,cmsMedia,versionId,cmsMedia,mediaPath,cmsPreviewXml,nodeId,cmsPreviewXml,versionId,cmsPreviewXml,timestamp,cmsPreviewXml,xml,cmsPropertyData,id,cmsPropertyData,contentNodeId,cmsPropertyData,versionId,cmsPropertyData,propertytypeid,cmsPropertyData,dataInt,cmsPropertyData,dataDecimal,cmsPropertyData,dataDate,cmsPropertyData,dataNvarchar,cmsPropertyData,dataNtext,cmsTags,ParentId,cmsTask,closed,cmsTask,id,cmsTask,taskTypeId,cmsTask,nodeId,cmsTask,parentUserId,cmsTask,userId,cmsTask,DateTime,cmsTask,Comment,cmsTaskType,id,cmsTaskType,alias,cmsTemplate,design,dbo.MovieLikes,id,dbo.MovieLikes,MovieLikes,EnquiryTBL,Id,EnquiryTBL,Name,EnquiryTBL,Mobile,EnquiryTBL,Email,EnquiryTBL,Company,eventdetailsform,id,eventdetailsform,Name,eventdetailsform,Contact,eventdetailsform,Email,NewsSettlerDetails,Id,NewsSettlerDetails,NewsSettlerDetails,nsEmailTrackingItems,Id,nsEmailTrackingItems,NewsletterId,nsEmailTrackingItems,SubscriberId,nsEmailTrackingItems,Status,nsEmailTrackingItems,Name,nsEmailTrackingItems,Email,nsEmailTrackingItems,Error,nsEmailTrackingItems,SendDate,nsEmailTrackingItems,CreateDate,nsEmailTrackingItems,SubscriptionAlias,nsEmailTrackingItems,CustomData,nsNewsletters,Id,nsNewsletters,MessageBody,nsNewsletters,Name,nsNewsletters,EmailSubject,nsNewsletters,SubscriptionAlias,nsNewsletters,CreatedDate,nsNewsletters,SentDate,nsNewsletters,ScheduledSendDate,nsNewsletters,Status,nsNewsletters,EmailFrom,nsNewsletters,SenderName,nsNewsletters,SkinAlias,nsNewsletters,CreatedByUserId,nsNewsletters,ErrorMessage,nsNewsletters,ContentNodeId,nsNewsletters,Initialized,nsSubscribers,Id,nsSubscribers,Name,nsSubscribers,Email,nsSubscribers,SubscribeDate,nsSubscribers,SubscriptionId,nsSubscribers,Status,nsSubscribers,ErrorCount,nsSubscriptions,Id,nsSubscriptions,Name,nsTrackingItems,Id,nsTrackingItems,Email,nsTrackingItems,TrackingType,nsTrackingItems,NewsletterId,nsTrackingItems,CreatedDate,nsTrackingItems,Url,umbracoDomains,id,umbracoDomains,domainDefaultLanguage,umbracoDomains,domainRootStructureID,umbracoDomains,domainName,umbracoMigration,id,umbracoMigration,name,umbracoMigration,createDate,umbracoMigration,version,WorkflowSettings,Id,WorkflowSettings,DefaultApprover,WorkflowSettings,Email,WorkflowSettings,EditUrl,WorkflowSettings,SiteUrl,WorkflowSettings,FlowType,WorkflowSettings,SendNotifications,WorkflowSettings,ExcludeNodes,WorkflowSettings,LockIfActive,WorkflowUserGroups,GroupId,WorkflowUserGroups,Description,WorkflowUserGroups,Name,WorkflowUserGroups,Alias,WorkflowUserGroups,GroupEmail,WorkflowUserGroups,OfflineApproval,WorkflowUserGroups,Deleted,WorkflowUser2UserGroup,Id,WorkflowUser2UserGroup,UserId,WorkflowUser2UserGroup,GroupId,UFRecords,Id,UFRecords,Form,UFRecords,Created,UFRecords,Updated,UFRecords,CurrentPage,UFRecords,UmbracoPageId,UFRecords,IP,UFRecords,MemberKey,UFRecords,UniqueId,UFRecords,State,UFRecords,RecordData,WorkflowUserGroupPermissions,Id,WorkflowUserGroupPermissions,GroupId,WorkflowUserGroupPermissions,NodeId,WorkflowUserGroupPermissions,ContentTypeId,WorkflowUserGroupPermissions,Permission,WorkflowUserGroupPermissions,Condition,UFRecordFields,Key,UFRecordFields,FieldId,UFRecordFields,Record,UFRecordFields,Alias,UFRecordFields,DataType,WorkflowInstance,Id,WorkflowInstance,Guid,WorkflowInstance,NodeId,WorkflowInstance,Type,WorkflowInstance,TotalSteps,WorkflowInstance,AuthorUserId,WorkflowInstance,Status,WorkflowInstance,CreatedDate,WorkflowInstance,CompletedDate,WorkflowInstance,AuthorComment,UFRecordDataString,Id,UFRecordDataString,Key,UFRecordDataString,Value,WorkflowTaskInstance,Id,WorkflowTaskInstance,Type,WorkflowTaskInstance,ApprovalStep,WorkflowTaskInstance,WorkflowInstanceGuid,WorkflowTaskInstance,GroupId,WorkflowTaskInstance,CreatedDate,WorkflowTaskInstance,Status,WorkflowTaskInstance,Comment,WorkflowTaskInstance,CompletedDate,WorkflowTaskInstance,ActionedByUserId,WorkflowTaskInstance,ActionedByAdmin,UFRecordDataLongString,Id,UFRecordDataLongString,Key,UFRecordDataLongString,Value,UFRecordDataInteger,Id,UFRecordDataInteger,Key,UFRecordDataInteger,Value,UFRecordDataBit,Id,UFRecordDataBit,Key,UFRecordDataBit,Value,ContactDetails,id,ContactDetails,Name,ContactDetails,Nationality,ContactDetails,Email,ContactDetails,Address,ContactDetails,Contact,ContactDetails,CustomerService,ContactDetails,Directionalsigns,ContactDetails,Cleanlinessofmal,ContactDetails,RetailOptions,ContactDetails,FoodBeverageOptions,ContactDetails,ParkingFacility,ContactDetails,Remark,cmsContentType,isElement,cmsContentType,variations,umbracoContent,nodeId,umbracoContent,contentTypeId,umbracoContentVersion,id,umbracoContentVersion,nodeId,umbracoContentVersion,versionDate,umbracoContentVersion,userId,umbracoContentVersion,current,umbracoContentVersion,text,umbracoMediaVersion,id,umbracoMediaVersion,path,umbracoDocument,nodeId,umbracoDocument,published,umbracoDocument,edited,umbracoDataType,nodeId,umbracoDataType,propertyEditorAlias,umbracoDataType,dbType,umbracoDataType,config,umbracoLanguage,isDefaultVariantLang,umbracoLanguage,mandatory,umbracoLanguage,fallbackLanguageId,umbracoDomain,id,umbracoDomain,domainDefaultLanguage,umbracoDomain,domainRootStructureID,umbracoDomain,domainName,umbracoLog,entityType,umbracoLog,parameters,cmsMacro,macroSource,cmsMacro,macroType,cmsPropertyType,variations,umbracoPropertyData,id,umbracoPropertyData,versionId,umbracoPropertyData,propertyTypeId,umbracoPropertyData,languageId,umbracoPropertyData,segment,umbracoPropertyData,intValue,umbracoPropertyData,decimalValue,umbracoPropertyData,dateValue,umbracoPropertyData,varcharValue,umbracoPropertyData,textValue,cmsTags,languageId,umbracoRedirectUrl,culture,cmsContentNu,nodeId,cmsContentNu,published,cmsContentNu,data,cmsContentNu,rv,umbracoDocumentVersion,id,umbracoDocumentVersion,templateId,umbracoDocumentVersion,published,umbracoKeyValue,key,umbracoKeyValue,value,umbracoKeyValue,updated,umbracoContentVersionCultureVariation,id,umbracoContentVersionCultureVariation,versionId,umbracoContentVersionCultureVariation,languageId,umbracoContentVersionCultureVariation,name,umbracoContentVersionCultureVariation,date,umbracoContentVersionCultureVariation,availableUserId,umbracoDocumentCultureVariation,id,umbracoDocumentCultureVariation,nodeId,umbracoDocumentCultureVariation,languageId,umbracoDocumentCultureVariation,edited,umbracoDocumentCultureVariation,available,umbracoDocumentCultureVariation,published,umbracoDocumentCultureVariation,name,umbracoContentSchedule,id,umbracoContentSchedule,nodeId,umbracoContentSchedule,languageId,umbracoContentSchedule,date,umbracoContentSchedule,action\r\n \r\nThe following constraints (Primary Keys, Foreign Keys and Indexes) were found in the database, but are not in the current schema:\r\nFKcmsContentcmsContentTypenodeId,FKcmsContentumbracoNodeid,FKcmsContentVersioncmsContentnodeId,FKcmsContentXmlcmsContentnodeId,FKcmsDataTypeumbracoNodeid,FKcmsDataTypePreValuescmsDataTypenodeId,FKcmsDocumentcmsContentnodeId,FKcmsDocumentumbracoNodeid,FKcmsMediacmsContentnodeId,FKcmsMediaumbracoNodeid,FKcmsMembercmsContentnodeId,FKcmsMemberumbracoNodeid,FKcmsPreviewXmlcmsContentnodeId,FKcmsPropertyDatacmsPropertyTypeid,FKcmsPropertyDataumbracoNodeid,FKcmsTagscmsTags,FKcmsTaskcmsTaskTypeid,FKcmsTaskumbracoNodeid,FKcmsTaskumbracoUser,FKcmsTaskumbracoUser1,FKEmailTrackingItemNewsletter1,FKSubscribeListSubscriber1,FKUFRecordDataBitUFRecordFieldsKey,FKUFRecordDataDateTimeUFRecordFieldsKey,FKUFRecordDataIntegerUFRecordFieldsKey,FKUFRecordDataLongStringUFRecordFieldsKey,FKUFRecordDataStringUFRecordFieldsKey,FKumbracoDomainsumbracoNodeid,FKumbracoNodeumbracoUserid,FKumbracoContentumbracoNodeid,FKumbracoContentcmsContentTypeNodeId,FKumbracoContentVersionumbracoContentnodeId,FKumbracoContentVersionumbracoUserid,FKumbracoMediaVersionumbracoContentVersionid,FKumbracoDocumentumbracoContentnodeId,FKcmsDocumentTypecmsTemplatenodeId,FKumbracoDataTypeumbracoNodeid,FKumbracoLanguageumbracoLanguageid,FKumbracoDomainumbracoNodeid,FKumbracoLogumbracoUserid,FKcmsMemberumbracoContentnodeId,FKcmsPropertyTypeumbracoDataTypenodeId,FKumbracoPropertyDataumbracoContentVersionid,FKumbracoPropertyDatacmsPropertyTypeid,FKumbracoPropertyDataumbracoLanguageid,FKcmsTagsumbracoLanguageid,FKcmsContentNuumbracoContentnodeId,FKumbracoDocumentVersionumbracoContentVersionid,FKumbracoDocumentVersioncmsTemplatenodeId,FKumbracoContentVersionCultureVariationumbracoContentVersionid,FKumbracoContentVersionCultureVariationumbracoLanguageid,FKumbracoContentVersionCultureVariationumbracoUserid,FKumbracoDocumentCultureVariationumbracoNodeid,FKumbracoDocumentCultureVariationumbracoLanguageid,FKumbracoContentScheduleumbracoContentnodeId,FKumbracoContentScheduleumbracoLanguageid,PKBlogNewsLetterEmail,PKcmsContent,PKcmsContentPreviewXml,PKcmsContentVersion,PKcmsContentXml,PKcmsDataType,PKcmsDataTypePreValues,PKcmsDocument,PKcmsMedia,PKcmsPropertyData,PKcmsTask,PKcmsTaskType,PKContactDetails,PKEmailTrackingItems,PKEnquiryTBL,PKNewsletters,PKstructure,PKSubscribers,PKSubscriptions,PKTrackingItems,PKTranslateJobNodes,PKTranslateJobs,PKTranslateNodes,PKTranslateProperties,PKTranslateSets,PKTranslatorUsers,PKUFRecordDataBit,PKUFRecordDataDateTime,PKUFRecordDataInteger,PKUFRecordDataLongString,PKUFRecordDataString,PKUFRecordFields,PKUFRecords,PKumbracoDomains,PKumbracoMigration,PKWorkflowInstance,PKWorkflowSettings,PKWorkflowTaskInstance,PKWorkflowUser2UserGroup,PKWorkflowUserGroupPermissions,PKWorkflowUserGroups,PKumbracoNode,PKumbracoContent,PKumbracoContentVersion,PKumbracoMediaVersion,PKumbracoDocument,PKumbracoDataType,PKumbracoDomain,PKumbracoPropertyData,PKcmsContentNu,PKumbracoDocumentVersion,PKumbracoKeyValue,PKumbracoContentVersionCultureVariation,PKumbracoDocumentCultureVariation,PKumbracoContentSchedule\r\n \r\nThe following indexes were found in the database, but are not in the current schema:\r\nIXcmsContent,IXcmsContentVersionContentId,IXcmsContentVersionVersionId,IXcmsDataTypenodeId,IXcmsDocument,IXcmsDocumentnewest,IXcmsDocumentpublished,IXcmsMedia,IXcmsPropertyData1,IXcmsPropertyData2,IXcmsPropertyData3,IXcmsTaskTypealias,NCIEmailTrackingItemsEmail,NCIEmailTrackingItemsNewsletterId1,NCINewslettersContentNodeId,NCINewslettersStatus,NCITrackingItemsEmail1,NCITrackingItemsNewsletterId1,IXTranslateJobNodesNodes,IXTranslateJobNodesPairs,IXTranslateNodeskey,IXpropertyNodeKey,IXTranslateSetskey,IXdatabitrecordfield,IXdatadatetimerecordfield,IXdataintegerrecordfield,IXdatalongstringrecordfield,IXdatastringrecordfield,IXumbracoMigration,IXumbracoNodeObjectType,IXumbracoNodeParentId,IXumbracoNodePath,IXumbracoNodeTrashed,IXumbracoNodeUniqueID,IXumbracoNodeUniqueId,IXumbracoNodeParentId,IXumbracoNodePath,IXumbracoNodeTrashed,IXumbracoNodeObjectType,IXumbracoMediaVersion,IXumbracoDocumentPublished,IXumbracoLanguagefallbackLanguageId,IXumbracoPropertyDataVersionId,IXumbracoPropertyDataPropertyTypeId,IXumbracoPropertyDataLanguageId,IXumbracoPropertyDataSegment,IXcmsTagsLanguageId,IXumbracoUserLoginlastValidatedUtc,IXumbracoContentVersionCultureVariationVersionId,IXumbracoContentVersionCultureVariationLanguageId,IXumbracoDocumentCultureVariationNodeId,IXumbracoDocumentCultureVariationLanguageId\r\n \r\nThe following unknown constraints (Primary Keys, Foreign Keys and Indexes) were found in the database, but are not in the current schema:\r\nId\r\n \r\n","SourceContext":"Umbraco.Core.Migrations.Install.DatabaseBuilder","ProcessId":4324,"ProcessName":"iisexpress","ThreadId":63,"AppDomainId":4,"AppDomainAppId":"LMW3SVC2ROOT","MachineName":"DESKTOP-NCFRDII","Log4NetLevel":"INFO ","HttpRequestNumber":9,"HttpRequestId":"21c1503a-98ce-451a-a2b7-86d10aa8f2a1"} {"@t":"2021-02-05T11:41:30.0634495Z","@mt":"Installation step {Step} failed.","@l":"Error","@x":"System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> Umbraco.Web.Install.InstallException: The database failed to upgrade. ERROR: The database configuration failed with the following message: Object reference not set to an instance of an object.\n Please check log file for additional information (can be found in '/AppData/Logs/')\r\n at Umbraco.Web.Install.InstallSteps.DatabaseUpgradeStep.ExecuteAsync(Object model)\r\n --- End of inner exception stack trace ---\r\n at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)\r\n at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)\r\n at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)\r\n at Umbraco.Web.Install.Controllers.InstallApiController.Data/Logs/')\r\n at Umbraco.Web.Install.InstallSteps.DatabaseUpgradeStep.ExecuteAsync(Object model)\r\n --- End of inner exception stack trace ---\r\n at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)\r\n at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)\r\n at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)\r\n at Umbraco.Web.Install.Controllers.InstallApiController.

  • Marc Goodson 2155 posts 14408 karma points MVP 9x c-trib
    Feb 06, 2021 @ 11:40
    Marc Goodson
    0

    Hi Kiran

    Looking at your stack trace the error appears to be thrown here in the ConvertRelatedLinksToMultiUrlPicker migration step

    https://github.com/umbraco/Umbraco-CMS/blob/34e80d86e8c0b754f6b7a02e307f53cb32806bbe/src/Umbraco.Core/Migrations/Upgrade/V80_0/ConvertRelatedLinksToMultiUrlPicker.cs#L18

    if you look at the code that is run when Migrate() is called:

     var sqlDataTypes = Sql()
                    .Select<DataTypeDto>()
                    .From<DataTypeDto>()
                    .Where<DataTypeDto>(x => x.EditorAlias == Constants.PropertyEditors.Legacy.Aliases.RelatedLinks
                                             || x.EditorAlias == Constants.PropertyEditors.Legacy.Aliases.RelatedLinks2);
    
                var dataTypes = Database.Fetch<DataTypeDto>(sqlDataTypes);
                var dataTypeIds = dataTypes.Select(x => x.NodeId).ToList();
    

    It's querying the database for the two core Property Editors: RelatedLinks and RelatedLinks2 - and pulling back all the DataTypes that use those two property editors.

    And then from all those retrieved DataTypes, it's calling .Select to get a list of all the DataTypeIds

    So my guess here is the 'Object reference not set to an instance of an object' might be thrown if the dataTypes variable is a Null object, and 'that might be the case' if the site you are trying to migrate has had its default RelatedLinks or RelatedLinks2 Data Type configurations deleted?

    So I guess what might rule this out, is checking your V7 backoffice to see if there are any RelatedLinks Data Types setup?

    and perhaps create a new DataType based on RelatedLinks or RelatedLinks2 in your V7 site, and try the migration again (with your fingers crossed!)

    regards

    marc

Please Sign in or register to post replies

Write your reply to:

Draft