This project is read-only.

Error when syncing

Jan 27, 2009 at 6:37 PM
Edited Jan 27, 2009 at 6:56 PM
BTW... Great utility.

Here are the steps to create my issue:

1. Start with no photos on your local machine
2. Select a photoset and choose to download missing photos
3. Click "Sync" -- Photos download perfectly with metadata
4. Click "Sync" again with the same options (download photos if missing, etc...)
5. Receive an error:

The sync process failed: Cannot download Flickr picture. A file with the name '...' already exists.

Any ideas?

Here is the full error from the log:

FlickrMetadataSynchr.exe Error: 0 : Yorrick.FlickrMetadataSynchr.Flickr.FlickrHelperException: Cannot download Flickr picture. A file with the name 'C:\Users\gschwartzbard\Pictures\test\974066944_7b8b5ce07a_o.jpg' already exists.
   at Yorrick.FlickrMetadataSynchr.Flickr.PictureDownloader.Download(String pictureUrl, String fileName, ShouldCancelDelegate shouldCancelCallback) in C:\Sources\FlickrMetadataSynchr\Main\FlickrMetadataSynchr\Flickr\PictureDownloader.cs:line 71
   at Yorrick.FlickrMetadataSynchr.Flickr.FlickrHelper.DownloadPictures(IList`1 flickrPicturesToDownload, String localFolder, EventHandler`1 progressCallback, ShouldCancelDelegate shouldCancel) in C:\Sources\FlickrMetadataSynchr\Main\FlickrMetadataSynchr\Flickr\FlickrHelper.cs:line 573
   at Yorrick.FlickrMetadataSynchr.Sync.SynchronizationWorker.DownloadUnmatchedPictures(IList`1 unmatchedFlickrPictures, Int32 startProgress, Int32 targetProgress) in C:\Sources\FlickrMetadataSynchr\Main\FlickrMetadataSynchr\Sync\SynchronizationWorker.cs:line 596
   at Yorrick.FlickrMetadataSynchr.Sync.SynchronizationWorker.DoSync() in C:\Sources\FlickrMetadataSynchr\Main\FlickrMetadataSynchr\Sync\SynchronizationWorker.cs:line 457
   at Yorrick.FlickrMetadataSynchr.Sync.SynchronizationWorker.DoSync(Object sender, DoWorkEventArgs e) in C:\Sources\FlickrMetadataSynchr\Main\FlickrMetadataSynchr\Sync\SynchronizationWorker.cs:line 825
   at System.ComponentModel.BackgroundWorker.OnDoWork(DoWorkEventArgs e)
   at System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument)
Jan 27, 2009 at 8:35 PM
Does this error also occur when you quit and restart the application between step 3 and 4?
Jan 28, 2009 at 1:39 AM
It does.  I also tried all three Match strategies.
Jan 28, 2009 at 9:44 PM
I am able to reproduce this issue with one picture. It is synthetic picture (not a photograph) for which the datetime taken in the metadata of the file does not match the datetime taken on Flickr after download. As such, it cannot be matched when the sync process is run again. The application wants to download the picture (again). When the application detects that a local picture with the filename it wants to create for the download  already exists, it fails.

I will have to investigate further why the datetime taken doesn't match after the download and first sync.
Jan 28, 2009 at 10:06 PM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.
Jan 28, 2009 at 10:20 PM
Check out the preview at to see if this bug has been resolved.