Hi fellow F&O pros,
im having an issue with a local VM of Dynamcis 365 F&O.
I'm getting an error on every databse sync I perform on this machine:
Unable to create/retrieve table DBSyncExecStats to sync execution status: System.Data.SqlClient.SqlException (0x80131904): The conversion of a varchar data type to a datetime data type resulted in an out-of-range value.
The statement has been terminated.
at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at Microsoft.Dynamics.AX.Data.Management.DBSyncSyncStepExecutionStatusSync.InsertCurrentExecutionStatus(SqlCommand command)
at Microsoft.Dynamics.AX.Data.Management.DBSyncSyncStepExecutionStatusSync.SetupExecutionStatusTable(Boolean logFailure)
ClientConnectionId:601c9323-9895-4667-ae45-392599ee805c
Error Number:242,State:3,Class:16
The execution status will not be persisted in the database.
However, after the synchronisation, the db sync tool says, that the Database synchronization was successfull.
Since this is an environment ehere a Azure DevOps Build Agent is installed, every build performed on this Agent is failing.
Has somebody an ideo how to fix this? Any hint would be very helpful.
Cheers