Developer forum

Forum » Integration » Language versions of product disabled after DW provider import

Language versions of product disabled after DW provider import

Davy Capiau
Reply

Hi,

DW v

We're importing products via the DW provider for 3 languages. We also have 2 other languages that are not in the import.

When running the provider in the Ecomproducts table, the 2 languages that are not included in the import are deactivated.

Settings on integration level and table level are not checked to disable anything.  This seems strange behaviour for the DW provider. Is this normal or maybe caused by the older DW9 version?


Replies

 
Matthias Sebastian Sort Dynamicweb Employee
Matthias Sebastian Sort
Reply

Hi Davy,

I've looked inside the sourcecode of our Dynamicweb Provider and can't see that it should deactivate behind the scenes.

I tried to reproduce your scenario locally (on a 9.19.2 version), and can't seem to make it deactivate the products from other languages.

Is it possible that you could share some more informations about your job/mappings, and double check that you don't have other jobs (or Scheduled tasks) that deactivate your products? :)

BR

Matthias Sort

 
Davy Capiau
Reply

Hi Matthias,

Thanks for your investigation.

Attached you find the job. It's caused by the EcomProducts mapping.

DW version: 9.15.17

Kr

Davy

 
Matthias Sebastian Sort Dynamicweb Employee
Matthias Sebastian Sort
Reply

Hi Davy,

Files are not downloadable on forum :(

Since you're running a 9.15 version then I think it is easier if you go through our support, they are able to go into more detail.

BR

Matthias Sort

 
Davy Capiau
Reply

Hi Matthias,

FYI:

- No mappings enabled => Run the profile => languages not included in the source file get disabled.

 
Dmitriy Benyuk Dynamicweb Employee
Dmitriy Benyuk
Reply
This post has been marked as an answer

Hi Davy,
you have some custom table script in your job so that maybe the reason:

<mappings>
<mapping>
<sourceTableName>EcomProducts</sourceTableName>
<sourceTableSchema />
<destinationTableName>EcomProducts</destinationTableName>
<destinationTableSchema>dbo</destinationTableSchema>
<deleteRowsMissingFromSource>False</deleteRowsMissingFromSource>
<addColumnsFromSourceToMappingIfMissing>False</addColumnsFromSourceToMappingIfMissing>
<scriptClass>CustomCode.Tablescripts.MapToMatchingVariantInPrimaryProductAndCreateMaster</scriptClass>
<options>
<option>
<name>DiscardDuplicates</name>
<value>true</value>
</option>
</options>


BR, Dmitrij

Votes for this answer: 1
 
Davy Capiau
Reply

Hi Dmitrij

I thought this wouldn't apply without the active mappings. But yeah, that's the only thing that makes sense. Thanks!

 

You must be logged in to post in the forum