Developer forum

Forum » Development » Job fails when image does not exist

Job fails when image does not exist

Mikkel Ulstrup
Reply

Hi,

 

When using the "Import Perfion Images Add-in", it fails when an image is missing. 

2017-09-27 11:08:04.552: Error downloading image Code:NotFound. Message: The remote server returned an error: (404) Not Found.. Id:52f1e858-1f4e-4711-8f01-787eb7863d2e. Url: http://[PerfionUrl]/Perfion/Image.aspx?format=png&id=52f1e858-1f4e-4711-8f01-787eb7863d2e.
2017-09-27 11:08:04.599: Error downloading image Code:NotFound. Message: The remote server returned an error: (404) Not Found.. Id:4a4fda58-944d-42e4-b103-7e90679632ed. Url: http://[PerfionUrl]/Perfion/Image.aspx?format=png&id=4a4fda58-944d-42e4-b103-7e90679632ed.

After these two errors, the import just stops.

 

Maybe it could get a try/catch, so the rest of the images would still be imported?

 

I thought this was fixed in an earlier version, maybe it just didn't get fixed in DW9?

 

Best regards

Mikkel Ulstrup


Replies

 
Morten Bengtson Dynamicweb Employee
Morten Bengtson
Reply

Hi Mikkel,

Please check the version of the Dynamicweb.DataIntegration.ScheduledTaskAddIns.ImportPerfionImagesAddIn assembly in the bin folder.
Is it version 1.0.2? Then the import should continue on errors.

Try to enable "Log all requests and responses" in the perfion images add-in settings and check the log to see if you can spot some issues in the request/response data.

If the images have been downloaded previously then the import will skip those images unless they are marked with a last modified date that is after the last modified date of the local file (remote file has been updated since last import).

 

Best regards,
Morten

 
Mikkel Ulstrup
Reply

Hi Morten,

 

The version is 1.0.2.

As the above log states, the images are not found. They have been deleted on the server, but the refference still exist in Perfion.

The images have not been downloaded previously.

 

Best regards

Mikkel Ulstrup

 
Morten Bengtson Dynamicweb Employee
Morten Bengtson
Reply

Please contact support and provide a URL to the website so that we can take a closer look at it.

Best regards,
Morten

 

You must be logged in to post in the forum