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
MVP

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.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

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.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (4,367)