Import from Excel stops running if image is not found on server

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
10 years ago
You have dropped the images into appropriate folder on the server and referenced them in the corresponding column/cell on the spreadsheet?
10 years ago
???? nopCom allows such now? before, 1.9 - 2.2 nopC renamed files or modified their names. but no, i've not done such bc well, where would i put'em? i can investigate some.
10 years ago
have you attempted or used this method before?
10 years ago
okay - so i figured it out. based on your suggestion to upload the images. turns out, the "image path" in the excel doc references the path on the server, not a local path, so one has to upload images referenced in the excel doc image path column before it will be seen while doing the upload. otherwise you get the "image can't be found" will appear for ya.

thank you guys - i am always grateful for your insight, suggestions, feedback and input. couldn't have done it without'cha.
8 years ago
rtsolutions wrote:
I ran into this issue as well. There is a quick fix. Just change this piece of code to make it continue if an image is missing.

In \Libraries\Nop.Services\ExportImport\ImportManager.cs – change:

if (String.IsNullOrEmpty(picture)

to

if (String.IsNullOrEmpty(picture) || !File.Exists(picture))


what if if I use nopcommerce 3.6

I have over 4000 products and about 80-100 of them are missing
7 years ago
rtsolutions wrote:
I ran into this issue as well. There is a quick fix. Just change this piece of code to make it continue if an image is missing.

In \Libraries\Nop.Services\ExportImport\ImportManager.cs – change:

if (String.IsNullOrEmpty(picture)

to

if (String.IsNullOrEmpty(picture) || !File.Exists(picture))


I'm looking for this in Nop v3.8 but can't find. Any help? Will this fix still work?
7 years ago
Upon second look, it seems NopCommerce now will simply upload those image files that exist and leave blank those that do not. Good stuff.
7 years ago
So a reference to the local file(image) in the excel column will allow the import ??
7 years ago
Actually, after doing a few imports, its apparent the process is stopped if it can't find the image. I wonder if there is a fix for this.
7 years ago
Any suggestions? No option to skip function?
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.