Search code examples
phprets

Getting several '20403 = No Object Found' errors while downloading photos from RMLS using phRETs


I am trying to use phRETs to get photos from RMLS server (Matrix) using Media table for each photo UID. I am able to get photos for all sizes using my code, but when I try to run it against my DB for bulk updates (not huge, just few thousands) of photos, I am getting several '20403 = No Object Found' errors and hence not able to download the photo via nightly photo fetch job that we are trying to develop.

Is there any specific requirement or parameter that I must pass? I don't wan to use Property table here, but need to do it via Media table in order to avoid downloading already existing photos.

Any pointers/help here would be highly appreciated!


Solution

  • We finally found a workaround here.

    We are still using Media table to get latest modified photos, but to fetch them from RMLS/Matrix server, we are using Property resource -

    $rets->GetObject("Property", $photoType, $propertyId, $photoNum);
    

    All the parameters such as $propertyId and $photoNum are already available in in Media table, and we know all three photo types as well.

    This has fixed our problem of getting several '20403 = No Object Found' errors. Thought of adding it here so that it might help others.