Skip to main content
Jordy Meow
Inspiring
July 14, 2015
Question

Can’t update this collection in processRenderedPhotos

  • July 14, 2015
  • 1 reply
  • 1166 views

Hello,

I am working on a Publish Service.

Now I am trying to retrieve information about a certain collection within a "processRenderedPhotos" process.

I am using catalog:getPublishedCollectionByLocalIdentifier(). However, it ends up with this error:

Can’t update this collection.

An internal error has occurred: Can't get collection information after creating collection inside the same withWriteAccessDo function

I don't know why it is written "Can't update" because I am only getting a collection. Seems like it is impossible to do this within a processRenderedPhotos but why? Any way I can go around this?

Thanks a lot!

This topic has been closed for replies.

1 reply

johnrellis
Legend
July 14, 2015

Without seeing your code, I don't have any ideas why you might be getting that error.

However, what information about which collection do you need? An LrExportContext object (passed to processRenderedPhotos()) has lots of information about the current LrPublishedCollection.

Jordy Meow
Inspiring
July 14, 2015

Hello John,

The code is long but if you have a processRenderedPhotos function somewhere, drop a call to getPublishedCollectionByLocalIdentifier() and you will see it doesn't work.

I need information not only about the current LrPublishedCollection but about the parents. I also want to setRemoteId on all those. Now, I wonder, isn't it the place to set the remote ID for the collections and sets?


I was thinking I could setRemoteID when the collections are created but what if the user does this in the train, without connection? And choose to Publish later?

johnrellis
Legend
July 14, 2015

exportContext.publishedCollection is the current published collection.  Does the method :getParent() work properly within processRenderedPhotos()?  And does :setRemoteId() also work in that context?