Error: The value "" is not an item.
I'm having trouble trying to import medias with "CSV - Medias". My csv is like this.
dummy,item,url
,id-003,https://example.com/id-003-image.jpg
,id-004,https://example.com/id-004-image.jpg
The error message is 'The value "" is not an item.'.
src/Processor/ResourceProcessor.php:350
case 'o:item':
$identifier = array_pop($values);
$identifierName = $target['target_data'] ?? $this->bulk->getIdentifierNames();
$itemIds = $this->bulk->findResourcesFromIdentifiers($values, $identifierName, 'items', $resource['messageStore']);
When a single item identifier is in $value array, $value will be [] after array_pop() and [] will be passed as the first argument to findResourcesFromIdentifiers(). As a result, no item will be found.
I don't know this is intended behavior or not, but when I use end() instead of array_pop() or pass [$identifier] instead of $values, the import is successful.
Could you please check this?
Thank you for your great work.