Property "DoesLargeExist" throws "InvalidOperationException"

Apr 20, 2009 at 7:43 PM
... with message "Original Dimensions are not available"

This is the sequence of steps to acquire images:
- Disable caching
- Add keywords to PhotoSearchOptions object
- Add page number
- Add number of photos per page
- Add licenses
- Perform photo search
- Exception here: Iterate through the list of returned photos, determine whether Large photo exists and save it, if not do the same for medium.

Is there anything else that I may be missing? Cannot find anything relevant in the documentation. Thanks!
Apr 27, 2009 at 8:27 AM
You need to make sure you are asking for the OriginalDimensions when performing your search, and that the user in question has a pro account so that that information can be returned by the API. OriginalDimensions are turned on with the PhotoSearchOptions.Extras property being set.
May 11, 2009 at 5:56 PM

Hi, samjudson

Thank you for your answer. I have done what you suggested but still get the error once in a while.

When you say "user in question", are you referring to the author/owner of the photo?

May 14, 2009 at 12:30 PM

Yes, I'm referring to the owner of the photo.