For Each File In Folder Activity Issue

Hello everyone, I’m having a weird issue with this activity, i have a process that converts a some docx files into pdf, the directory is from a local sharepoint mapped like a network drive, i’ve tested the process on my pc and it works fine, but i try to execute the process on a server it throws a “Null character in path” exception, iv tried updating the UiPath studio and even the net. framework but still no avail, does anyone has encountered a similar issue?
the server windows server 2022 and its a virtual machine.
image

@eber.garcia Hi, Check space, dot etc. careckters.

Thanks for the answer but i have some questions.

  1. The path does have spaces and dots, but what should i put in to get to that directory? keep in mind i can’t change the path.
  2. Why it works on a different PC?, i’ve done the same thing but i cant figure out the cause

@eber.garcia

Welcome to the community

  1. First print the path and check what is the data present in it
  2. Also it is not advised to use mapped sharepoint drives instead use office 365 activities

Cheers

hi @Anil_G thanks for the response.

I was wondering the office 365 activities can be used on a local SharePoint? thanks in advance.

If you use embedded one drive to local, I think you can just use the activity like processing local file

But if you can’t set the directory of local one drive in same letter for each computer, you should use ‘Microsoft Office 365 Scope’

@eber.garcia

It can work both on one drive and shareoint folders…alao when you have office 365 you need not anyways need local folder also as it would sync with sharepoint

Cheers

Hello @eber.garcia

Are you able to share the path here?
Perhaps try and delete/reinsert the quotation marks from your path (variable) - sometimes these characters change (not visually) when using copy/paste from other sources.

Regards
Soren

The path would be something like this:
A file path, "Y:ocumentos Firmados", is displayed on a dark background. (Captioned by AI)
However the absolute path is something like this (I have to hide some things):
image

I’m gonna try those onedrive activities maybe that would be an alternative

1 Like

The latest OneDrive activities using IS Connections do not require any scopes and should meet your needs. However, if you are on-premises and do not have access to the Integration Service, you can use the Microsoft 365 Scope and add the same new activity within it.

Activities - Files activities

Thanks for the reply @AlexCrijman, sorry for the late response, I do not have access to the integration service on the sharepoint on premise the old 365 scope has various parameters that left me a bit confused and using the latest 365 activities automatically redirect to 365 online so i asumed that only worked that way, is it posible to use this on a sharepoint on premise?