cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ALP1
Super User
Super User

Office Get user profile + error null

Hi, 

I made a flow that allows me to save in a Sharepoint list, the participants of a meeting.

However, it happens that the value of the column (UPN) is empty... and it causes the Office connector to fail.

Is it possible to bypass this error?

 

ALP1_0-1638832097912.pngALP1_1-1638832142261.png

to avoid errors on the parse json action, i added 

 "type": [
            "object",
            "null"
        ],
"ID du participant (UPN)": {
                "type": [
                    "string",
                    "null"
 
How can i avoid this error ?
ALP1_2-1638832777297.png

 

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
WillPage
Impactful Individual
Impactful Individual

The blank value is actually an empty string here. We can see that in your yellow highlighted screen shot like : "" Therefore the leave the right side of the filter condition blank instead of putting null in there.

 

As an aside, you wrote null directly in The filter condition. If you want to evaluate a null/blank value, you must type null into the expression editor. However in this case the excel table is using an empty string as a blank value so just leave the filter condition right hand side blank.

View solution in original post

4 REPLIES 4
WillPage
Impactful Individual
Impactful Individual

Add new step: Filter array

Put the Parse JSON output into the From input

In the filter condition, item()?['ID du participant (UPN)'] is not equal to null

 

Both item()?['ID du participant (UPN)'] and null should be input via the expression editor.

 

Use the output of the filter in your Apply to each loop.

 

Hi @WillPage  Thanks for your reply

If I correctly understood the output of the filter array action should display only those rows that have a value that is populated in the UPN column.

if I look at the ouput, the filtering does not seem to apply.

 

the output 

ALP1_0-1638866159772.png

 

My filtering 

ALP1_1-1638866213520.png

 

WillPage
Impactful Individual
Impactful Individual

The blank value is actually an empty string here. We can see that in your yellow highlighted screen shot like : "" Therefore the leave the right side of the filter condition blank instead of putting null in there.

 

As an aside, you wrote null directly in The filter condition. If you want to evaluate a null/blank value, you must type null into the expression editor. However in this case the excel table is using an empty string as a blank value so just leave the filter condition right hand side blank.

Thank you a lot. It's working now. 

Helpful resources

Announcements
MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power automate tips 768x460 v2.png

Restore a Deleted Flow

Did you know that you could restore a deleted flow? Check out this helpful article.

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.

Users online (2,151)