Move Files won't accept variable as input

I have a file path set as a variable and it threw a warning saying that I shouldn’t
use an absolute path even though its a variable.
image
image

@MetaCake,

It’s just warning and it’s for To Path. You can run it without any error.

image

If it still bothers you to see, you can move the hardcoded path to a variable and pass the variable name here like this and it will go away.

image

Thanks,
Ashok :slight_smile:

@MetaCake

If you’re receiving a warning about using an absolute path even though it’s stored in a variable, it might be a false positive or the warning could be referring to a different aspect of your workflow. Here are some suggestions to address this issue:

Verify Variable Usage: Ensure that the variable containing the file path is indeed used as expected and that there are no hardcoded absolute paths elsewhere in your workflow.

Check Activity Settings: If you’re using activities like the “Excel Application Scope” or “Read Range” activity, make sure that you’re passing the variable containing the file path correctly. Sometimes, UiPath might flag the usage of the variable incorrectly.

Ignore the Warning: If the variable usage is correct and the warning doesn’t impact the functionality of your workflow, you may choose to ignore it.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.