I just started out building my first PowerApp but am running into issues with my Office365Users connector. I want one of my fields to default to the User's department - to do this, I'm using a TextInput field with the following formula:
Office365Users.UserProfile(User().Email).Department
This however generates the following error:
PowerApps encountered an internal error trying to evaluate this expression. Data type: text
The SQL data type is VARCHAR(50)
I have looked at a few tutorials and a bunch of topics of similar issues, but really can't find anything wrong with my formula. Any suggestions?
Solved! Go to Solution.
Hi @alex93jansen ,
Firstly, there is nothing wrong with your formula.
'PowerApps encountered an internal error trying to evaluate this expression.' will be reported when the value of the formula cannot be previewed.
So, the reason why your textinput control has no data is because the user does not have a department.
You could go to Azure AD to modify your department.
Best Regards,
Wearsky
If my post helps, then please consider Accept it as the solution to help others. Thanks.
Hi @alex93jansen ,
Firstly, there is nothing wrong with your formula.
'PowerApps encountered an internal error trying to evaluate this expression.' will be reported when the value of the formula cannot be previewed.
So, the reason why your textinput control has no data is because the user does not have a department.
You could go to Azure AD to modify your department.
Best Regards,
Wearsky
If my post helps, then please consider Accept it as the solution to help others. Thanks.