koshimizu / google-docs-upload

Automatically exported from code.google.com/p/google-docs-upload
0 stars 0 forks source link

duplicate detection #50

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I'm using the following batch to upload an excel spreadsheet : java -jar 
E:\gdu\google-docs-upload-1.4.6.jar "\\xxxxx\xxxxx\xxxxx\AGENDA EVENEMENTIEL" 
-u xxx@xxx -p xxxxx -ra 
The batch file is running every five minute on a windows 2008 r2 server and 
upload an excel spreadsheet called "AGENDA 2011.xls" 

The expected output is a single up-to-date AGENDA 2011 spreadsheet on google 
docs but randomly the duplicate detection isn't working.
See the result in attached file.
The shared one should be updated but sometimes a new one is created instead.

Original issue reported on code.google.com by d...@mairie-aubagne.com on 26 Apr 2011 at 2:54

Attachments:

GoogleCodeExporter commented 9 years ago
I am also having a problem with duplicate detection 
I am uploading a folder that has subfolders for each staff member and that sub 
folder is sometimes recreated the new folder is not shared with them so they 
can not see it.
I have 151 user folders i.e. jdoe  that is shared with john doe at his google 
apps account jdoe@ourschools.org
it duplicates most of them then it gets to the m's and works fine for i.e. 
mjones thru zsmith

I am on os x 10.6
used tags --recursive --username usr@ourschools.org --password $pass 
--without-conversion --skip-all
when I run I have a total of 257 files to check
worked fine when I tests with only 6 sub folders so I may need to rework my 
script to upload each staff members folder on its own

Original comment by samco...@gmail.com on 31 Aug 2011 at 2:59

GoogleCodeExporter commented 9 years ago
rebuilt my script to upload each user sub folder individually the same folders 
duplicated.
figured out that it is the name on googles side is not flagging as duplicate. 
if I right click the folder on google and select rename and the click ok with 
out changing the name it then does not duplicate the folder.

Original comment by samco...@gmail.com on 1 Sep 2011 at 1:59

GoogleCodeExporter commented 9 years ago
that still did not fix it. every time I run it picks 20+ folders it dups then 
fix them and it finds 20+ more

Original comment by samco...@gmail.com on 1 Sep 2011 at 4:08

GoogleCodeExporter commented 9 years ago
I faced the duplicate issue I am uploading a folder of 6 files; 2 of my files 
out of 6 got duplicated. I deleted the 2 new files created and ran the script 
again which resolved the issue. I am not sure why  the duplication happened. I 
am using the below script:

java -jar C:\gdu\google-docs-upload-1.4.7.jar %1 -protocol https --recursive -u 
xyz@xyz.com -p xyz -ra %*

Original comment by j.kha...@kr.om on 23 Apr 2012 at 7:02

GoogleCodeExporter commented 9 years ago

I'm having the same issue:

java -jar %bin_path%google-docs-upload-1.4.7.jar kml --without-folders 
-username XXXX -password XXXX --protocol https --without-conversion 
--replace-all --remote-folder XXXX

 - I'm uploading the files in the directory data once per hour
 - often a new file is created
 - but sometimes a new remote-folder is created - which is even more frustrating.

If I'm sharing the GDocs folder to others, suddenly the files get uploaded into 
the new directory and the reciepients are still looking at the older, non 
updating folder.

Original comment by robbkwri...@gmail.com on 16 Jun 2012 at 2:31

GoogleCodeExporter commented 9 years ago
any update on this ??

Original comment by shanebla...@gmail.com on 17 Jul 2012 at 4:11

GoogleCodeExporter commented 9 years ago
I'm really sorry, but I haven't had time to work on this.

Original comment by anton.be...@gmail.com on 17 Jul 2012 at 11:03

GoogleCodeExporter commented 9 years ago
Dear Anton Beloglazov,

Would appreciate your help into this to look into this...your tool his helping 
me and many other like me a lot and thanks a lot for this..but this issue seems 
to crop up sometimes...i do not know the reason for this. I have attached the 
screenshot for the error which crops up in the command prompt. Please spare 
some time to help us resolve this.

Thanks again.

Original comment by j.kha...@kr.om on 18 Jul 2012 at 4:21

Attachments:

GoogleCodeExporter commented 9 years ago
I sugest looking in to Google drive I have changed my scripts to write in to  
Google Drive folder then let it upload and sync to google. you can have your 
script handle duplicates.

Original comment by samco...@gmail.com on 18 Jul 2012 at 10:49

GoogleCodeExporter commented 9 years ago
What version of google api does this tool use? In the short term I wrote 
something to remove the duplicates.  It would be nice if you could proved a way 
to pass in the document key  that way you could ensure you are updating the 
correct doc 

Original comment by shanebla...@gmail.com on 18 Jul 2012 at 10:18

GoogleCodeExporter commented 9 years ago
I see the issue the code looks for the folder to update by name if there are 
two folder with the same name it will always select the first folder. 

It looks like parts of the api failure creates a duplicate folder .... (the 
code will always find the new folder first)

Original comment by shanebla...@gmail.com on 19 Jul 2012 at 11:01