This can also occur when trying to delete a related record through in incomplete relationship. This is often encountered when a relationship is based solely on global fields.
For example, if you have a relationship that uses global fields and no records in the parent table, then having a value in the global fields will complete the relationship and retrieve related records to display in a portal, but trying to delete a portal row will give this error.
Adding a single record to your parent table will allow the record to be deleted.
This happens also when you use Go To Related Record using "match found set" and the FIRST parent record has no related records.
If there are no related records for the whole set, it returns error 401 (No matching records).
So the correct way to test for no related records is:
- GTRR Match current record only: test for error 101
- GTRR Match found set: test for error 401