Developer forum

Forum » Integration » Job Failed with the following message: An item with the same key has already been added.

Job Failed with the following message: An item with the same key has already been added.

Kim Søjborg Pedersen
Reply

Hi Dynamicweb

I run 9.8.5 and whatever data source I choose I get the same error Message: 

Job Failed with the following message: An item with the same key has already been added.

Its a Rapido but all the rapido products is deleted. 

It sounds like this https://doc.dynamicweb.com/forum/pim/pim/-job-failed-with-the-following-message-an-item-with-the-same-key-has-already-been-added but mine is a Data Integration Job with a SQL provider to a Ecom Provider 

/Kim

 


Replies

 
Dmitriy Benyuk Dynamicweb Employee
Dmitriy Benyuk
Reply

Hi Kim,
can you check the "Discard duplicate key rows" option and try again?
Best regards, Dmitrij

 
Kim Søjborg Pedersen
Reply

Hi Dmitriy

It make no difference, I even tryed to make a conditionals selecting only one product but it also makes no difference. I seems that no matter what i try its still the same error

/Kim

 
Dmitriy Benyuk Dynamicweb Employee
Dmitriy Benyuk
Reply

Hi Kim,
can you attach you source file and DI job xml file to reproduce it?
Regards, Dmitrij

 
Kim Søjborg Pedersen
Reply

Hi Dmitriy

I have send you an e-mail with data to reproduce

/Kim

 
Kim Søjborg Pedersen
Reply

Hi Dmitriy

I have also tried with XML provider to Ecom Provider, but its the same error.

By the way I can import Groups, VariantGroups and VariantOptions but no Products!

/Kim

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi guys,

I can confirm I have the same issue in 9.8.5.

In my case, I have used a job and a source file that worked in 9.7.x. No changes to the job or the source file and I get the same error mentioned by Kim.

Adrian

 
Kim Søjborg Pedersen
Reply

Hi Adrian

Thanks Adrian for signing in here.


I thought it was me who could no longer set up a simple integration :) A little unbelievable that there is a flaw in a core function like this.

/Kim

 
Dmitriy Benyuk Dynamicweb Employee
Dmitriy Benyuk
Reply

Hi guys,
I can not get it reproduced, probably because it was already fixed in tfs# 79394(EcomProvider: Fix An item with the same key has already been added exception) which is in the released Dynamicweb 9.8.6 and in Dynamicweb.DataIntegration.Providers.EcomProvider 3.0.7 package, fixed from this forum post: https://doc.dynamicweb.com/forum/integration/error-importing-products-and-categoryfields?PID=1605.
So could you update to 9.8.6 or jsut update Dynamicweb.DataIntegration.Providers.EcomProvider to 3.0.7 package and try again?
Kind regards, Dmitrij

 
Kim Søjborg Pedersen
Reply

Hi Dmitriy

It might be a good idea to write the original error message on the DW bug list so we have a chance to search it on your website.
Nikolai should be able to solve this with the new search options in dw :)
 

/Kim

 
Kim Søjborg Pedersen
Reply

Hi Dmitrij
The problem is still there in 9.8.6 I get the same error message, my Dynamicweb.DataIntegration.Providers.EcomProvider  is 3.0.7
 

/Kim

 
Dmitriy Benyuk Dynamicweb Employee
Dmitriy Benyuk
Reply

Hi guys,
this is a new bug and will be fixed in the next hotfix / next Dynamicweb.DataIntegration.Providers.EcomProvider 3.0.8 version, tfs# 79810 created.
You can also use the attached dll with a bugfix.
Regards, Dmitrij

 
Kim Søjborg Pedersen
Reply

Hi Dmitriy
When I'm trying the attached version 3.0.8 Dynamicweb change it back to 3.0.7 when I use the website?

/Kim
 

 
Dmitriy Benyuk Dynamicweb Employee
Dmitriy Benyuk
Reply

That is probably because of your IIS site configuration (don't remember exact name, probably a custom solution) so you website connected to two folders with Application/bin folders,
so it always takes the dlls from the original folder and overwrites them
Regards, Dmitrij

 
Kim Søjborg Pedersen
Reply

Hi Dmitriy
Okay thank you for clarifying this and for the quick fix.

/Kim

 
Kristian Kirkholt Dynamicweb Employee
Kristian Kirkholt
Reply

Hi Kim

Please notice Dynamicweb.DataIntegration.Providers.EcomProvider version 3.0.8 has been released. 

Also the correction are part of the 9.8.7 release 

You are able to find this build in the download section:

http://doc.dynamicweb.com/releases-and-downloads/releases

Please contact Dynamicweb Support if you need any additional help regarding this.

Kind Regards
Dynamicweb Support
Kristian Kirkholt

 

 

You must be logged in to post in the forum