Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Unanswered

Returning null value

(0) ShareShare
ReportReport
Posted on by 17

Hi

 

I have 2 variables that are strings. the flow runs smoothly up until it needs to add a row in excel.

it outputs values as null when it shouldn't, all sections of form has been filled out.

do i need to add a formula/expression to each value?

 

AI14_1-1693558365420.png

 

 

outcome - used for switch

responses - used for condition output

 

AI14_0-1693558244121.png

 

please assist.

 

kr

AI14

 

  • AI14 Profile Picture
    17 on at
    Re: Returning null value

    But the value is not empty?

  • AI14 Profile Picture
    17 on at
    Re: Returning null value

    would it be easier if i changed the response variable from string to array or something? then used another set variable to hold all the data?

     

    would this allow me to choose data from the form based on that one variable?

     

    kr,

    AI14

  • ManishSolanki Profile Picture
    15,085 Super User 2025 Season 1 on at
    Re: Returning null value

    Hi @AI14 

     

    Before parsing date, you need to check if the input value is null or not. You may use below expression to fix this issue:

    if(equals(item()?['DateCol'],null),'',parseDateTime(item()?['DateCol']))

    pls replace item()?['DateCol'] with actual variable in the above expression.

     

    If this helps & solves your problem, please remember to give a 👍 and accept my solution as it will help others in the future.

     

    Thanks

  • Chriddle Profile Picture
    7,669 Super User 2025 Season 1 on at
    Re: Returning null value

    As stated in the error message, the date value you entered into the parseDate function is null.

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,645 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,997 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow