The error message "The unique field already contains duplicated values" appears. How do I check which records contain duplicate values?
When updating your app's settings, you may see the error message "Failed to complete the process. The unique field already contains duplicated values. Please remove them and try again." In such a case, you can check which records contain duplicate values by performing data aggregation using the Chart feature.
On the App settings screen, click Discard changes and click OK to abort the app settings update, then check the records with duplicate values by following the steps below.
How to check which records contain duplicate values
To check which records contain duplicate values, perform the following steps.
-
Open your app.
-
Click the App settings icon (the gear-shaped icon) at the upper right of the View screen.
-
Click the Graphs tab.
-
Click the Create Graph icon (the plus sign-shaped icon) at the right of the screen.
-
Set up a chart with the following settings.
- Name: Optional (Example: Duplication Check)
- Chart type: Table
- Group by (Level 1): Select a field to prohibit duplicate records
- Function: Count (Number of Records)
- Filter: All records
- Sort by: Total, Descending
-
Click Save on the upper left side of the screen.
-
Click Update app at the upper right of the screen.
-
On the confirmation dialog, click Update app.
Now, display the chart you created.
If a field value is shown as having 2 or more records, it means there are multiple records that contain that field value. Click Show records and modify the field value, or consider deleting records so only one record with that field value remains.
If you still cannot resolve the error
If the error persists even though the number of records for all the field values is '1', the possible causes are as follows:
-
Due to the Permissions for records settings, you cannot view records that contain duplicate values
Check the settings and make sure that you have permission to view all records, then try the steps described in How to check which records contain duplicate values.
For more details on the Permissions for records settings, refer to the following page.
Configuring Permissions for Records
-
There are records with duplicate values on the app's preview screen
Open the preview screen and try the steps described in How to check which records contain duplicate values.
To open the preview screen, click the App settings icon (the gear-shaped icon at the upper right of the View screen), open the App settings tab, and click Preview.