cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Add row into excel failing when date field is blank

Hi

 

I am using a compose action to convert a date field from sharepoint in order to add it into an excel sheet. As this field is not and should not be compulsory it is often blank. for this reason the add row flow fails on any rows where this field is blank.

 

I need it to add the row either leaving that cell blank or inputting something like 'NA'Capture.JPG

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @Anonymous 

 

Try this:

if(empty(outputs('ActiveDueDate')),null,outputs('ActiveDueDate'))
 

Did I answer your question? Mark my post as a solution!

If you like my post please hit the Thumbs Up


Proud to be a Flownaut!


Check out my blog for Power Automate tips,
tricks, and guides
FlowAltDelete





View solution in original post

6 REPLIES 6
Jcook
Super User
Super User

Hello @Anonymous 

Yiu can try using an if() expression in that date field. Something like:

if(empty(‘Your Date’), ‘null’, ‘Your Date’)

 

note that ‘Your Date’ is your dynamic content for the date. And the ‘null’ this the expression null


Did I answer your question? Mark my post as a solution!

If you like my post please hit the Thumbs Up


Proud to be a Flownaut!


Check out my blog for Power Automate tips,
tricks, and guides
FlowAltDelete





Anonymous
Not applicable

Thanks, I tried this but it states expression is invalid: if(empty(‘outputs('ActiveDueDate')’), ‘null’, ‘outputs('ActiveDueDate')’)

Hi @Anonymous 

 

Try this:

if(empty(outputs('ActiveDueDate')),null,outputs('ActiveDueDate'))
 

Did I answer your question? Mark my post as a solution!

If you like my post please hit the Thumbs Up


Proud to be a Flownaut!


Check out my blog for Power Automate tips,
tricks, and guides
FlowAltDelete





Anonymous
Not applicable

perfect, thank you 🙂 

shu
Community Support
Community Support

@Anonymous  I have tested from my side that even the 'Due Date' is blank, the 'Add a row into a table' should still run with success.

Could you please provide a screenshot of the error you are having?

 

Best Regards,

 

Jessie Chen

 

Support Engineer

Asia Dynamics 365 Support

Customer Services and Support

Anonymous
Not applicable

Hi, thanks, the prior suggestion solved this issue 🙂

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

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 Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Top Solution Authors
Top Kudoed Authors
Users online (4,067)