This error occurs because of bug introduced in v4.2.2 release. The bug is fixed in v4.2.7 release build onward.
Resolution:
Execute below SQL:
Code Block select distinct visit_collection_mode from catissue_collection_protocol;
If the output is "ALL_SPMNS" then there is no issue. If output of the query different than "ALL_SPMNS" run the query given below.
Execute below SQL:
Code Block update catissue_collection_protocol set visit_collection_mode = 'ALL_SPMNS';