Question

Issue when deploying designer revisions from server to mobile

  • 1 December 2022
  • 3 replies
  • 95 views

Badge +2

These issues happen when users try to use the new mobile version that was deployed on their mobile device. The mobile changes are made in Designer, published, and deployed to the mobile server. There are no errors or issues we see with the publishing or deployment to the server.  However, when those revision updates being sent to devices from server, below problems occurs.


 All issues below need to be fixed by reinstalling the app from scratch.  

  

1. When the user finishes initializing, sometimes their FSM does not display any jobs, customers, their name, or the pm list. Reinstalling fixes the issue. 

  

2. Sometimes when the user initializes, their FSM password that worked the day prior now mysteriously stops working. Only after reinstalling the app does the password start working again as intended. 

 

Approximately 10% of users are affected. 

 

These are the log entries that i have found. 

 

10/24/2022 11:03:39 PM; EX; 2378473; UpdateMessageCache; EXCEPTION Message: The following system level exception was generated by the application: Violation of PRIMARY KEY constraint 'mm_message_cache_pk'. Cannot insert duplicate key in object 'dbo.mm_message_cache'. The duplicate key value is (SUPPLIER_PART).The statement has been terminated.Contact your system administrator for assistance.  

 
10/24/2022 11:06:43 PM; EX; 2380252; PerformReplicationForTableAndPerson; EXCEPTION Message: Thread was being aborted. ... Stack Trace:    at Metrix.BusinessServer.BusinessPolicyInterface.SelectBuilder.ProcessSelectRequest(XmlElement root, UserSession session, Dictionary`2 attachments, Boolean checkForSqlInjection, Boolean bypassTableAccessCheck, Boolean& responseIsException)   

 

10/24/2022 11:06:43 PM; EX; 2380445; PerformMmMessageErrorInsert; EXCEPTION Message: Thread was being aborted. ... Stack Trace:    at Metrix.BusinessServer.BusinessPolicies.SharedTablesComponent.MobileManager.PerformReplicationForTableAndPerson(String tableNameIn, String personIdIn, Boolean truncateTableIn, String deviceSequenceIn, SQLiteCommand sqliteCommandIn, mm_process_defRow syncRuleIn, Dictionary`2 tableColumnsDictionaryIn)   

 

10/24/2022 11:06:43 PM; EX; 2380445; PerformMmMessageErrorInsert; EXCEPTION Message: Thread was being aborted. ... Stack Trace:    at Metrix.BusinessServer.BusinessPolicies.SharedTablesComponent.MobileManager.PerformInitializeMobileDevice(String personId, String deviceSequence, String message, SQLiteConnection theSQLiteDB, Dictionary`2 theSyncRuleTableColumnsDictionary) 


3 replies

Badge +2

10/24/2022 11:06:43 PM; EX; 2380445; PerformMmMessageErrorInsert; EXCEPTION Message: Thread was being aborted. ... Stack Trace:    at Metrix.BusinessServer.BusinessPolicies.SharedTablesComponent.MobileManager.PerformReplicationForTableAndPerson(String tableNameIn, String personIdIn, Boolean truncateTableIn, String deviceSequenceIn, SQLiteCommand sqliteCommandIn, mm_process_defRow syncRuleIn, Dictionary`2 tableColumnsDictionaryIn)   

 

10/24/2022 11:06:43 PM; EX; 2380445; PerformMmMessageErrorInsert; EXCEPTION Message: Thread was being aborted. ... Stack Trace:    at Metrix.BusinessServer.BusinessPolicies.SharedTablesComponent.MobileManager.PerformInitializeMobileDevice(String personId, String deviceSequence, String message, SQLiteConnection theSQLiteDB, Dictionary`2 theSyncRuleTableColumnsDictionary) 

 

 

Badge +2

10/24/2022 11:06:44 PM; EX; 2380446; PerformMmMessageErrorInsert; EXCEPTION Message: Thread was being aborted. ... Stack Trace:    at Metrix.BusinessServer.BusinessPolicies.SharedTablesComponent.MobileManager.CreateMobileDatabase(String personIdIn, String deviceSequenceIn, String messageIn)   at Metrix.BusinessServer.BusinessPolicies.SharedTablesComponent.MobileManager.PerformInitializeMobileDevice(String personId, String deviceSequence, String message) 
 
10/24/2022 11:26:58 PM; EX; 2391917; PerformReplicationForTableAndPerson; INNER EXCEPTION Message: Thread was being aborted. EXCEPTION Message: The database command failed and reported the following error: Thread was being aborted. ... Stack Trace:    at Metrix.BusinessServer.DataConnector.MetrixQuery.BaseSelect(Boolean updlock)   at Metrix.BusinessServer.DataConnector.HierarchyQuery.Select()   at Metrix.BusinessServer.BusinessPolicies.SharedTablesComponent.MobileManager.SafeSelect(HierarchyQuery query)   at Metrix.BusinessServer.BusinessPolicies.SharedTablesComponent.MobileManager.PerformReplicationForTableAndPerson(String tableNameIn, String personIdIn, Boolean truncateTableIn, String deviceSequenceIn, SQLiteCommand sqliteCommandIn, mm_process_defRow syncRuleIn, Dictionary`2 tableColumnsDictionaryIn) 

 

 

Badge +2

Timestamp: 2022-10-25T03:49:17.9116290-04:00 
Message: Memory allocation warning. Bytes=16139599872 Suspending '1' threads. 
Machine: BUSHMASTER 
App Domain: /LM/W3SVC/1/ROOT/FieldServiceManagement-1-133109156334936856 
ProcessId: 2388 
Process Name: w3wp 


Timestamp: 2022-10-25T03:49:17.9266287-04:00 
Message: Error PerformanceMonitor.RecordMemoryAllocation() - System.Threading.ThreadAbortException: Thread was being aborted. 
   at System.Threading.CancellationTokenSource.ExecuteCallbackHandlers(Boolean throwOnFirstException) 
   at System.Threading.CancellationTokenSource.NotifyCancellation(Boolean throwOnFirstException) 
   at Metrix.Global.PerformanceMonitor.RecordMemoryAllocation(Int64 memoryAllocation) 
Machine: BUSHMASTER 


Timestamp: 2022-10-25T03:49:23.1048422-04:00 
Message: Memory allocation warning. Bytes=16362840064. Could not find a thread to suspend based on database queries. 
Machine: BUSHMASTER 
App Domain: /LM/W3SVC/1/ROOT/FieldServiceManagement-1-133109156334936856 
ProcessId: 2388 
Process Name: w3wp 
Thread Name:  


What could be the cause for this issue ?
 

Reply