Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Remove orphaned user-related data error
#1
Hello,

I tried the new Remove orphaned user-related data cleanup in the data optimizer tool but it results in an error.
i checked the rocket logs, but no specific info is logged why this is happening.
how can i check what's going wrong?

   
Reply
#2
Any log entries in ErrorLog?
Regards/Gruss
Oliver
Reply
#3
(03-11-2026, 11:28 AM)DevOma Wrote: Any log entries in ErrorLog?

no nothing
Reply
#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
#5
Fixed with Longer timeout and dont abort the run when single orphaned user deletion fails - will provide beta tomorrow

Need to optimize for increase of layout Size later.
Thank You,
Pavan
Reply
#6
thanks, indeed the increased layout size could affect long term rocket users (even users that were still using it when it was named visionapp).
i hope this improves the startup time for rocket.
Reply
#7
Please find the below beta link and let us know whether it works.

https://rrddownloads.rocketsoftware.com/..._Setup.zip
Thank You,
Pavan
Reply




Users browsing this thread: 3 Guest(s)