Hello. But we stil have problem. Run of the scheduled task ends with an error. Returned code 214794201. Fuj. In Application Event log error Source = .NET Runtime, Event ID 1000, … Failed executing DbCommand (30,926ms) [Parameters=[@p0=’?’ (DbType = Int64)], CommandType=‘Text’, CommandTimeout=‘30’] …
Runs from Powershell … “Invoke-RestMethod https://our_server.contoso.com:444/api/TaskScheduler/RunAuditLogCleanupTask -Method Post -UseDefaultCredentials” many times with error: “Invoke-RestMethod: Response status code does not indicate success: 500 (Internal Server Error)”. (error Event recorde same). Then “maybe” one time success. DB size 80 GB. And more. Any idea? Please.Thanks