Hello. Asking for your help regarding an error to my flow.
Background:
I want to convert the dynamic value from Get Items of SharePoint to convert the Resources Assigned Date to MMM-yyyy (ex. Aug 2024). I am using this expression but failed to format the date:
formatDateTime(items('Apply_to_each')?['Resources Assigned Date'], 'MMM-yyyy')
Error:
Unable to process template language expressions in action 'Compose_2' inputs at line '0' and column '0': 'The template language function 'formatDateTime' expects its first parameter to be of type string. The provided value is of type 'Null'. Please see https://aka.ms/logicexpressions#formatdatetime for usage details.'.
Note that there is a data in Resources Assigned Date
Here's my flow:

The expression is inside the Compose 2 action

Thank you in advance for your help