Lightroom SDK: rendition:recordPublishedPhotoId/Url

  • 2
  • Problem
  • Updated 6 years ago
As it stands, if there is a duplicate (published) ID, then

rendition:recordPublishedPhotoId appears to work when it didn't.
rendition:recordPublishedPhotoUrl causes an untrappable (and misleading) internal error in Lightroom (so plugin thinks it worked, but user can see there was a problem).

The error message the user sees:

PS - The root error thrown internal to Lightroom (when attempting a database update) as indicated by DebugView is:

"remoteId is not unique" - which is the real problem.

I propose a (trappable) error is thrown when recordPublishedPhotoId is called, with a sensible error message, like "that ID is already taken by...", so the user can be notified and the photo can be added to an error collection, since it may need special attention (always does in my case).

PS - The symptoms from user point of view:
- The publish completes otherwise successfully, despite the error message that is displayed.
- The plugin assures user that everything went OK, although it didn't.
- Photos that were published but caused the error, appear not to have been published (e.g. they are still in the "New Photos to Publish" section), although from a plugin perspective, they were successfully published: rendered+uploaded...

Photo of Rob Cole

Rob Cole

  • 4831 Posts
  • 370 Reply Likes

Posted 6 years ago

  • 2

Be the first to post a reply!