Hi all
Hope you can help with this. I have a long flow which was working file until I added a delete sharepoint file command at the end.
The beginning of the flow creates the file

The is then an approval process. If the approval is rejected I want to delete the file which was made in the earlier step. I have used the following flow:

I get the following error message:

Please can anyone help.
Many thanks