Skip to main content
Post a question

Notifications

Community site session details

Community site session details

Session Id : O67MTIn6Lvq2pqewe0QWHs
Finance | Project Operations, Human Resources, ...
Suggested answer

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

Like (5) ShareShare
ReportReport
Posted on 26 Mar 2025 07:54:56 by 14

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:
  • Raj Borad Profile Picture
    636 on 27 Mar 2025 at 14:37:41
    Error: Request was throttled by the Throttling Framework - Custom service call log in LCS
    Yes Mariano,
     
    She is posting similar things in many posts and her last option is to contact MS Support.
     
     
  • Mariano G. Profile Picture
    3,545 on 27 Mar 2025 at 14:32:01
    Error: Request was throttled by the Throttling Framework - Custom service call log in LCS
    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.
  • Suggested answer
    Holly Huffman Profile Picture
    4,023 on 27 Mar 2025 at 11:29:06
    Error: Request was throttled by the Throttling Framework - Custom service call log in LCS
    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.

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Announcing Our 2025 Season 1 Super Users!

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

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293,325 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,223 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Product updates

Dynamics 365 release plans
Loading started