Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM forum
Suggested answer

KingswaySoft.IntegrationToolkit.DynamicsCrm.WebAPI.WebApiServiceException in update entity Product

Posted on by 5

I am trying to update the data in the Product entity via SSIS and kingswaysoft.

I often get the following error:

KingswaySoft.IntegrationToolkit.DynamicsCrm.WebAPI.WebApiServiceException: The remote server returned an error: (400) Bad Request. (Error Type / Reason: BadRequest, Detailed Message: {"error":{"code":"0x80044339","message":"Cannot obtain lock on resource:'Product_1e14a42e-41f9-ed11-8849-0022489fda17', mode:Update - stored procedure sp_getapplock because the SQL command timeout expired before the lock could be acquired."}}) (SSIS Integration Toolkit for Microsoft Dynamics 365, v23.1.0.7601 - DtsDebugHost, v13.0.4474.0)System.Net.WebException

(Status Reason: BadRequest): The remote server returned an error: (400) Bad Request.

I disabled multithreaded writing; the situation has improved but not resolved completely.

Is there a solution or workaround to avoid this behavior? 

Categories:
  • Francesco.999 Profile Picture
    Francesco.999 5 on at
    RE: KingswaySoft.IntegrationToolkit.DynamicsCrm.WebAPI.WebApiServiceException in update entity Product

    I've configured all the packages as you said and they work fine, but only when I try to massively update the Product entity, the results often end with timeouts.

  • Francesco.999 Profile Picture
    Francesco.999 5 on at
    RE: KingswaySoft.IntegrationToolkit.DynamicsCrm.WebAPI.WebApiServiceException in update entity Product

    Yes, I did, I improved the processing result, but i still get timeouts.

  • Suggested answer
    ankit_singhal Profile Picture
    ankit_singhal 560 on at
    RE: KingswaySoft.IntegrationToolkit.DynamicsCrm.WebAPI.WebApiServiceException in update entity Product

    Reduce batch size and enable multi threading. try with batch size 20 and multi threading 10 once. we are using some and working fine for us on large data also

  • Suggested answer
    XM-22040801-0 Profile Picture
    XM-22040801-0 11 on at
    RE: KingswaySoft.IntegrationToolkit.DynamicsCrm.WebAPI.WebApiServiceException in update entity Product

    Hi,

    Can you try with a lower Batch size ?

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

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

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

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,558 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,645 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans