Hi, @hrhassan
According to your description, when you directly select the file in "Get file using path" , the flow run successfully.
But when you use dynamic content , the file can not be found.
Can you check if you pass the same file path in your flow run history in two conditions.

Best Regards,
Yueyun Zhang