feed-me icon indicating copy to clipboard operation
feed-me copied to clipboard

Asset import with filename from path - filename cannot be used as unique identifier

Open rene-haefliger opened this issue 2 years ago • 0 comments

Description

When importing images, I leave the "Filename" field blank. However, I want to use the system-assigned filename generated from the path as a unique identifier. But this is not possible, because the following error is triggered: Unable to match an existing element. Have you set a unique identifier for ["filename"]? Make sure you are also mapping this in your feed and it has a value. - Element.php: 172.

Steps to reproduce

  1. Set up feed to import assets with strategy create new ans update existing
  2. Map URL to image path and leave filename to don't import
  3. Set unique identifier to "Filename"
  4. run feed
  5. Look in Logs

Additional info

  • Craft version: 4.0.4
  • PHP version: 8.0.18
  • Plugin version: 5.0.4

rene-haefliger avatar Jun 20 '22 13:06 rene-haefliger