@idi527 thanks for the response.
This does not work as it checks only the changeset and not the participants records. It throws error if changeset does not have primary key. Also, there can be possibility that participant records had a primary: true for a specific participant but changeset is carrying primary: false for same participant. Basically, I need to be able to check it over participants records with changeset applied but before persisting the data.
BTW, I changed valid: true to valid?: true in the above code.






















