The problem was that I called the ExecuteAsync method inside multithreading and the thread was closed before the ExecuteAsync method returned the result.
I fixed it by replacing the ExecuteAsync method with the Execute method. The .Wait() didn’t help nor the getawaiter.
1
solved Can’t update decimal field in mssql