Hi All,
I have an issue where earlier today, the flow was working, however it stopped working.
I developed the remainder of the script with a static file address and it worked - then I tried to move it back to dynamic, and it failed again.
The script calls to use onedrive to copy a file from: /Apps/Microsoft Forms/Risk Assessment Submission/Question/<FileName.PDF>
with this as a static address, it works. I have a Parse JSON, which takes the information from the file being uploaded, the JSON output is here:
{
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"link": {
"type": "string"
},
"id": {
"type": "string"
},
"type": {},
"size": {
"type": "integer"
},
"referenceId": {
"type": "string"
},
"driveId": {
"type": "string"
},
"status": {
"type": "integer"
},
"uploadSessionUrl": {}
},
"required": [
"name",
"link",
"id",
"type",
"size",
"referenceId",
"driveId",
"status",
"uploadSessionUrl"
]
}
}
However, if I update the script to copy a file from: /Apps/Microsoft Forms/Risk Assessment Submission/Question/​<Body Name>, it fails to work.
When it fails, however, it generates the error:
The file id '/Apps/Microsoft Forms/Risk Assessment Submission/Question/RA Fire Station Assessment_James Freeman 1.pdf' is not valid.
But When I open OneDrive, I browse to the directory path, then copy and paste the file name as it is in the error, I see the file there!

If you look at the flow after completion, the error is:

I don't understand why the file is there, the hardcoded file name works, but the variable name generates the same file path, but won't open.
Any advice that can be offered?