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

Notifications

Announcements

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,368 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

Forum hierarchy changes are complete!

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 Pages

#1
Fubar Profile Picture

Fubar 93 Super User 2025 Season 2

#2
Jerald Felix Profile Picture

Jerald Felix 45

#3
Lucas001 Profile Picture

Lucas001 28 Super User 2025 Season 2

Last 30 days Overall leaderboard