Skip to content

fetchIfNeededInBackgroundWithBlock : [Error]: Object not found. (Code: 101, Version: 1.14.1) #987

Closed
@burf2000

Description

@burf2000

So I have spent the day trying to track this down.
History, moving from Parse to Parse Server (latest version of all)
I have a website that creates a record (Search) and attaches a couple of images to it (SearchPicture) for which it creates a relationship (Parse.Object.extend("SearchPicture")).

This works perfect in Parse.
On the iOS end, we load up the Search, and loop through its relationships to SearchPictures and use fetchIfNeededInBackgroundWithBlock.

Moving it to Parse Server, I get [Error]: Object not found. (Code: 101, Version: 1.14.1), I can see the ID of the record it is trying to find (gq5h0xddGA) and I can see the record in Mongo :

_{ "_id" : "gq5h0xddGA", "searchPictureImage" : "4992d20cad4f3d8c90804efa42f6475a_Screen Shot 2016-07-15 at 13.41.23.png", "_created_at" : ISODate("2016-07-21T13:31:18.592Z"), "updated_at" : ISODate("2016-07-21T13:31:18.592Z") }

If I just query the table normally (SearchPicture) in iOS it works fine and fetchIfNeededInBackgroundWithBlock is successful.

So it seems to be the link between Search and SearchPicture that causes fetchIfNeededInBackgroundWithBlock to fail

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions