Issue with variable paths

Hi,

I have been using UiPath Studio for like a year now and never had an issue with my variable paths before. For the past three days or so, the inconsistency of how is working is killing me. Sometimes it works with the slash at the end, sometimes it doesn’t, it works without the slash. For example:

With slash: “C:\Users\Desktop\Example\Doc\”
Without slash: “C:\Users\Desktop\Example\Doc”

I’m pretty sure the correct syntax is WITH the slash, but, again, UiPath Studio has started working inconsistently with this.

I use the activity “For each file in folder” a lot in my automations and this is literally ruining the entire workflow.

HELP!!

@sarai.andino

Can you tell where are you facing issue

Also just try to use path.combine(yourvariable) which might fix as well

Cheers

It has happened in many “For each file in folder” activities:

This is the variable:

Again, sometimes it works and it enters the activity, sometimes it doesn’t.

@sarai.andino
Add delay and try to reduce the version for system library

What does the “it works” and “it doesn’t work” mean here? Especially the second one, of course. What happens?