cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Super User
Super User

Why a Different Schema for Same Custom Connector?

This is just bizarre. I have a Custom Connector that calls a weather api. Working great in one application. Added the Connector to a different app and duplicated the inputs. No go.

Most curious is the "hint text". WHY IS IT DIFFERENT FOR ONE APP?

Working app hint text:

image.png

Non-working app hint text:

image.png
Working app schema: 

ClearCollect(
    colWeather,
    weatherAPI.GETHistorical(
        {
            apikey:"<redacted>",
            accept:"application/json",
            'Content-Type':"application/json",
            geocode:
                {
                    lon: Location.Longitude,
                    lat: Location.Latitude
                },
            location_id: "",
            start_time: Text(Now() - 1,DateTimeFormat.UTC),
            end_time:  Text(Now(),DateTimeFormat.UTC), 
            timestep:60,
            fields:
                colSelectedParameters
        }
    )
)

Non-working app schema:

ClearCollect(
    colWeather,
    weatherAPI.GETHistorical(
        {
            apikey:"<redacted>",
            accept:"application/json",
            'Content-Type':"application/json",
            geocode:
                {
                    lon: Location.Longitude,
                    lat: Location.Latitude
                },
            location_id: "",
            start_time: Text(Now() - 1,DateTimeFormat.UTC),
            end_time:  Text(Now(),DateTimeFormat.UTC), 
            timestep:60,
            fields:
                colSelectedParameters
        }
    )
) 

Errors:

  • "No parameter." This function has no optional parameter named 'apikey'."
  • When I comment out apikey, the error moves to:
    • "No parameter." This function has no optional parameter named 'endtime'."
    • And so on...

Its like the schema of the Custom Connector is not visible between apps? Whats going on here?

1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Re: Why a Different Schema for Same Custom Connector?

So I bit the bullet and deleted, re-created the Custom Connector... issue fixed.

View solution in original post

3 REPLIES 3
PowerApps Staff Mr-Dang-MSFT
PowerApps Staff

Re: Why a Different Schema for Same Custom Connector?

@ericonline, I'm not familiar with this API, but do you know if its schema changes under different conditions? For instance, in my Twitter API, the schema changes if a given tweet does not have retweets, so it does not have data for the user of the original tweet. 

Super User
Super User

Re: Why a Different Schema for Same Custom Connector?

Hi @Mr-Dang-MSFT ,

Thanks for the reply!

  • I'm making only 1 type of call with this API (a call for historical weather data). Its a paid service so I can't share here.
  • Identical POST bodies in both PowerApps, so I think the schema returned should be identical between apps.
  • Using the same Custom Connector in each app.
  • There is only one Request and one Response defined in the Custom Connector. 
  • There is only one Connection to the API shown in Data/Connections

Thoughts on what I do to troubleshoot?

Super User
Super User

Re: Why a Different Schema for Same Custom Connector?

So I bit the bullet and deleted, re-created the Custom Connector... issue fixed.

View solution in original post

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Demo Extravaganza Championship Voting Open

Voting Ends: October 30, 2019!

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

Top Kudoed Authors
Users Online
Currently online: 352 members 5,441 guests
Please welcome our newest community members: