Error codes · Declarations and their clauses
PW0365
refers_across_sources
The program must hold to this: a reference to a table another source holds is held by no database: the referred row may be missing, which get answers as None.
Reading the diagnostic
pw check prints the code in brackets, [PW0365], with the sentence above and the place in your program. Errors and diagnostics explains how to read one, and every code is listed with its rule.