Cause: You attempted to query detail records without first creating a master record.
Action: Create a master record, and then query the detail records.