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





View solution in original post

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
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Users online (1,838)