I am trying to pull back user profile data using the
I can run it one time and get the correct results, but when I try ot rerun it a second time, I get a "statuscode 429 message Rate lImit is exceeded. Try again in X seconds". Once I wait for up to 120 seconds I can run it again. I have seen similar post, but no resolution. Can you give me some insight on this limit...what triggers it...and how I can get around it?
I am not able to reproduce this issue on my side.
For a test, I create the connection to Office 365 Users, add a Text input control and a Label control, set the Label control’s Text property= Office365Users.UserProfile(TextInput1.Text).Mail.
Then run the app. I enter different email addresses several times in the Text input control, but I don’t get the error message even I try to return it a third time.
Are you combining the Userprofile function with other functions? If yes, please provide more details on it.
I will try to reproduce this issue on my side.
If possible, please provide your Session ID for a further investigation.
No, I am not trying to pull in any other functions. The session ID i get is "2c9d8fd7-7dd8-569b-37a3-926d575d193a".
All I'm trying to do is create an Employee Look-up app where I have the user enter an email and then have the app display their name, photo, and phone number.
I'm connecting to O365Users an then using the following functions
The first and sometimes the second search works, but then I start getting the
Office365Users.UserProfile failed: ("statusCode"=429","message". Rate limit is exceeded. Try again in xx seconds)
Not sure why.
Can you try only run it if the textInput.text is not blank?
If(IsBlank(textINput.text), "", O365UserProfile(textInput.text).Displayname)
The issue you are running into is that too many calls are going out from your app to the Office365Users connector and you are hitting the limits on it.
My suggestion will be to reduce the number of calls being made in the app, I will do something like:
Set(userProfile,Office365Users.UserProfile(textInput.Text))which will cache the user details in the userProfile variable
Another suggestion, have you tried looking at the Org Browser template?
Check out these cool Power Apps & vote on your favorite!
Check out whats happening in Power Apps
FIll out a quick form to claim your community user group member badge today!
Features releasing from October 2020 through March 2021