PathFile Access Error when saving in G drive directory - excel

So the issue is as follows.
I have created a VBA task that runs a query that returns some insignificant amount of data in our databases. It then does some simple calculations in the excel file, and finally it creates a new folder and it the saves the file to our department shared drive in Google Drive (we have a windows explorer path to the directory named G drive).
It works ok on my end but now I have sent the whole .xlsm file to my collegue and once she run the vba code, it throws an error saying Path/File Access Error. We have tried chaning the directory where it creates a folder and saves the file on her local C drive, and it works just fine.
Any ideas how to remedy this issue?

Instead of uploading to a windows explorer path, you should upload to an absolute path of google drive, as that is the same no matter who tries to access it. There is a guide here that accomplishes exactly that:
https://medium.com/coalmont/google-drive-api-using-excel-vba-80e3d7e41488
If for some reason that guide is not available, just google something like "vba excel upload google drive".

Related

Download folder containing large files in the google drive to Linux

This is the error code I get. As suggested here, it is because the file size is too big. Probably some of the files in the folder are very large (images in raw format).
Access denied with the following error:
Cannot retrieve the public link of the file. You may need to change
the permission to 'Anyone with the link', or have had many accesses.
You may still be able to access the file from the browser:
Download ended unsuccessfully
Is there a command that I can download them to my linux machine?
This is the command I am using
gdown --remaining-ok --folder https://drive.google.com/drive/folders/<id>?usp=sharing
Wild guess the download link you have came from the google drive web application.
Someone right clicked on a file and selected share.
They then entered the email address of someone to share that file with.
Somehow you were given the Link that was emailed to that email address
The only drive account that can download that file is the owner of the email address it was Shared with. So you will need to be logged in as that account to download it.
Option would be if the owner of the file had created a share with everyone link instead of having supplied an email address.
This error has nothing to do with Linux or the size of the file

Google Drive XLSX File not readable anymore (Rescuing corrupted file)

I had created a google sheets (xlsx file) for my studies and after I finished the studies, stored it on pcloud and deleted on Google Drive.
Upon trying to open it on pcloud, I just noticed, it's corrupted. pcloud claims there is a password protection, but there shouldn't (as I didn't set any).
So I asked my file to be restored from Google Drive (as it was already deleted permanently) and was able to get it restored. However it's also not openable there anymore.
Since the file still contains some mb of size and somewhat text (if I try to open with Visual Studio Code it contains what seems to me wrongly encoded), I am wondering if there is really no way to restore it somehow.
Please find attached an example of how the file looks in Texteditor:
If you have any idea how I could try to restore it, I would be thankful for any kind of help. (Pcloud and Google Support weren't)
I am using:
MAC OS Monterey
File was downloaded from Google Drive (Chrome & Safari tested)
Tried to open it with: Google Drive, Numbers (MAC), CotEditor, Visual Studio Code
Thank you and sorry!

Sharepoint-Mapped Network Drive can create new folders but not rename

I was able to map my sharepoint drive on my local computer (Note: this was not using the sync option on sharepoint, as I do not have access to do so). I am able to create new folders, however I am unable to rename it. When I try to rename the folder, I get the following message, regardless of how many characters I put:
I can change the file name from the sharepoint web portal, but not on my mapped network drive.
I am using Windows 10
I don't know if it's the same problem, but this guy got the same error message when he mapped the drive using a / at the end of the URL.
(i.e. he solved remapping: https://hostname.domain.com/Shared Documents
instead of: https://hostname.domain.com/Shared Documents/ )

Copy file from ehternet-connected FTP - no internet

I have a device that stores data in an FTP-accessible folder. I can connect to it through windows (ftp:10.19.1.101) and map drive to it (C:\Users#ME#\AppData\Roaming\Microsoft\Windows\Network Shortcuts\MyDevice). There are no usernames or passwords - if the device is attached, you have access.
i can click and drag the file in Windows. I want to automate that in VBA so I can process the file.
The single file is located at the root (ftp://10.19.1.101/fs.log), and I want to copy it to a location on my C drive to process it in Excel. I've tried for hours using code snips found here to no avail. I don't access the internet to get it, and I think that might be the problem, since 99% of FTP activity is that way.
FileCopy doesn't work either.
Any help appreciated
If you can access it and map it to a drive, open up a cmd then type 'net use' and hit enter (when it's plugged in and mapped to a drive). You should then have the long location used by windows which you can use in your procedures to play around with the file?
HTH

Copy issue to SharePoint UNC location

I'm trying to copy a zip file using command prompt from source to destination.
Size of the zip file is 1.14 GB.
COPY \Server1\DataFeeds\Dec\feed1.zip C:\Folder1
This works fine. I can see the zip file copied over to C:\Folder1 & it shows size correct, i.e. 1.14GB
COPY \Server1\DataFeeds\Dec\feed1.zip \upload.website.com\DavWWWRoot\Documents\Dec
This does not work as expected. I can see the zip file copied over to SharePoint unc location (\upload.website.com\DavWWWRoot\Documents\Dec), but it's just EMPTY FILE - SIZE 0 BYTES
What could be the reason that the copy not working for SharePoint location as destination?
How can I fix this? Thanks.
More Info: Here is the error logged in windows system log: Any help will be highly appreciated.
Application popup: cmd.exe - Delayed Write Failed :
Windows was unable to save all the data for the file. The data has been lost.
This error may be caused by a failure of your computer hardware or network connection.
Please try to save this file elsewhere.

Resources