If a cell the flow is pulling from (excel file) is empty i want the SP list to have a blank entry but it won't allow it...
I tried this:
if(empty(items('Apply_to_each')?['Expiry date']),'',addDays('1899-12-30',int(items('Apply_to_each')?['Expiry date']),'yyyy-MM-dd'))
(Green bit works fine for filled cells, red is my issue..)
And got this:
The runtime value '""' to be converted doesn't have the expected format 'String/date'.
Any ideas how to write nothing or just skip?
Solved! Go to Solution.
Please take a try with @Expiscornovus 's solution, it is works and could solve your problem.
If your problem has been solved by @Expiscornovus 's solution, please go ahead and mark the post as solved by clicking “Accept as Solution” so that this thread will be marked for other users to easily identify!
In addition, if your 'Expiry date' column is Date data type , you can simplify your formula by the following way.
Select ISO 8601 for DateTime Format field in List rows present in a table action.
Then you don’t need to use addDays and int function to format the date in excel.
The formula can be changed to:
Learn to digitize and optimize business processes and connect all your applications to share data in real time.
Read the latest about new experiences and capabilities in the Power Automate product blog.
If you are a small business ISV/Reseller, share your thoughts with our research team.