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 Apps / On premises API for we...
Power Apps
Unanswered

On premises API for web service Custom Connector - 404

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I have a web service installed on a server where I can pull API data via XXX.XXX.com/REST/...

 

It is limited to on premises access and I'm able to use the API via Postman so long as I'm on the corporate wifi but not when off.

 

I'm trying to create a custom PowerApps connector which utilizes the API. I've installed the On-Premises data gateway onto my server but not sure what I need to configure. 

 

My connector settings are:

 

  1. General
    1. Connect via on-premises data gateway - Checked
    2. Scheme - HTTP
    3. Host - xxx.xxx.com
    4. Base URL - /REST/
  2. Security
    1. Windows Authentication
  3. Definition - Configured for API
  4. Test
    1. Selected connection - Gateway connection
      1. Connection Settings:
        1. Authentication Type: Windows
        2. Username/Password: local admin account
        3. Choose a gateway: API Gateway

 

 

Results:

 

Status - (404)

 

Headers
{
"strict-transport-security": "max-age=31536000; includeSubDomains;,max-age=31536000; includeSubDomains",
"x-content-type-options": "nosniff,nosniff",
"date": "Thu, 05 Sep 2019 20:55:47 GMT",
"x-frame-options": "SAMEORIGIN,DENY",
"content-type": "application/json; charset=utf-8",
"x-ms-request-id": "82355ed7-9af3-4540-84ba-b095-c70d0431",
"cache-control": "private,no-store",
"content-length": "527"
}

 

Body

{
"Status": 404,
"URL": "/rest/server/authenticationtokens",
"Method": "POST",
"Exception": {
"Name": "NotFoundException",
"Message": "Exception of type 'MFWS.NotFoundException' was thrown."
},
"Stack": "Error reference ID: ea3ac03b-72c5-40a3-9583-6cc867373058",
"Message": "Exception of type 'MFWS.NotFoundException' was thrown.\r\nclientRequestId: 82355ed7-9af3-4540-84ba-b095-c70d0431",
"IsLoggedToVault": false,
"IsLoggedToApplication": false,
"ExceptionName": "NotFoundException"
}

Categories:
I have the same question (0)
  • v-monli-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

     

    Did you follow steps in below documentation correctly?

    https://powerapps.microsoft.com/en-us/blog/on-premise-apis/

     

    Regards,

    Mona

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I have. With the exception of creating a web application in VS since I already have a platform running the api (M-Files). 

     

    Do I need to create a separate application in VS?

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 404

#2
timl Profile Picture

timl 344 Super User 2026 Season 1

#3
WarrenBelz Profile Picture

WarrenBelz 320 Most Valuable Professional

Last 30 days Overall leaderboard