Problem on Download Spreadsheet (GSuite) to pdf

Hi,

I was following the practice cases in “RPA UiPath StudioX Tutorial for Beginners”, and was doing the part on Google Workplace. Basically, everything works fine, and I was also able to run the package in UiPath Assistant. But,

I tinkered a bit on the workflow and publish (because I found that the “download spreadsheet” just add on without replacing the PDFs, and in turn accumulating to a bigger email to be sent), test, …, until I encountered the following error,

Could not find a part of the path ‘C:\Users\albert.chan.nuget\packages\first.automation.using.google.workspace\1.0.10\lib\net45\PDFs\Invoice 1.pdf’.

I found that this was caused by the missing folder “PDFs” in the package folder. It can be fixed by manually adding it. And surely, this problem persist if I published again.

The interesting thing is that I can still run the same workflow in StudioX.

Any hint?

: )
Albert

Hey @sniffbird

I wonder if this could be related to the fact that I think Studio does not publish empty folders.

Could you please try one of these workarounds:

  • use the Create Folder activity to create a PDFs folder for your project
    Simply like so:
    image
  • place a dummy file in the PDFs folder that is in your project, something like an empty text file should do

Please let us know if it helped :slight_smile:

Still, even if this workaround, I feel like one could make an argument that activity should just take care of creating a folder if it needs it, rather than throwing an exception.

Hey @sniffbird ,

Just wanted to check if you are still blocked here or if the workaround from @loginerror helped resolve this.

Thanks,
Raluca

This topic was automatically closed after 11 days. New replies are no longer allowed.