Duplicate detection for two separate data card using Power Apps using Enforce unique value in SharePoint
I have a SharePoint Customize form, where two list which i have created in SharePoint by enabling enforce unique value "Yes" for two list named as Document number and Check number. While using the formula for the Document number and check number.
When the list is submited with duplicate value for Data card document number; the error message is appearing for both the Data card instead of one. For e,g if i have put duplicate value in Document number the error message is throwing for Document number and check number. The formula i used in error message Datacard for that particular card is If(!IsEmpty(Errors('Europe Manual Check Request')),"Duplicate Item-This value already exists in the list"). Pls help me to throw error message, If the document has duplicate value. When the check number has duplicate value then it show an error for Check number separately not for both at the same time. Pls refer screenshot for better understanding.