cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
alex93jansen
Helper II
Helper II

Office365Users connector - PowerApps encountered an internal error

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?

 

alex93jansen_0-1614383242395.png

1 ACCEPTED SOLUTION

Accepted Solutions
v-xiaochen-msft
Community Support
Community Support

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.

v-xiaochen-msft_0-1614668648771.png

 

 

Best Regards,
Wearsky
If my post helps, then please consider Accept it as the solution to help others. Thanks.

View solution in original post

1 REPLY 1
v-xiaochen-msft
Community Support
Community Support

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.

v-xiaochen-msft_0-1614668648771.png

 

 

Best Regards,
Wearsky
If my post helps, then please consider Accept it as the solution to help others. Thanks.

Helpful resources

Announcements
PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Top Solution Authors
Top Kudoed Authors
Users online (2,623)