cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
aayaanmayank
Helper III
Helper III

Warning Msg while running the Power app

Hi Everyone - I am getting below error while run the app? can anyone pls help me on this. i have tried several ways but no luck.

Office365Users.UserProfile failed: { "status": 404, "message": "No user found with the specified id.\r\nclientRequestId: 867a133f-af3e-4545-87b2-984ed7fe02d9\r\nserviceRequestId: 34089185-ba90-412e-9c02-323306cb916b", "error": { "message": "No user found with the specified id." }, "source": "office365users-si.azconn-si.p.azurewebsites.net" }

I am using a blank form (source is sharepoint), users have to enter their trainer and Lead email ID based on Trainer and Lead name will auto appear.Screen shot.png

4 REPLIES 4
AhmedSalih
Super User
Super User

Hello, @aayaanmayank, You can't use the UserProfile method with an empty DataCardValue.Text. That is why you have to only use your code after you confirm that the DataCardValue.Text is not Blank:

 

If(!IsBlank(DataCardValue.Text), Paste your if Statement Formula here)

 

 

If my reply helped you, please give a 👍 , & if it solved your issue, please 👍 & Accept it as the Solution to help other community members find it more.


I am primarily available on weekdays from 6-10 PM CT and 5-10 PM CT on weekends.


Visit my Blog: www.powerplatformplace.com


 

 

@AhmedSalih  i have user still getting the same error.  below is the function please correct if it is wrong. even with V2 same warning.

If(!IsBlank(DataCardValue36.Text),If(!IsBlankOrError(Office365Users.UserProfile(DataCardValue36.Text).DisplayName),(Office365Users.UserProfile(DataCardValue36.Text).DisplayName)))

@aayaanmayank, so it is only one user that is getting this error?

Hi @AhmedSalih I figured out the reason for error and solved. thanks a lot! you are always available and ready to help.

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (5,970)