You must first validate that the Key Value field of the primary HL7 identifiers are set in Chart Data Fields.
This includes Chart ID #, Medical Record # and MPI Number.
Also, validate that these keywords are the same keywords used in your Patient and Encounter keyword type groups.