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.
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)))
Hi @AhmedSalih I figured out the reason for error and solved. thanks a lot! you are always available and ready to help.
User | Count |
---|---|
252 | |
107 | |
88 | |
51 | |
44 |