Excel: The given paths format is not supported

I am trying to do the following:
Capture2
I want uipath to automatically create the excel sheet for me, I even have the '‘create new file’ option checked inside the excel application scope.

However, I keep getting this error:
Capture

And I have tried it with and without the .ToString in the excel application scope. None seem to work

Any advice?

@Sami_Syed Print in the message box of the excel path which given to excel application scope and check whats the path you are getting.

1 Like

Nevermind I figured out the problem it was because DateTime sets format with the “/” and “:” characters. And we cannot create file names with these characters.

Thanks for the help @indra

1 Like

Hi @Sami_Syed

Yes the problem is with currentDate format, better you change the format in ToString method. By default " \ " is used.

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.