mikechambers
Active Member
- Joined
- Apr 27, 2006
- Messages
- 397
I have code that accesses a file that exists in SharePoint. I am referencing the path as a network path (ie. \\sp5463.xxxxx.net@xxx\xxxxxx\sites\etc)
On a fresh reboot of a system, a user will opening the workbook that runs the code will receive an access error, because the system thinks the path does not exist, or they don't have access to it. Even though it does exist and they do have access. Even if I do any kind of code to check if the file exists, it fails on that with the same type of error.
When that error is received, if I manually go navigate to the path in another version of Excel or Windows Explorer, which works every time, and then I go back to continue running the code from the break point, it continues running with no issues. It's behaving as if I must go prove to Excel or my system that I can access that path, and then Excel will let the code run.
Once I "prove myself worthy" the code will work every time, even if I close the workbook and re-open it. It will continue to work UNTIL I reboot my system, then it has to be "retrained".
I really don't even know how to search for a solution on this because it really has nothing to do with DIR or really trying to test if the path exists.
It's almost as if I need to do a full scan or something to test all accesses. Any I should point out, this is ONLY an issue with SharePoint paths. Never a normal network drive or anything else.
Any ideas? Thanks!
On a fresh reboot of a system, a user will opening the workbook that runs the code will receive an access error, because the system thinks the path does not exist, or they don't have access to it. Even though it does exist and they do have access. Even if I do any kind of code to check if the file exists, it fails on that with the same type of error.
When that error is received, if I manually go navigate to the path in another version of Excel or Windows Explorer, which works every time, and then I go back to continue running the code from the break point, it continues running with no issues. It's behaving as if I must go prove to Excel or my system that I can access that path, and then Excel will let the code run.
Once I "prove myself worthy" the code will work every time, even if I close the workbook and re-open it. It will continue to work UNTIL I reboot my system, then it has to be "retrained".
I really don't even know how to search for a solution on this because it really has nothing to do with DIR or really trying to test if the path exists.
It's almost as if I need to do a full scan or something to test all accesses. Any I should point out, this is ONLY an issue with SharePoint paths. Never a normal network drive or anything else.
Any ideas? Thanks!