Hi All,
I have a strange issue that started to affect my flow recently. I get an attachment (csv) which I move to a SharePoint Document library. I then parse the csv and create a new SharePoint list item based on the information in the csv.
Expressions are:
Year - substring(string(item()?['Last Working Date']),6,4)
Month - substring(string(item()?['Last Working Date']),3,2)
Day - substring(string(item()?['Last Working Date']),0,2)

This was working fine until the other day when i started to get an error.
Unable to process template language expressions in action 'Year' inputs at line '0' and column '0': 'The template language function 'substring' parameter is out of range: 'start index' must be non-negative integer and should be less than the length of the string.
Data in the CSV comes in the following format:
"Unique Id","First Name","Surname","Last Working Date","Email"
"2285638","John","Smth","31/12/2022","john.smith@xyz.com"
If I do not format the date I get an ISO 8601 Error.
I really would appreciate some help.
Thanks
Thanks