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 :
Microsoft Dynamics CRM (Archived)

TIME OUT ERROR IN CRM 4.0 TO CRM 2011 UPGRADE

(0) ShareShare
ReportReport
Posted on by

KINDLY ASSIST, I have been on a CRM 4.0 to CRM 2011 for almost a month now, after several challenges that I have overcome, below is the last error I had today. all I can see from the segment of this log is Time out Error;


Below is the segment of the log. The size of the DB is almost 300GB and asynchronous delete is taking almost 5days even after optimization. Please if this log is solved is there away to resume this upgrade without starting all over?


|Anyone with urgent solution will be appreciated


06:03:31|Verbose| Inserted 542 users into OwnerBase table.
06:03:31|Verbose| Inserted 4 teams into OwnerBase table.
06:03:31|Verbose| DatabaseAction execution time; Bin\Microsoft.Crm.DataUpgrade.dll:UpgradeUserOwnedEntities; 00:38:16.4858962
06:03:31|   Info| Adding OwningTeam attribute to custom user owned entities
06:03:31|Verbose| Upgrading schema for 1 custom entities.
06:03:31|Verbose| Upgrading schema for custom entity 'new_title'.
06:03:31|Verbose| Retrieved 1 'owneridtype' attributes for entity new_title.
06:03:31|Verbose| Call metadataHelper.ProcessQueue().
06:03:31|Verbose| Call metadataHelperLogicalContext.ProcessQueue().
06:03:34|Verbose| CreateDisplayNames() for 1 attributes. displayString is 'OwningTeamDisplayName'
06:03:36|Verbose| CreateDescriptions() for 1 attributes. displayString is 'OwningTeamAttributeDescription'
06:03:37|Verbose| DatabaseAction execution time; Bin\Microsoft.Crm.DataUpgrade.dll:AddOwningTeamAttributes; 00:00:06.0503125
06:03:37|   Info| Upgrading Personal Queue
06:03:37|Verbose| Upgrading Personal Queues.
06:07:58|Verbose| Processed 585472 rows in Wip Queues.
06:07:58|Verbose| Changed names of 540 rows in Private Queues.
06:07:58|Verbose| Set 540 rows of Private Queues as default queues.
06:07:58|Verbose| Set OwningBusinessUnit and OwnerId for 1093 rows.
06:07:58|Verbose| DatabaseAction execution time; Bin\Microsoft.Crm.DataUpgrade.dll:PersonalQueueUpgrade; 00:04:21.5823179
06:07:58|   Info|
            Updating Business Unit
       
06:07:58|Verbose| Set OwningBusinessUnit from the ownerid
06:07:58|Verbose| DatabaseAction execution time; Bin\Microsoft.Crm.DataUpgrade.dll:UpdateBusinessUnit; 00:00:00.0739880
06:07:58|   Info| Copy customerid values from temp tables to base tables
06:07:58|Verbose| Populating 13 Customer attributes.
06:07:58|Verbose| Copied data from OpportunityCustomerIdAndType to OpportunityBase
06:07:58|Verbose| Copied data from ContractCustomerIdAndType to ContractBase
06:08:00|Verbose| Copied data from IncidentCustomerIdAndType to IncidentBase
06:08:47|Verbose| Copied data from ContactCustomerIdAndType to ContactBase
06:08:47|Verbose| Copied data from InvoiceCustomerIdAndType to InvoiceBase
06:08:47|Verbose| Copied data from QuoteCustomerIdAndType to QuoteBase
06:08:48|Verbose| Copied data from ContractCustomerIdAndType to ContractBase
06:08:48|Verbose| Copied data from LeadCustomerIdAndType to LeadBase
06:08:48|Verbose| Copied data from SalesOrderCustomerIdAndType to SalesOrderBase
06:08:48|Verbose| Copied data from ContractDetailCustomerIdAndType to ContractDetailBase
06:08:48|Verbose| Dropped table 'OpportunityCustomerIdAndType'
06:08:48|Verbose| Dropped table 'ContractCustomerIdAndType'
06:08:48|Verbose| Dropped table 'IncidentCustomerIdAndType'
06:08:48|Verbose| Dropped table 'ContactCustomerIdAndType'
06:08:48|Verbose| Dropped table 'InvoiceCustomerIdAndType'
06:08:48|Verbose| Dropped table 'QuoteCustomerIdAndType'
06:08:48|Verbose| Dropped table 'LeadCustomerIdAndType'
06:08:48|Verbose| Dropped table 'SalesOrderCustomerIdAndType'
06:08:48|Verbose| Dropped table 'ContractDetailCustomerIdAndType'
06:09:14|Verbose| DatabaseAction execution time; Bin\Microsoft.Crm.DataUpgrade.dll:CopyAndDeleteCustomerIdTables; 00:01:15.5768353
06:09:14|   Info|
        Handle Attachment Upgrade after Pass 1
     
06:09:14|Verbose| Find if the ActivityMimeAttachment_{6340de00-f1f4-4dc1-9aab-a202e8566390} table already exists
06:09:14|Verbose| ActivityMimeAttachment_{6340de00-f1f4-4dc1-9aab-a202e8566390} table exists.
06:09:14|Verbose| Delete Attachment table
06:09:14|Verbose| DeleteAttachmentTable()
06:09:14|Verbose| Create a new Column called AttachmentId defaulting to a new Guid()
06:09:28|Verbose| Drop the constraint DF_ActivityMimeAttachment_AttachmentId
06:09:28|Verbose| Move data from table ActivityMimeAttachment_{6340de00-f1f4-4dc1-9aab-a202e8566390} to ActivityMimeAttachment
06:09:31|Verbose| Drop the following columns from ActivityMimeAttachment_{6340de00-f1f4-4dc1-9aab-a202e8566390}:ActivityId, AttachmentNumber.
      Modify the type of column body to Varchar(max)
07:09:37|Verbose| Exception in AttachmentUpgradeDriver ProcessSqlCommand() method. SqlStatement:
if Exists(select * from sys.columns where Name = N'Body'  
   and Object_ID = Object_ID(N'ActivityMimeAttachment_{6340de00-f1f4-4dc1-9aab-a202e8566390}'))
alter table [ActivityMimeAttachment_{6340de00-f1f4-4dc1-9aab-a202e8566390}]
alter column [Body] Varchar(max)

if Exists(select * from sys.columns where Name = N'AttachmentNumber'  
   and Object_ID = Object_ID(N'ActivityMimeAttachment_{6340de00-f1f4-4dc1-9aab-a202e8566390}'))
alter table [ActivityMimeAttachment_{6340de00-f1f4-4dc1-9aab-a202e8566390}]
drop column AttachmentNumber

if Exists(select * from sys.columns where Name = N'ActivityId'  
   and Object_ID = Object_ID(N'ActivityMimeAttachment_{6340de00-f1f4-4dc1-9aab-a202e8566390}'))
alter table [ActivityMimeAttachment_{6340de00-f1f4-4dc1-9aab-a202e8566390}]
drop column ActivityId

if Exists(select * from sys.columns where Name = N'ActivityMimeAttachmentId'  
   and Object_ID = Object_ID(N'ActivityMimeAttachment_{6340de00-f1f4-4dc1-9aab-a202e8566390}'))
alter table [ActivityMimeAttachment_{6340de00-f1f4-4dc1-9aab-a202e8566390}]
drop column ActivityMimeAttachmentId Message= Timeout expired.  The timeout period elapsed prior to completion of the operation or the server is not responding.
07:09:37|   Info| CrmAction execution time; UpgradeDatabaseAction; 3.10:31:39.9277405
07:09:37|  Error| Installer Complete: OrganizationUpgrader - Error encountered
07:09:37|  Error| Exception occured during Microsoft.Crm.Tools.Admin.OrganizationUpgrader: Action Microsoft.Crm.Tools.Admin.UpgradeDatabaseAction failed.
InnerException:
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Data.SqlClient.SqlException: Timeout expired.  The timeout period elapsed prior to completion of the operation or the server is not responding. ---> System.ComponentModel.Win32Exception: The wait operation timed out
   --- End of inner exception stack trace ---
   at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
   at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
   at System.Data.SqlClient.TdsParserStateObject.ReadSniError(TdsParserStateObject stateObj, UInt32 error)
   at System.Data.SqlClient.TdsParserStateObject.ReadSniSyncOverAsync()
   at System.Data.SqlClient.TdsParserStateObject.TryReadNetworkPacket()
   at System.Data.SqlClient.TdsParserStateObject.TryPrepareBuffer()
   at System.Data.SqlClient.TdsParserStateObject.TryReadByte(Byte& value)
   at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
   at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
   at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
   at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
   at Microsoft.Crm.DataUpgrade.AttachmentUpgradeDriver.ProcessSqlCommand(String sqlStatement)
   at Microsoft.Crm.DataUpgrade.AttachmentUpgradeDriver.HandleAttachmentUpgradeAfterPass1()
   --- 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)
   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.Install(Int32 languageCode, String configurationFilePath, Boolean upgradeDatabase)
   at Microsoft.Crm.Tools.Admin.InstallDatabaseAction.Do(IDictionary parameters)
   at Microsoft.Crm.Setup.Common.CrmAction.ExecuteAction(CrmAction action, IDictionary parameters, Boolean undo)
InnerException:
System.Data.SqlClient.SqlException (0x80131904): Timeout expired.  The timeout period elapsed prior to completion of the operation or the server is not responding. ---> System.ComponentModel.Win32Exception (0x80004005): The wait operation timed out
   at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
   at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
   at System.Data.SqlClient.TdsParserStateObject.ReadSniError(TdsParserStateObject stateObj, UInt32 error)
   at System.Data.SqlClient.TdsParserStateObject.ReadSniSyncOverAsync()
   at System.Data.SqlClient.TdsParserStateObject.TryReadNetworkPacket()
   at System.Data.SqlClient.TdsParserStateObject.TryPrepareBuffer()
   at System.Data.SqlClient.TdsParserStateObject.TryReadByte(Byte& value)
   at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
   at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
   at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
   at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
   at Microsoft.Crm.DataUpgrade.AttachmentUpgradeDriver.ProcessSqlCommand(String sqlStatement)
   at Microsoft.Crm.DataUpgrade.AttachmentUpgradeDriver.HandleAttachmentUpgradeAfterPass1()
ClientConnectionId:469e14ff-9ec8-4225-b949-c708db75dd22
InnerException:
System.ComponentModel.Win32Exception (0x80004005): The wait operation timed out

07:09:37|   Info| Setting organization state.  New state = Failed
07:09:37|  Error| Upgrade Organization with Id=6ab9589a-1b4b-4a1c-b26b-5afcd94bb344 failed with Exception:
System.Exception: Action Microsoft.Crm.Tools.Admin.UpgradeDatabaseAction failed. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Data.SqlClient.SqlException: Timeout expired.  The timeout period elapsed prior to completion of the operation or the server is not responding. ---> System.ComponentModel.Win32Exception: The wait operation timed out
   --- End of inner exception stack trace ---
   at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
   at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
   at System.Data.SqlClient.TdsParserStateObject.ReadSniError(TdsParserStateObject stateObj, UInt32 error)
   at System.Data.SqlClient.TdsParserStateObject.ReadSniSyncOverAsync()
   at System.Data.SqlClient.TdsParserStateObject.TryReadNetworkPacket()
   at System.Data.SqlClient.TdsParserStateObject.TryPrepareBuffer()
   at System.Data.SqlClient.TdsParserStateObject.TryReadByte(Byte& value)
   at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
   at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
   at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
   at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
   at Microsoft.Crm.DataUpgrade.AttachmentUpgradeDriver.ProcessSqlCommand(String sqlStatement)
   at Microsoft.Crm.DataUpgrade.AttachmentUpgradeDriver.HandleAttachmentUpgradeAfterPass1()
   --- 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)
   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.Install(Int32 languageCode, String configurationFilePath, Boolean upgradeDatabase)
   at Microsoft.Crm.Tools.Admin.InstallDatabaseAction.Do(IDictionary parameters)
   at Microsoft.Crm.Setup.Common.CrmAction.ExecuteAction(CrmAction action, IDictionary parameters, Boolean undo)
   --- End of inner exception stack trace ---
   at Microsoft.Crm.Setup.Common.CrmAction.ExecuteAction(CrmAction action, IDictionary parameters, Boolean undo)
   at Microsoft.Crm.Setup.Common.Installer.Install(IDictionary stateSaver)
   at Microsoft.Crm.Tools.Admin.OrganizationOperation.Install(IDictionary stateSaver)
   at Microsoft.Crm.Tools.Admin.OrganizationUpgrader.Install(IDictionary stateSaver)
   at Microsoft.Crm.Tools.Admin.OrganizationOperation.Execute()
   at Microsoft.Crm.Tools.Admin.ImportOrganizationInstaller.ImportAndUpgrade(OrganizationInfo organizationInfo)
07:09:37|  Error| An error occurred when trying import and upgrade organization database SV001MCRM05.ZenithBankBU_MSCRM:
Microsoft.Crm.CrmException: Upgrade Organization with Id=6ab9589a-1b4b-4a1c-b26b-5afcd94bb344 failed with Exception:
System.Exception: Action Microsoft.Crm.Tools.Admin.UpgradeDatabaseAction failed. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Data.SqlClient.SqlException: Timeout expired.  The timeout period elapsed prior to completion of the operation or the server is not responding. ---> System.ComponentModel.Win32Exception: The wait operation timed out
   --- End of inner exception stack trace ---
   at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
   at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
   at System.Data.SqlClient.TdsParserStateObject.ReadSniError(TdsParserStateObject stateObj, UInt32 error)
   at System.Data.SqlClient.TdsParserStateObject.ReadSniSyncOverAsync()
   at System.Data.SqlClient.TdsParserStateObject.TryReadNetworkPacket()
   at System.Data.SqlClient.TdsParserStateObject.TryPrepareBuffer()
   at System.Data.SqlClient.TdsParserStateObject.TryReadByte(Byte& value)
   at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
   at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
   at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
   at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
   at Microsoft.Crm.DataUpgrade.AttachmentUpgradeDriver.ProcessSqlCommand(String sqlStatement)
   at Microsoft.Crm.DataUpgrade.AttachmentUpgradeDriver.HandleAttachmentUpgradeAfterPass1()
   --- 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)
   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.Install(Int32 languageCode, String configurationFilePath, Boolean upgradeDatabase)
   at Microsoft.Crm.Tools.Admin.InstallDatabaseAction.Do(IDictionary parameters)
   at Microsoft.Crm.Setup.Common.CrmAction.ExecuteAction(CrmAction action, IDictionary parameters, Boolean undo)
   --- End of inner exception stack trace ---
   at Microsoft.Crm.Setup.Common.CrmAction.ExecuteAction(CrmAction action, IDictionary parameters, Boolean undo)
   at Microsoft.Crm.Setup.Common.Installer.Install(IDictionary stateSaver)
   at Microsoft.Crm.Tools.Admin.OrganizationOperation.Install(IDictionary stateSaver)
   at Microsoft.Crm.Tools.Admin.OrganizationUpgrader.Install(IDictionary stateSaver)
   at Microsoft.Crm.Tools.Admin.OrganizationOperation.Execute()
   at Microsoft.Crm.Tools.Admin.ImportOrganizationInstaller.ImportAndUpgrade(OrganizationInfo organizationInfo) ---> System.Exception: Action Microsoft.Crm.Tools.Admin.UpgradeDatabaseAction failed. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Data.SqlClient.SqlException: Timeout expired.  The timeout period elapsed prior to completion of the operation or the server is not responding. ---> System.ComponentModel.Win32Exception: The wait operation timed out
   --- End of inner exception stack trace ---
   at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
   at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
   at System.Data.SqlClient.TdsParserStateObject.ReadSniError(TdsParserStateObject stateObj, UInt32 error)
   at System.Data.SqlClient.TdsParserStateObject.ReadSniSyncOverAsync()
   at System.Data.SqlClient.TdsParserStateObject.TryReadNetworkPacket()
   at System.Data.SqlClient.TdsParserStateObject.TryPrepareBuffer()
   at System.Data.SqlClient.TdsParserStateObject.TryReadByte(Byte& value)
   at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
   at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
   at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
   at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
   at Microsoft.Crm.DataUpgrade.AttachmentUpgradeDriver.ProcessSqlCommand(String sqlStatement)
   at Microsoft.Crm.DataUpgrade.AttachmentUpgradeDriver.HandleAttachmentUpgradeAfterPass1()
   --- 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)
   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.Install(Int32 languageCode, String configurationFilePath, Boolean upgradeDatabase)
   at Microsoft.Crm.Tools.Admin.InstallDatabaseAction.Do(IDictionary parameters)
   at Microsoft.Crm.Setup.Common.CrmAction.ExecuteAction(CrmAction action, IDictionary parameters, Boolean undo)
   --- End of inner exception stack trace ---
   at Microsoft.Crm.Setup.Common.CrmAction.ExecuteAction(CrmAction action, IDictionary parameters, Boolean undo)
   at Microsoft.Crm.Setup.Common.Installer.Install(IDictionary stateSaver)
   at Microsoft.Crm.Tools.Admin.OrganizationOperation.Install(IDictionary stateSaver)
   at Microsoft.Crm.Tools.Admin.OrganizationUpgrader.Install(IDictionary stateSaver)
   at Microsoft.Crm.Tools.Admin.OrganizationOperation.Execute()
   at Microsoft.Crm.Tools.Admin.ImportOrganizationInstaller.ImportAndUpgrade(OrganizationInfo organizationInfo)
   --- End of inner exception stack trace ---
   at Microsoft.Crm.Tools.Admin.ImportOrganizationInstaller.ImportAndUpgrade(OrganizationInfo organizationInfo)
07:09:37|  Error| Import Organization (Name=ZenithBankBU, Id=6ab9589a-1b4b-4a1c-b26b-5afcd94bb344) failed with Exception:
Microsoft.Crm.CrmException: Upgrade Organization with Id=6ab9589a-1b4b-4a1c-b26b-5afcd94bb344 failed with Exception:
System.Exception: Action Microsoft.Crm.Tools.Admin.UpgradeDatabaseAction failed. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Data.SqlClient.SqlException: Timeout expired.  The timeout period elapsed prior to completion of the operation or the server is not responding. ---> System.ComponentModel.Win32Exception: The wait operation timed out
   --- End of inner exception stack trace ---
   at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
   at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
   at System.Data.SqlClient.TdsParserStateObject.ReadSniError(TdsParserStateObject stateObj, UInt32 error)
   at System.Data.SqlClient.TdsParserStateObject.ReadSniSyncOverAsync()
   at System.Data.SqlClient.TdsParserStateObject.TryReadNetworkPacket()
   at System.Data.SqlClient.TdsParserStateObject.TryPrepareBuffer()
   at System.Data.SqlClient.TdsParserStateObject.TryReadByte(Byte& value)
   at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
   at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
   at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
   at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
   at Microsoft.Crm.DataUpgrade.AttachmentUpgradeDriver.ProcessSqlCommand(String sqlStatement)
   at Microsoft.Crm.DataUpgrade.AttachmentUpgradeDriver.HandleAttachmentUpgradeAfterPass1()
   --- 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)
   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.Install(Int32 languageCode, String configurationFilePath, Boolean upgradeDatabase)
   at Microsoft.Crm.Tools.Admin.InstallDatabaseAction.Do(IDictionary parameters)
   at Microsoft.Crm.Setup.Common.CrmAction.ExecuteAction(CrmAction action, IDictionary parameters, Boolean undo)
   --- End of inner exception stack trace ---
   at Microsoft.Crm.Setup.Common.CrmAction.ExecuteAction(CrmAction action, IDictionary parameters, Boolean undo)
   at Microsoft.Crm.Setup.Common.Installer.Install(IDictionary stateSaver)
   at Microsoft.Crm.Tools.Admin.OrganizationOperation.Install(IDictionary stateSaver)
   at Microsoft.Crm.Tools.Admin.OrganizationUpgrader.Install(IDictionary stateSaver)
   at Microsoft.Crm.Tools.Admin.OrganizationOperation.Execute()
   at Microsoft.Crm.Tools.Admin.ImportOrganizationInstaller.ImportAndUpgrade(OrganizationInfo organizationInfo) ---> System.Exception: Action Microsoft.Crm.Tools.Admin.UpgradeDatabaseAction failed. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Data.SqlClient.SqlException: Timeout expired.  The timeout period elapsed prior to completion of the operation or the server is not responding. ---> System.ComponentModel.Win32Exception: The wait operation timed out
   --- End of inner exception stack trace ---
   at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
   at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
   at System.Data.SqlClient.TdsParserStateObject.ReadSniError(TdsParserStateObject stateObj, UInt32 error)
   at System.Data.SqlClient.TdsParserStateObject.ReadSniSyncOverAsync()
   at System.Data.SqlClient.TdsParserStateObject.TryReadNetworkPacket()
   at System.Data.SqlClient.TdsParserStateObject.TryPrepareBuffer()
   at System.Data.SqlClient.TdsParserStateObject.TryReadByte(Byte& value)
   at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
   at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
   at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
   at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
   at Microsoft.Crm.DataUpgrade.AttachmentUpgradeDriver.ProcessSqlCommand(String sqlStatement)
   at Microsoft.Crm.DataUpgrade.AttachmentUpgradeDriver.HandleAttachmentUpgradeAfterPass1()
   --- 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)
   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.Install(Int32 languageCode, String configurationFilePath, Boolean upgradeDatabase)
   at Microsoft.Crm.Tools.Admin.InstallDatabaseAction.Do(IDictionary parameters)
   at Microsoft.Crm.Setup.Common.CrmAction.ExecuteAction(CrmAction action, IDictionary parameters, Boolean undo)
   --- End of inner exception stack trace ---
   at Microsoft.Crm.Setup.Common.CrmAction.ExecuteAction(CrmAction action, IDictionary parameters, Boolean undo)
   at Microsoft.Crm.Setup.Common.Installer.Install(IDictionary stateSaver)
   at Microsoft.Crm.Tools.Admin.OrganizationOperation.Install(IDictionary stateSaver)
   at Microsoft.Crm.Tools.Admin.OrganizationUpgrader.Install(IDictionary stateSaver)
   at Microsoft.Crm.Tools.Admin.OrganizationOperation.Execute()
   at Microsoft.Crm.Tools.Admin.ImportOrganizationInstaller.ImportAndUpgrade(OrganizationInfo organizationInfo)
   --- End of inner exception stack trace ---
   at Microsoft.Crm.Tools.Admin.ImportOrganizationInstaller.ImportAndUpgrade(OrganizationInfo organizationInfo)
   at Microsoft.Crm.Tools.Admin.ImportOrganizationInstaller.Execute(Object obj)
07:09:38|   Info| GetDBUpdateRevisionThresholdForServer(): Threshold = 4376.

*This post is locked for comments

I have the same question (0)
  • Community Member Profile Picture
    on at
    RE: TIME OUT ERROR IN CRM 4.0 TO CRM 2011 UPGRADE

    Hi ,

    You can refer

    https://support.microsoft.com/en-us/kb/918609

    Hope this helps you.

    Regards,

    Bilal

    Microsoft Dynamicsâ„¢ CRM Support Engineer

    "Please mark my answer as verified if you found it helpful"

  • Community Member Profile Picture
    on at
    RE: TIME OUT ERROR IN CRM 4.0 TO CRM 2011 UPGRADE

    I am also experiencing the same error while trying to upgrade a 42 GB CRM 4.0 Database into a CRM 2011 Organisation. The process alwas fails at the "ActivityMimeAttachment" stage, probably because the database contains a large amount of Email Attachments.

    I have attempted the method suggested in the linked Knowledge Base article, but as I do not have access to the system registry, I was only able to try the second method (editing the web.config file) with no luck. I have asked our Infrastructure provider to perform the Registry amendments for me, but from what I've read elsewhere on the internet, this may not solve the problem either.

    I have seen another post that suggests removing the Attachments before upgrading the database, but it is the email attachments that is the main reason for performing an Organisation Upgrade, rather than a more traditional data migration, this would completely negate the entire reason for wanting to upgrade anyway.

    We were also sold this Microsoft Product under the pretence that the organisations will be upgradable when new versions of Dynamics CRM become available, but as I am not able to upgrade my 4.0 organisation to Dynamics CRM 2011, I am not sure I wish to comit my company's resources to a system that I won't be able to upgrade to Dynamics CRM 2013, 2015 or 2016.

    Are there any other patchs or solutions that will allow me to successfully upgrade a CRM 4.0 organisation, as was originally promised?

    Thanks

    James.

  • Inogic Profile Picture
    651 on at
    RE: TIME OUT ERROR IN CRM 4.0 TO CRM 2011 UPGRADE

    It seems that this issue may be occurred because you have large attachment.

    Can you please follow below link, it will be more helpful. Also please increase the sql timeout.

    support.microsoft.com/.../918609

    Thanks,

    Sam

  • Community Member Profile Picture
    on at
    RE: TIME OUT ERROR IN CRM 4.0 TO CRM 2011 UPGRADE

    Hi Sam,

    Thank you for your reply.

    Yes, I would agree - I expect that there are probably quite a few very large attachements in this database, most of them vital Architectural Drawings that we absolutely need migrating.

    As I mentioned in my post, I have already read the KB Article you referred to, and tried one of the solutions therein (amending the "web.config" file). I also mentioned that I do not have access to amend the registry, as suggested in the Article.

    Do you know of any other way to increase the TimeOut Settings?

    Thanks again.

    James.

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
HR-09070029-0 Profile Picture

HR-09070029-0 2

#1
UllrSki Profile Picture

UllrSki 2

#3
ED-30091530-0 Profile Picture

ED-30091530-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans