Hi again!
so we are closer to a happy ending, right?
As you suspect, the expression you are using...
formatDateTime(outputs('Expiry_date'),'yyyy-MM-dd')
...will fail if the input value is null / empty,
So there are two options:
-in your SP library, declare custom column as mandatory, so all items will have an Expiry_date value, or
-implement a workaround in your flow, for example use this expression instead:
formatDateTime(coalesce(outputs('Expiry_date'),'1999-12-31T00:00:00Z'),'yyyy-MM-dd')
...so if Expiry date is null, it will be replaced and transformed into 1999-12-31
Hope this helps
==========