web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Office365 Conector Error
Power Apps
Answered

Office365 Conector Error

(0) ShareShare
ReportReport
Posted on by 21

Hello All,

I'm finishing an Opportunity APP, and when published and opened in PowerApps Desktop, the red error (as printed below) is displayed.

I understand that somewhere in my APP, I'm passing Blank information, and the Microsoft365 connector doesn't handle that well.

However, I'm only using connectors for the information POPUP and for the image on the customer card, as shown below.

 

I'm brasilian portuguese to develop. Translated Error: usuariosdooffice365.userprofile with a failure. The "UserProfile" function has an invalid value for the user ID parameter - a blank value was passed where it was not expected. Check...

gpcamillo_0-1705334884244.png

 

Picture: ThisItem.'SE_Sales Executive'.Picture
The picture is displayed during development but not when published.

gpcamillo_2-1705335553163.png

 

 

Pop UP - when SE, MQR, and SDR are clicked:
Works perfectly. But the information isn't obligatory, so I have some customers only with the Sales Executive registered.
Name: UsuáriosdoOffice365.UserProfile(ContactId).DisplayName
Job Title: UsuáriosdoOffice365.UserProfile(ContactId).JobTitle

Department: UsuáriosdoOffice365.UserProfile(ContactId).Department

Mail: UsuáriosdoOffice365.UserProfile(ContactId).Mail

gpcamillo_3-1705335884945.png

 


Please help me identify where the issue might be, and how I can resolve it. Thank you!

Categories:
I have the same question (0)
  • ANB Profile Picture
    7,252 Super User 2026 Season 1 on at

    Hi @gpcamillo , Based on the error message that you have translated, I can suggest one thing you is that Office365Users.UserProfile function does not take any blank value and if you pass blank value then it will throw error. So, this is alternate:

     

    Name: If(IsBlank(ContactId), "", UsuáriosdoOffice365.UserProfile(ContactId).DisplayName)
    Job Title: If(IsBlank(ContactId), "",UsuáriosdoOffice365.UserProfile(ContactId).JobTitle)
    
    Department: If(IsBlank(ContactId), "",UsuáriosdoOffice365.UserProfile(ContactId).Department)
    
    Mail: If(IsBlank(ContactId), "",UsuáriosdoOffice365.UserProfile(ContactId).Mail)

     

    With this, if ContactId is blank then it will just put blank string "" and Office365Users.UserProfile function will not get fired.

     

    And if ContactId is not blank then it will fire the Office365Users.UserProfile function.

     

    -----------------------------------------------------------------------------------------------------------------------------

    I hope this helps.

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs up.👍

    Thanks,
    ANB


  • gpcamillo Profile Picture
    21 on at

    Hi @ANB , works fine thanks!
    There is no more Message Error.

     

    The only problem that remains is the picture.
    The picture on CustomersGallery is displayed only in the development view, but not on the APP published.


    Picture: ThisItem.'SE_Sales Executive'.Picture

    gpcamillo_0-1705348848730.png

     

    Did you have any clue why this could happening?

  • Verified answer
    ANB Profile Picture
    7,252 Super User 2026 Season 1 on at

    @gpcamillo If the primary issue is resolved then please click Accept as solution . This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs up.👍

     

    Also for other issue, I would request you to post another thread and tag me over there. We can work on it.

     

    Thanks,
    ANB


Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 936

#2
Valantis Profile Picture

Valantis 602

#3
11manish Profile Picture

11manish 598

Last 30 days Overall leaderboard