Developer forum

Forum » Development » Problem when importing assortments

Problem when importing assortments

Anders Ebdrup
Reply

Hi Dynamicweb,

 

We have a problem when importing what seems like a special number of assortments where we get this in the log:

Mon, 09 Nov 2015 13:39:34 Starting import to temporary table for EcomAssortmentGroupRelations.  
Mon, 09 Nov 2015 13:41:40

Import job failed: Rækken er blevet fjernet fra tabellen og indeholder ingen data. BeginEdit() tillader, at der oprettes nye data i denne række. The failed input row is: [AssortmentGroupRelationAssortmentID:"VET"], [AssortmentGroupRelationGroupID:"1040"]

 

It seems to be caused by a missing check of the record contains any data as the exception is from this line in AssortmentHandler.cs:

if (dataRow.Table.Columns.Contains("AssortmentGroupRelationAssortmentID") && dataRow["AssortmentGroupRelationAssortmentID"] != DBNull.Value && !string.IsNullOrEmpty(dataRow["AssortmentGroupRelationAssortmentID"] as string) &&

Result from debugging the data is attached this post.

 

I am hoping for a quick hot fix :-)

Best regards, Anders

 

assortments.png

Replies

 
Dmitriy Benyuk
Reply

Hi Anders,
You are right, this is a bug, I'll fix it asap. Thanks for finding.
Kind regards, Dmitrij

 
Dmitriy Benyuk
Reply
This post has been marked as an answer

Hi Anders,
This problem is in TFS# 19771 and will be included in the next 8.7 hotifx - 8.7.0.9 which will be released today or tomorrow.
Regards, Dmitrij

Votes for this answer: 1
 
Kristian Kirkholt
Reply

Hi Anders

The problem TFS#19771 "Dynamicweb destiantion provider process assortments before clearing the table"  has now been fixed in version 8.7.0.9

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

http://developer.dynamicweb-cms.com/downloads/dynamicweb-8.aspx

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

Kind Regards
Dynamicweb Support
Kristian Kirkholt

 
Anders Ebdrup
Reply

Thank you for the quick hotfix!

 

You must be logged in to post in the forum