Skip to main content
Dynamics 365 Community / Forums / Guides forum / Specified cast is not ...
Suggested answer

Specified cast is not valid DBSync ERROR

editSubscribe (0) ShareShare
Posted on by 235

Hello All,

I have D365 on premise deployment latest update and version.

I have restore database from my PROD environment to Stage environment I am trying to sync after restore i got this error below:

System.InvalidCastException: Specified cast is not valid.
at Microsoft.Dynamics.AX.Framework.Database.Monitor.BlockingMonitor.ParseData(SqlDataReader dataReader, ExecutionTimeoutMonitor executionTimeoutMonitor)
at Microsoft.Dynamics.AX.Framework.Database.Monitor.Monitor`1.FetchData(Object state)
The operation is not valid for the state of the transaction.

The user i am trying to start the sync with is system admin on SQL so i believe it's not a role issue.

Any help would be appreciated,