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, ...
Suggested Answer

Error: Request was throttled by the Throttling Framework - Custom service call log in LCS

(5) ShareShare
ReportReport
Posted on by 105

Hi Folks!!


We have a custom service that is triggered by a third-party system to post an inventory journal in D365FO. However, we have observed that on several occasions, no journal was created in D365FO after the API call.

Upon reviewing the logs extracted from LCS (Lifecycle Services) Diagnostics, we found multiple instances of the message:  “Request was throttled by the Throttling Framework.”

Interestingly, this message appears in the logs every time the custom service is invoked, regardless of whether the request was successful or failed. The infomessage is displaying below message:

{"EndpointType":"CustomServices","ThrottleType":"MemoryOverUtilizationBySystem","IsThrottled":false,"IsThrottlingEnabled":true,"IsThrottleOnPriority":false,"IsExcludedFromThrottling":false,"Threshold":95,"Passed":66,"Priority":"Default","UserId":"8e12fa32-c7a6-47f8-80c5-abdedacd0e77","AppId":"3d894b6c-a90c-47b2-b845-79abf50d78c5","RequestUrl":"/api/services/InspProductRollServiceGroup/InspProductRollService/Warehousing","ShouldSendThrottlingResponse":false,"Attempted":null}

From these logs, we don't have much information of the cause. How can we find detailed logs for custom service calls?

 

Any help would be greatly appreciated!

Thanks.

Categories:
I have the same question (0)
  • Suggested answer
    Holly Huffman Profile Picture
    6,534 Super User 2025 Season 2 on at
    Hi there! Good morning, evening, or afternoon - depending on where you are :) Hope you are well today! 
     
    To find detailed logs for custom service calls in Dynamics 365 Finance and Operations (D365FO), especially when dealing with throttling issues like the interesting :) one described in your post, follow these steps:
     
    1. Enable Tracing for Custom Services
    • In Lifecycle Services (LCS), enable Tracing for the environment:
      • Go to Environment Monitoring in LCS.
      • Under the Activity tab, enable Trace Logs for the specific time period when the custom service is invoked.
      • Filter the logs by CustomServices or the specific API endpoint (/api/services/InspProductRollServiceGroup/InspProductRollService/Warehousing).
    This will provide detailed traces of the service calls, including memory utilization and execution details.

    2. Use the Raw Logs in LCS
    • In the Environment Monitoring section of LCS, download the Raw Logs for the relevant time period.
    • Look for entries related to the Throttling Framework and analyze the JSON details provided in the logs. Pay attention to:
      • ThrottleType: Indicates the reason for throttling (e.g., MemoryOverUtilizationBySystem).
      • Threshold and Passed: Compare these values to understand the resource utilization.
    3. Enable Debugging in the Custom Service
    • Add detailed logging to your custom service code to capture the input, output, and execution flow:
      • Use the Info or Error logs in X++ to log key events.
      • Ensure that the logs include the Request ID or Activity ID for correlation with LCS logs.
    4. Monitor Application Insights (if enabled)
    • If Application Insights is integrated with your D365FO environment, use it to monitor telemetry data for the custom service.
    • Search for the specific API endpoint and analyze the performance metrics, including memory usage and request throttling.
    5. Check Throttling Configuration
    • Review the Throttling Framework settings in D365FO:
      • Navigate to System Administration > Setup > Performance > Throttling Framework.
      • Check if the custom service is excluded from throttling or if specific thresholds are configured.
    6. Analyze Resource Utilization
    • Use the Resource Monitoring tools in LCS to check the memory and CPU usage during the time of the API calls.
    • If memory utilization is consistently high, consider scaling up the environment or optimizing the custom service.
    7. Test in a Sandbox Environment
    • Replicate the issue in a sandbox environment with similar configurations.
    • Use the sandbox to test changes, such as increasing memory thresholds or optimizing the custom service.
    8. Contact your partner -
    • If the issue persists, escalate it to your partner and/or Microsoft Support. Provide them with:
      • The raw logs from LCS.
      • Details of the custom service and API endpoint.
      • Steps to reproduce the issue.
  • Mariano G. Profile Picture
    3,598 on at
    Check out this documentation and see if it helps:
     
     
    We have a lot of integrations with 3rd-party software, and we have never had any issues with the API limits in Dynamics 365 FnO.
     
    BTW, don't read anything posted by Holly Huffman.
  • Raj Borad Profile Picture
    1,428 on at
    Yes Mariano,
     
    She is posting similar things in many posts and her last option is to contact MS Support.
     
     
  • Vahid Ghafarpour Profile Picture
    12,151 Super User 2025 Season 2 on at
    If any of the responses helped resolve your issue, please take a moment to mark the best answer. This helps others in the community quickly find solutions to similar problems.

    To do this, simply click the "Does this answer your question?" button on the most helpful response and like the helpful posts. If your issue is still unresolved, feel free to provide more details so the community can assist further!

    Thanks for being an active part of the Dynamics 365 Community! 😊
  • Layan Jwei Profile Picture
    8,116 Super User 2025 Season 2 on at
    Hi,
     
    If you go to "system administration - setup - throttling priority mapping" do you have records there?
     
    When the custom service is called and the load is high , then the system performance will be affected because of over-utilization of the resources by the custom service end point. Therefore the system will start to throttle those requests to handle the performance degradation. 
     
     
  • CU10030917-0 Profile Picture
    105 on at
    @Layan Jwei, No, there are no records under system Administration > Setup > Throttling Priority Mapping.

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
Martin Dráb Profile Picture

Martin Dráb 503 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

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

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 278 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans