janlemon
(Jan Lemon)
December 30, 2022, 1:13pm
1
Hi,
i am using Get Folder info, where i am passing my string with path from Config.
The string is:
“C:\SelfBillingInvoices\Test\PDFProcessed”
But when i try to writeline directoryInfo.Full name , it returns me this string:
“C:\Users\lemon\Documents\UiPath\Self_Billing_Invoicing_Performer\C:\SelfBillingInvoices\Test\PDFProcessed”
Anybody knows, why its happening?
Thanks
Hello @janlemon
Just tried the same and its giving me the expected output.
If you have added \ at the end of the folder path, can you try removing that and check once.
Thanks
janlemon
(Jan Lemon)
December 30, 2022, 1:32pm
3
It looks like that there is problem with passing argument, beacuse the same string from test variable works, but not from argument from Config…maybe there is an issue with converting object from config to .ToString
You can see, that in_pdfProcessedFolderPath is the same string as a test variable.
Test variable works, in_argument doesn´t…Or am i Blind?
janlemon
(Jan Lemon)
December 30, 2022, 1:32pm
4
Also when i checked the “Throw If not exists” in Get Folder Info activity, it throws an error with in_argument, variable test also works.
Hi @janlemon ,
Don’t use variable as Directory info, because it is class of the module. Please create another name of the variable and try it. I have attached two snapshot’s go for the more information
Thank You!!!
janlemon
(Jan Lemon)
December 30, 2022, 2:01pm
6
Thanks, but…same issue
Always adds the Path to my project Folder
Instated of passing argument from another xaml, try keep hard code value and run check the output.
janlemon
(Jan Lemon)
December 30, 2022, 2:09pm
8
It seems that UiPath somehow sets the root directory of project and always add that path before my chosen path. And i really dont know why
Thats strange… Did you tried assigning the value from config to a string variable and try passing that?
Thanks
arivu96
(Arivazhagan A)
December 30, 2022, 2:56pm
10
If you are going to save file in project folder you can use below code
Environment.CurrentDirectory+"\Data\Output\report.xlsx"
Regards,
Arivu
janlemon
(Jan Lemon)
December 30, 2022, 3:36pm
11
Yes i ve tried. Still the same isssue.
I am aviliable for a zoom call. If you are ready will connect
janlemon
(Jan Lemon)
January 2, 2023, 1:05pm
13
Hej guys,
is here somone from UiPath support?