Are you sure the objects you're trying to retrieve are properly made and/or the reference between the 2 entities is set correctly? (You can check whether an ID is shown on the association on your input object from which you are trying the retrieve)
Also, does the user you're using have read rights on the association and the entity you're trying to retrieve?