Skip to main content

Notifications

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
  • André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 291,996 Super User 2025 Season 1 on at
    RE: Business Process Error: A task was canceled.

    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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Congratulations to the January Top 10 leaders!

Check out the January community rock stars...

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,996 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,853 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans