I've gotten an error like this when I've forgotten to link a header & detail table in RDS - or when I've forgotten to fill the linked field.

Never understood what it had to do with the lack of relationship, but then any woman I've ever gone out with will tell you that I have a lot to learn about relationships...