We're updating the issue view to help you get more done. 

Clarify invalid reference error

Description

From https://openvpms.org/forum/and-not-valid-last-name-field-customer#comment-11773

The generic message for when an object is not valid for a field is "... is not valid for this field". E.g. if the entered customer for an appointment cannot be found, it generates a message:

1 Failed to validate property Customer: Joe Smith is not valid for this field

This could be due to a number of reasons:

  • the object does not exist e.g. patient not found

  • the object is inactive

  • there is no current relationship between objects e.g. a customer no longer owns a patient

Change the message to "...does not exist or is not valid for this field" to provide a better indication as to why the
object is invalid.

Environment

Status

Assignee

Tim Anderson

Reporter

Tim Anderson

Components

Fix versions

Affects versions

2.0

Priority

Trivial