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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Pages / Calling the web API fr...
Power Pages
Suggested Answer

Calling the web API from within the portal

(1) ShareShare
ReportReport
Posted on by 87

Hi Everyone i have development a portal with all my site settings and entity permissions set to call the web ApI to create records form the portal and all works fine. 

 

This portal was copied over to another environments and all appeared to work fine until the web api stopped working on this environment and i currently get the following error 

 

500 (Internal Server Error)

 

  1. error: {code: "9004010A", message: "An unexpected error occurred while processing the request"}
    1. code: "9004010A"
    2. message: "An unexpected error occurred while processing the request"

Has anyone came across this since I am confident that all settings required are there.

 

Thanks Esox

 

Categories:
I have the same question (0)
  • oliver.rodrigues Profile Picture
    9,425 Most Valuable Professional on at

    can you confirm if the Portals versions are the same, they must be 9.3.3.x or higher

    How did you move the Portal configuration across? Can you make sure the Entity Permissions are created and associated with the correct Web Roles?

  • Esox76 Profile Picture
    87 on at

    I used the configuration migration tool and can confirm that all settings , and permission are in place for each entity that i need to create or update. The portal version is 9.3.6.8

     

    Anything that is covered in the following link is implelemted

     

    Execute Different Web API Operations using PowerApps Portals (Preview) | Microsoft Dynamics 365 CRM Tips and Tricks (inogic.com)

     

     

    Thanks

  • Suggested answer
    RadhikaCU23040231-0 Profile Picture
    9 on at
    Is this working for you , I am study with same issue since last 3 days
  • Ajlan Profile Picture
    235 on at
    Hello,

    You are getting a general error, you need to identify the exact error for that please add the below code in your Webapi request

      success: function (res, status, xhr) {
            console.log("Success:", res);
          },
          error: function (xhr, status, error) {
            console.error("Error:", error);
            console.error("Status:", status);
            console.error("XHR:", xhr);
          }

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Pages

#1
Lucas001 Profile Picture

Lucas001 17 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 12

#2
CN-06091549-0 Profile Picture

CN-06091549-0 12

Last 30 days Overall leaderboard