So what you’ve written in your post is exactly what you’re putting in your workflow? Because there aren’t any illegal characters in what you’ve written, but I’m not sure what it has to do with a config file?
there is a space between the last \ and folder. Maybe that’s the issue? I would double check the in_path to make sure everything is exactly as expected.
This is a separate issue from what you’re getting, but keep in mind that your current wildcard indicator must start with allfile for it to be grabbed by your getfiles method. If you want it to have the word allfile anywhere, you should include the asterisk wildcard at the beginning and end of your filter
Do you have an asterisk in the filepath in your config? Or any of the illegal characters mentioned in the stackoverflow link I posted?
Can you copy + paste the filepath from your config exacty as it is shown? Make sure to use the preformatted text option here so it will show it exactly how it is in your config. You could also post a screenshot, but that wouldn’t show things like double spaces, tab characters, etc.
It works when you hardcode it like that, but doesn’t work when you are pulling from the config? Make sure the hardcoded version is copy+pasted from your config file, as that ensures you are testing the correct value
If so, then you just need to debug your code. Simple techniques such as doing putting breakpoints on various points and checking to ensure the value of “in_path” is exactly what you expect at those breakpoints should be sufficient to find your problem.
@Tharusha_Fernando, So you want to get all the files from a folder right, then you can use , Directory.GetFiles(“C:\Users\netha\Desktop\REAC\data”) and ensure that data folder is created, contain files.