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.

New Process Advisor Capabilities carousel.png

Read the blog for the latest news

Read the latest about new experiences and capabilities in the Power Automate product blog.

PA Survey Carousel Image.png

We want to hear from you!

If you are a small business ISV/Reseller, share your thoughts with our research team.

AI Builder AMA June 7th carousel (up on May 25th, take down June 8th) (1).png

'Ask Microsoft Anything' about AI Builder!

The AI Builder team invite you to ask questions and provide helpful answers at our next AMA.

Users online (1,533)