Developer forum

Forum » Dynamicweb 10 » Integration: Scripting type ignored when column is inactive?

Integration: Scripting type ignored when column is inactive?

Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Hi there,

I have a job with two mappings from XML to EcomProducts (for two different languages). Each mapping hardcodes the manufacturer like this:

Mapping 1 

Mapping 2

The only difference between these screenshots is that one is set to supply a value only on Insert and has Active = false. the other one always sets the value and is active.

When I run this job, I get a whole bunch of products with their *ProductNumber* set to MANU97 which is obviously not right!

Any idea what's causing this? Could it be that the column is marked as inactive and then still excecutes the normal mapping? In the job XML I can see this:

The other mapping is the same except for the values for isActive and scriptValueForInsert

Note the reference to the column ProductNumber. That's the first column in the XML so I assume that's why it got picked when converting this column to a constant.

Imar


Replies

 
Rasmus Sanggaard Dynamicweb Employee
Rasmus Sanggaard
Reply

Hi Imar,

 

Seems this is a bug #26320

 

BR Rasmus Sanggaard

 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Thanks Rasmus,

Is the work around to remove the inactive mapping?

Imar

 
Rasmus Sanggaard Dynamicweb Employee
Rasmus Sanggaard
Reply

Hi, 

Yes that would be the way. 

 

BR Rasmus Sanggaard

 

You must be logged in to post in the forum