Reading/Writing to Excel file on server

Hi everyone. This is my first interaction with Dynamo, and programming in general, so just an fyi as I interact with everyone on these forums and possibly ask silly questions.

Essentially I’m starting off slow and attempting to push sheet names into excel and then back into Revit. The script itself is simple enough and works fine, but for some reason I noticed that when I have my target excel file on my desktop it works fine. However, when I change the directory or our server location, so drive Z: instead of C:, it gives this error: “Warning: Excel.WriteToFile operation failed.
Exception from HRESULT: 0x800A03EC”

Any ideas why?

Thanks!

Most likely because there is a space in the file path somewhere. I encountered this the other week as well.