Article - CS239982

ThingWorx fails to persist updates and returns error "Error occurred while accessing the data provider"

Modified: 23-Dec-2019   

Applies To

  • ThingWorx Platform 7.0 to 8.5

Description

  • Error occurred while accessing the data provider error message returned in ThingworxStorage/logs/ApplicationLog.log when running a custom service in ThingWorx
  • Error when running DataTable service AddDataTableEntries in ThingworxStorage/logs/ApplicationLog.log:
Unable to Invoke Service AddDataTableEntries on <DataTableName>: com.tingworx.common.exceptions.DataAccessException:[1,018] Data store unknown error: [Error occurred while accessing the data provider.]
  • ThingWorx server was briefly inoperable due to error in ThingworxStorage/logs/ApplicationLog.log:
[message: [1,018] Data store unknown error: [Error occurred while accessing the model provider.]]
Transactions could not be committed.

 
  • ThingWorx is experiencing hundreds of database deadlocks per day
  • ThingworxStorage/logs/ErrorLog.log show that deadlocks are generated primarily on the model_index_pkey index:
com.microsoft.sqlserver.jdbc.SQLServerException: Transaction (Process ID 60) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction
  • Restarting Tomcat temporarily resolves the model provider issue
  • The issue occurred following an upgrade of ThingWorx