I have Commerce Product type with image field.
Feeds can import products from .csv with images very well, but only if images already uploaded.
If image missing, current product not imported at all.

First of all I set default image for image field.
So I want to get error message, but import all of current product fields (ignoring image field).
I can update image field value after uploading image.

Please add possibility to ignore file errors in import process.
Similar issue #1041030: path to image file and upload location when parsing a .csv file

Errors:

The specified file private://import/images/123456.jpg could not be copied, because no file by that name exists. Please check that you supplied the correct filename.

Invalid enclosure private://import/images/123456.jpg

    * Created 1 commerce product.
    * Failed importing 1 commerce product.

Comments

Ivan Simonov’s picture

Temporary solution in creation of 2 importers.
First for all product fields except images.
Second for SKU and images only.
But it is not true way.

Brian@brianpuccio.net’s picture

I have this problem when I'm using an RSS feed and feeds with feeds_imagegrabber.

The specified file http://farm7.staticflickr.com/6166/6265013658_c3e4c75726_z.jpg could not be copied, because no file by that name exists. Please check that you supplied the correct filename.

I don't see why it should ignore this feed item/node to be created, it should be created and the image attached.

Summit’s picture

Hi,
I have the same issue as the original poster.
My images are on another server and it is fine if they are not imported, but displayed.
How can I do this please. It took me a complete day to get to this point.
Everything is working except the image and enclosure of the image.

EDIT: the image url's are correct url's.
I use feeds tamper to provide the url and folder, and the image field only contains the filename. I tried with and without spaces and other encoding..
still no go..how to proceed please?

Please provide a working scenario if it is possible?

Thanks a lot in advance for your reply.
Greetings, Martijn

Summit’s picture

Hi,

I found out that may be the logic of image feed import is not correct...please suggest otherwise if I am mistaken.
I want to link to an image url in another place. I use the image field to show the image.

The image itself is not yet on my system. But when I see the log of my error it says:

The specified file Geemailleerde%20Bola%2025mm%20Roze%20Hart.jpg 
([url]/default/fles/Geemailleerde%20Bola%2025mm%20Roze%20Hart.jpg)
could not be copied, because no file by that name exists.

Off course this file does not exist..because I try to import it from another website?
How can I get the image url to import please without copying the file?

Greetings, Martijn

Summit’s picture

Version: 7.x-2.0-alpha4 » 7.x-2.x-dev

Set this to latest dev.
greetings, Martijn

danielhonrade’s picture

if your image is already there in the server, meaning uploaded via ftp, sfp, etc. in a folder

ex. sites/default/files/import_images/image1.jpg

just add the path with the image name in your csv

ex. sites/default/files/import_images/image1.jpg

Note: sites... and not /sites...

pdcarto’s picture

The original post was a request that Feeds not fail to import a node when an image (or file) source url that is mapped to an image (or file) field is blank or otherwise invalid. The current behavior is equivalent to rejecting a node for having a blank value in *any* field. That makes no sense. If I'm importing a bunch of nodes where some have pictures and some do not, I should not have to create two different importers to handle each case.

I stand corrected. It fails to import only when the image url cannot be fetched (not when it is blank). I'm still not sure I agree with the decision to reject these nodes, but it's not an unreasonable judgement call.

Thanks.

Summit’s picture

Hi,

I have this error constantly when trying to upload feed again.
Somehow by deleting feed the images itself are not deleted I think..

greetings, Martijn

imclean’s picture

Component: Feeds Import » Code

Try using the media module and media_feeds to grab remote images.

imclean’s picture