| @@ -44,9 +44,9 @@ | ||
| 44 | 44 | |
| 45 | 45 | // check all groups for a unique value |
| 46 | 46 | $unique_value = $this->find_unique_field_in_data($data, $field); |
| 47 | 47 | |
| 48 | - if (empty($unique_value)) { | |
| 48 | + if (!$this->has_identifier_value($unique_value)) { | |
| 49 | 49 | continue; |
| 50 | 50 | } |
| 51 | 51 | |
| 52 | 52 | $has_unique_field = true; |
| @@ -73,9 +73,9 @@ | ||
| 73 | 73 | } |
| 74 | 74 | } |
| 75 | 75 | |
| 76 | 76 | if (!$has_unique_field) { |
| 77 | - throw new MapperException(__("No Unique fields present.", 'jc-importer')); | |
| 77 | + 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')); | |
| 78 | 78 | } |
| 79 | 79 | |
| 80 | 80 | if (!empty($meta_args)) { |
| 81 | 81 | $query_args['meta_query'] = $meta_args; |