web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

Business Process Error: A task was canceled.

(0) ShareShare
ReportReport
Posted on by 20

Getting this error on saving Order, Order line and few other entities in Sales. Does anyone know what is the solution to this problem?

Error code: 0x80040265

Exception Message: A task was canceled.

ErrorCode: -2147220891
HexErrorCode: 0x80040265

ErrorDetails:
OperationStatus: 0
SubErrorCode: -2146233088
Plugin:
ExceptionFromPluginExecute: Microsoft.Dynamics.Integrator.DualWriteFpRuntime.Plugins.PreCommitPlugin
ExceptionRetriable: False
ExceptionSource: PluginExecution
OriginalException: PluginExecution

[INF] - [2023-01-19T06:09:48.970Z] - The bearer authentication token was successfully obtained.
[INF] - [2023-01-19T06:09:48.970Z] - Destination : {POST - https://**********.dynamics.com/data/DualWriteProjectConfigurations/Microsoft.Dynamics.DataEntities.WriteToEntityBatch}
[ERR] - [2023-01-19T06:11:28.982Z] - A task was canceled. - - at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Net.Http.HttpClient.<FinishSendAsyncBuffered>d__58.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Dynamics.Integrator.DualWriteCore.Shared.Clients.SandboxHttpClient.SendRequest(HttpRequestMessage request)
at Microsoft.Dynamics.Integrator.DualWriteCore.Shared.SendTransactionPayload.SendPayloadToFinOps(ICrmServices crmServices, IPayloadProvider provider, Payload payload)
at Microsoft.Dynamics.Integrator.DualWriteCore.Shared.SendTransactionPayload.SendPayload(IPayloadProvider provider, ICrmServices crmServices, String dataPayload)
at Microsoft.Dynamics.Integrator.DualWriteCore.Shared.SendTransactionPayload.TrySendPayload(ICrmServices crmServices, String dataPayload, IList`1 providers, CrmPluginUnsecureConfiguration unsecureConfig, CrmPluginSecureConfiguration secureConfig, Boolean alertUser)
[INF] - [2023-01-19T06:11:28.982Z] - AlertUser start tenant - f2e7de2c-59ba-49fe-8c68-4cd333f96b01; environment - https://************.dynamics.com
[INF] - [2023-01-19T06:11:29.063Z] - CreateNewErrorCountObject 42d2d66a-8da5-4919-9343-5dfa69920e6d
[INF] - [2023-01-19T06:11:29.063Z] - UpdateCountToTable {"PartitionKey":"42d2d66a-8da5-4919-9343-5dfa69920e6d","RowKey":"Application","ErrorCountArray":"[1,0,0,0,0,0,0,0,0,0]","LastErrorTime":"2023-01-19T06:11:29.0634588Z","StartTime":"2023-01-19T06:11:29.0634588Z","AlertSettingTime":"00:15:00","Threshold":10}
[INF] - [2023-01-19T06:11:29.094Z] - slots: 1,0,0,0,0,0,0,0,0,0

We have enabled table maps for these entities:

  • Order
  • Order Line
  • Contact
  • Account
  • Invoice
  • Invoice Line
  • Products
I have the same question (0)
  • André Arnaud de Calavon Profile Picture
    301,194 Super User 2025 Season 2 on at

    Hi Haider,

    I would suggest you reviewing the setup and credentials or logging an incident for Microsoft Support. This error is too generic to suggest anything meaningful.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 467 Super User 2025 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 420 Most Valuable Professional

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 241 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans