Hello @Ranganathan_M
Can you print the expression and the filepath in a write line activity and check whats the value printing. If it is string it should work.
If both are same and still not working, try to upgrade or downgrade the Uipath.system.activities packages to the latest stable version.
Thanks