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

Community site session details

Session Id :
Power Apps - Microsoft Dataverse
Suggested Answer

Frequent Failures Calling msdyn_runEmissionCalculationService API on Production Environment

(0) ShareShare
ReportReport
Posted on by 2

We are experiencing intermittent API failures on our production MSM instance: orgxxxx.crm5.dynamics.com.We are calling the endpoint:

 
/api/data/v9.2/msdyn_runEmissionCalculationService
 

Recently, we have observed several failed requests. In some cases the API does not return any response, and in other cases we receive the following error:

 
{
  "error": {
    "code": "0x80040265",
    "message": "We're sorry, this service isn't available right now. Please try again in a few minutes. A task was canceled."
  }
}

can advise on:
 
  • How we can retrieve detailed logs or diagnostics related to this API failure?
  • How to identify the root cause of these intermittent service cancellations?

For context, we are not using Managed Environments at the moment

Categories:
I have the same question (0)
  • Suggested answer
    Michael E. Gernaey Profile Picture
    52,857 Super User 2025 Season 2 on at
    Frequent Failures Calling msdyn_runEmissionCalculationService API on Production Environment
     
    Within Dataverse and PP you have 2 limitations and they have levels to them.
     
    1. The number of sequential calls you can make to a Dataverse API (SDKMessage aka Plugin) per person, per hour, per minute bla bla bla
     
    2. The number of actions you can do inside of a Single flow, your environment, your tenant etc etc
     
    So the reason it is failing is simply its throttling you.
     
    How often are you calling it? And are you simply using Power Automate? You posted in Power Apps, but are you really calling it from an App or from within a Flow?
     
    Any of them are fine and will work, but note that unbound actions and APIs are just plugins in Dataverse and have limitations on how often you can call them, the data they return and so on.
     
    I'd have to understand your traffic patterns, but that is why you are getting the error as its making an HTTP call behind the scenes to the APi message handler that is exposed via the SDK.
     

    If these suggestions help resolve your issue, Please consider Marking the answer as such and also maybe a like.

    Thank you!
    Sincerely, Michael Gernaey
  • Ram Prakash Profile Picture
    5,576 Super User 2025 Season 2 on at
    Frequent Failures Calling msdyn_runEmissionCalculationService API on Production Environment
     
    We faced similar kind of issue in our Prod and we raised MS ticket and they increased LATENCY to fix the same.
     
    Note : Check your DB Capacity.
     
    Please mark as answer if my suggestion helps.
    Subscribe here for More Useful videos : https://www.youtube.com/@rampprakash3991
  • Sreeni Hari Profile Picture
    2 on at
    Frequent Failures Calling msdyn_runEmissionCalculationService API on Production Environment
    @Ram Prakash Thanks for the input. I have raised the point with the support team. We did increase the storage capacity recently. 

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

Coming soon: forum hierarchy changes

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 803 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 314 Super User 2025 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 253 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics