cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
BethanyJake
Frequent Visitor

False errors when looking up data in a new form from Office365Users

So what I'm trying to do is look up the leader, leader email and job title of the team member that is entered in the form.  I know there was a previous thread on this and I am using the exact same code but still getting the errors. 

 

Here's my code:

If(!IsBlank(DataCardValue13),If(FrmEditForm.Mode= FormMode.New,Office365Users.ManagerV2(DataCardValue13.Selected.Email).displayName,Parent.Default))

 

DataCardValue13 is a people picker connected to a sharepoint people and groups field.

 

Now it works just fine. I get the exact results I want, but I don't want it to throw errors at my end users, which is what it is doing.  I get this error:

 

Office365Users.ManagerV2 failed: The method 'ManagerV2' has an invalid value parameter 'id'

 

I change it to 'Manager' rather than 'ManagerV2' and get this error

Office365UsersManager failed: The method 'Manager' has an invalid value for parameter 'userId'

 

I know this has been discussed and I did the exact solution and am still getting errors, any idea what I can do to resolve?

 

Thanks!

2 ACCEPTED SOLUTIONS

Accepted Solutions
v-yuxima-msft
Community Support
Community Support

Hi @BethanyJake ,

 

Do you have one blank value?

Could you please share your control and its formula expression by screenshot?

I test on my side,If the selected is Blank it will show this error message also, it means there is one invalid value.

20190429invalidID.PNG

 

So please check whether there is the invalid value.

 

Best Regards.

Yumia

View solution in original post

The control is a combo box with the following formula for items:

Choices('Accuracy Adjusters'.TeamMember)

 

it isn't really helpful.

 

However, I figured it out...  I changed it to

If(FrmEditForm.Mode= FormMode.New&&!IsBlank(DataCardValue13.Selected),Office365Users.ManagerV2(DataCardValue13.Selected.Email).displayName,Parent.Default)

 

I improved the formula a bit.  But it was adding .Selected that took care of the error.


Thanks for responding!

View solution in original post

2 REPLIES 2
v-yuxima-msft
Community Support
Community Support

Hi @BethanyJake ,

 

Do you have one blank value?

Could you please share your control and its formula expression by screenshot?

I test on my side,If the selected is Blank it will show this error message also, it means there is one invalid value.

20190429invalidID.PNG

 

So please check whether there is the invalid value.

 

Best Regards.

Yumia

View solution in original post

The control is a combo box with the following formula for items:

Choices('Accuracy Adjusters'.TeamMember)

 

it isn't really helpful.

 

However, I figured it out...  I changed it to

If(FrmEditForm.Mode= FormMode.New&&!IsBlank(DataCardValue13.Selected),Office365Users.ManagerV2(DataCardValue13.Selected.Email).displayName,Parent.Default)

 

I improved the formula a bit.  But it was adding .Selected that took care of the error.


Thanks for responding!

View solution in original post

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Demo Extravaganza Winner Announcement

Please join us on Wednesday, July 21st at 8a PDT. We will be announcing the Winners of the Demo Extravaganza!

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Top Kudoed Authors
Users online (1,694)