web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested Answer

Update and Install All Cumulative upgrade for CRM 2016

(0) ShareShare
ReportReport
Posted on by 2,626

Dear Experts,

I am upgrading CRM 2016 to D365 v8.2. my question is Do i need to install all Cumulative updates or the first last and last will include all updates? Kindly suggest.

Regards,

Vikas Gupta

I have the same question (0)
  • Suggested answer
    saurabhtiwarii Profile Picture
    on at
    RE: Update and Install All Cumulative upgrade for CRM 2016

    Hello Vikas,

    To update 2016 to 8.2, you should just install December 2016 Update for Dynamics 365 from the download link pasted below. 

    December 2016 Update for Dynamics 365

    https://www.microsoft.com/en-US/download/details.aspx?id=54515

    Please mark my comment as answered if this helps. 

    Thanks,

    Saurabh

  • Vikas Gupta Profile Picture
    2,626 on at
    RE: Update and Install All Cumulative upgrade for CRM 2016

    Hi Saurabh,

    Thanks for the advice. i did the same but while update the organization db, this error is coming. any idea.

    09:11:06|   Info| Setting organization state.  New state = Failed

    09:11:06|  Error| Update Organization with Id=6f39753d-93f0-4e4f-b37a-eb76afa02cf6 failed with Exception:

    System.Exception: Error.ActionFailed Microsoft.Crm.Tools.Admin.InstallDatabaseUpdatesAction ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Data.SqlClient.SqlException: Cannot insert duplicate key row in object 'MetadataSchema.Attribute' with unique index 'ndx_Attribute_EntityId_ColumnNumber'. The duplicate key value is (e1bd1119-6e9d-45a4-bc15-12051e65a0bd, 385).

    The statement has been terminated.

      at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)

      at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)

      at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)

      at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted)

      at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest)

      at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry)

      at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry)

      at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()

      at Microsoft.Crm.CrmDbConnection.InternalExecuteWithRetry[TResult](Func`1 ExecuteMethod, IDbCommand command)

      at Microsoft.Crm.CrmDbConnection.InternalExecuteNonQuery(IDbCommand command, Boolean capturePerfTrace)

      at Microsoft.Crm.Platform.MetadataBusinessEntities.DBCommandExecutor.ExecuteNonQuery(IDbCommand command, ISqlExecutionContext context)

      at Microsoft.Crm.Platform.SolutionAwareComponents.MPOUpdateFullComponentInstanceAction.Execute(ISqlExecutionContext sqlContext)

      at Microsoft.Crm.Platform.SolutionAwareComponents.ComponentStateTransition.Execute(Int32 componentType, Guid objectId, Object operationParameter, BusinessComponentState currentState, ISqlExecutionContext context)

      at Microsoft.Crm.Platform.MetadataBusinessEntities.MetadataProcessObject.DoUpdate(MetadataBusinessEntity metadataEntity, ISqlExecutionContext context)

      at Microsoft.Crm.Platform.MetadataBusinessEntities.MetadataProcessObject.Update(MetadataBusinessEntity metadataEntity, ISqlExecutionContext context)

      at Microsoft.Crm.Platform.MetadataBusinessEntities.AttributeService.Update(MetadataBusinessEntity metadataEntity, ISqlExecutionContext context)

      at Microsoft.Crm.Metadata.AttributeUpdateAction.UpdateAttributeTable()

      at Microsoft.Crm.Metadata.AttributeUpdateAction.MetabaseOperation()

      at Microsoft.Crm.Metadata.MetadataHelper.ProcessQueue_metabaseActionsToExecute(CounterList listCounters)

      at Microsoft.Crm.Metadata.MetadataHelper.ProcessQueue()

      at Microsoft.Crm.Setup.MetadataPatchService.ProcessMetadataDiffs(MetadataPatchDiffSet diffSet, Int32 lcid, ExecutionContext context, Boolean processForLanguageProvisioningOnly)

      at Microsoft.Crm.Setup.MetadataPatchService.ProcessDiffSet(MetadataPatchDiffSet diffSet, Int32 lcid, ExecutionContext context)

      at Microsoft.Crm.Setup.MetadataPatchService.ProcessMetadataDiffFile(String targetVersion, ExecutionContext context)

      at Microsoft.Crm.Setup.DiffBuilder.UpdateMetadata(String targetVersion)

      --- 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 System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)

      at Microsoft.Crm.Setup.Database.DllMethodAction.Execute(Guid organizationId, Nullable`1 operationType)

      at Microsoft.Crm.Setup.Database.DatabaseInstaller.ExecuteReleases(ReleaseInfo releaseInfo, Boolean isInstall)

      at Microsoft.Crm.Setup.Database.DatabaseInstaller.Install(Int32 languageCode, String configurationFilePath, Boolean upgradeDatabase, Boolean isInstall)

      at Microsoft.Crm.Setup.Database.DatabaseInstaller.InstallUpdate(String configurationFilePath, Boolean upgradeDatabase)

      at Microsoft.Crm.Setup.Common.Update.DBUpdateDatabaseInstaller.ApplyDBUpdates(Guid orgId, Nullable`1 operationType)

      at Microsoft.Crm.Tools.Admin.InstallDatabaseUpdatesAction.ApplyDBUpdatesInternal(Guid orgId, String orgUniqueName, String releaseFilePath, Boolean ignoreErrors, OrganizationOperationType operationType)

      at Microsoft.Crm.Tools.Admin.InstallDatabaseUpdatesAction.ApplyDBUpdates(Guid orgId, String orgUniqueName, OrganizationOperationType operationType)

      at Microsoft.Crm.Tools.Admin.InstallDatabaseUpdatesAction.Do(IDictionary parameters)

      at Microsoft.Crm.Setup.Shared.CrmAction.ExecuteAction(CrmAction action, IDictionary parameters, Boolean undo)

      --- End of inner exception stack trace ---

      at Microsoft.Crm.Setup.Shared.CrmAction.ExecuteAction(CrmAction action, IDictionary parameters, Boolean undo)

      at Microsoft.Crm.Setup.Shared.Installer.Install(IDictionary stateSaver)

      at Microsoft.Crm.Tools.Admin.OrganizationOperation.Install(IDictionary stateSaver)

      at Microsoft.Crm.Tools.Admin.OrganizationOperation.Execute()

      at Microsoft.Crm.Tools.Admin.OrganizationDatabaseHotFixer.Execute()

      at Microsoft.Crm.Tools.Admin.ApplyDatabaseHotFixInstaller.ApplyDatabaseHotFix(IApplyDatabaseHotFixInfo applyDatabaseHotFixInfo)

    Regards,

    Vikas Gupta

  • Suggested answer
    saurabhtiwarii Profile Picture
    on at
    RE: Update and Install All Cumulative upgrade for CRM 2016

    Hey Vikas,

    Please check this community article which talks about resolving one of the many scenarios of Duplicate Key Row Error ::

    Duplicate Key Row Error during Upgrade to CRM 2013 

    https://community.dynamics.com/crm/b/crmpowerobjects/posts/duplicate-key-row-error-during-upgrade-to-crm-2013

    Please mark my comments as answered of this helps. 

    Thanks,

    Saurabh

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 183 Super User 2025 Season 2

#2
#ManoVerse Profile Picture

#ManoVerse 121

#3
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 61 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans