Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Remove orphaned user-related data error
#4
System.InvalidOperationException: Failed to remove orphaned data for user ID b0c1cd00-a14d-40a6-aa11-2273a3de5c33.
---> Microsoft.Data.SqlClient.SqlException (0x80131904): Execution Timeout Expired. The timeout period elapsed prior to completion of the operation or the server is not responding.
Operation cancelled by user.
The statement has been terminated.
---> System.ComponentModel.Win32Exception (258): The wait operation timed out.
at Microsoft.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at Microsoft.Data.SqlClient.Connection.SqlConnectionInternal.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at Microsoft.Data.SqlClient.Parser.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, SqlCommand command, Boolean callerHasConnectionLock, Boolean asyncClose)
at Microsoft.Data.SqlClient.Parser.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at Microsoft.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted)
at Microsoft.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean isAsync, Int32 timeout, Task& task, Boolean asyncWrite, Boolean isRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest)
at Microsoft.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, TaskCompletionSource`1 completion, Int32 timeout, Task& executeTask, Boolean& usedCache, Boolean asyncWrite, Boolean isRetry, String method)
at Microsoft.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at CloudAdminDataAccess.SqlDataAccessor.UserDelete(Guid userId)
at CloudAdminDataAccess.SqlDataAccessor.CloudAdminDataAccess.IDataAccessor.UserDelete(Guid userId)
at CloudAdminCommon.Access.DataAccessor.UserDelete(Guid userId)
at CloudAdminUI.Dialogs.DataOptimizerDialog.DoWorkFixInvalidUserData()
ClientConnectionId:7bb7b4be-75a2-4bf5-8aa4-1faab8e87be9
Error Number:-2,State:0,Class:11
--- End of inner exception stack trace ---
at CloudAdminUI.Dialogs.DataOptimizerDialog.DoWorkFixInvalidUserData()
at CloudAdminUI.Dialogs.DataOptimizerDialog.BackgroundWorkerFix_DoWork(Object sender, DoWorkEventArgs e)
at System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument)n


i had about 4 users that had very large files (xml) in the Database linked to their layout.
Looks like the data optimizer/stored procedure was hanging on these.
deleting them took up to +- 120 seconds via direct query.

file sizes:

3e359b8e-2502-4f0d-be2a-648875fa7bbe (378 MB)
d59ae292-6642-44c8-bfa7-dedb24a4e92f (283 MB)
f3f0eb81-8556-41a1-b340-f026b0b857d7 (226 MB)
5d8915e2-427a-4e72-8010-b9b778f12a52 (225 MB)

Per-user layouts in ItemProperties.Data (DevExpress XtraSerializer, BarManager) range from 37 to 378 MB, against 0.65-0.9 MB for a typical user.
In one active user's layout (2173DA2D, 27 MB decoded), 14,442 ribbon item links, of which 14,332 have ItemId -1 and none has a caption. In addition, there are about 17,000 empty isnull entries.
An 80s delete of a 338 MB layout against the Data Optimizer's 30s command timeout, which made the cleanup fail until it was run manually.
The active users FCA93325 (297 MB) and 2173DA2D (73 MB) are still affected, so the problem will recur.
Reply


Messages In This Thread
Remove orphaned user-related data error - by jefg - 03-11-2026, 10:59 AM
RE: Remove orphaned user-related data error - by jefg - 23-11-2026, 01:01 PM



Users browsing this thread: 3 Guest(s)