Skip to main content
Inspiring
November 6, 2025
Answered

catalog:findPhotoByUuid( tostring(iid) ) Returns nil

  • November 6, 2025
  • 1 reply
  • 42 views

So I have the following code with catalog:findPhotoByUUid() always returning nil. I have the code in a task and I've treble checked  iid to be a correct uuid from photo.localIdentifier. It always returns nil and I can't for the life of me see why. Any thoughts appreciated.

 

```

local iid = 7195703
local ppp = catalog:findPhotoByUuid( tostring(iid) ) -- ppp always nil
 

```

Correct answer kimaldis

Got it; uuid not localIdentifier. Doh!

 

1 reply

kimaldisAuthorCorrect answer
Inspiring
November 6, 2025

Got it; uuid not localIdentifier. Doh!