| @@ -53,9 +53,9 @@ | ||
| 53 | 53 | |
| 54 | 54 | // check all groups for a unique value |
| 55 | 55 | $unique_value = $this->find_unique_field_in_data($data, $field); |
| 56 | 56 | |
| 57 | - if (!empty($unique_value)) { | |
| 57 | + if ($this->has_identifier_value($unique_value)) { | |
| 58 | 58 | $has_unique_field = true; |
| 59 | 59 | |
| 60 | 60 | if (in_array($field, $this->_core_fields, true)) { |
| 61 | 61 | |
| @@ -77,9 +77,9 @@ | ||
| 77 | 77 | } |
| 78 | 78 | } |
| 79 | 79 | |
| 80 | 80 | if (!$has_unique_field) { |
| 81 | - throw new MapperException(__("No Unique fields present.", 'jc-importer')); | |
| 81 | + throw new MapperException(__('No unique identifier value present. Check that Permissions has a unique identifier set and this row has a non-empty value. File column references are stored as _iwp_ref_uid.', 'jc-importer')); | |
| 82 | 82 | } |
| 83 | 83 | |
| 84 | 84 | if (!empty($meta_args)) { |
| 85 | 85 | $query_args['meta_query'] = $meta_args; |