Developer forum

Forum » Integration » Selecting None on a column mapping still stores the original column name

Selecting None on a column mapping still stores the original column name

Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Hi there,

When I set up a job and choose None for the source column (and map it to a constant) it still stores a column name in the job XML. That causes some unnecessary overhead in the OData provider as it still uses that column in the select statement.

For example, I have this job mapping:

But the Job XML has this for the last two columns:

<columnMapping>
  <scriptType>Constant</scriptType>
  <scriptValue>true</scriptValue>
  <isKey>False</isKey>
  <isActive>True</isActive>
  <scriptValueForInsert>False</scriptValueForInsert>
  <sourceColumn>NPR_Search</sourceColumn>
  <destinationColumn>ProductImportedFromOData</destinationColumn>
</columnMapping>

 

The NPR_Search column is assigned even when I create a new column mapping and select None.

For the job itself it's not an issue, but the source columns are used to build up the GET URL in an OData source. For example, the mapping above leads to the following URL:

?$select=No%2CDescription%2CNPR_Search%2CNPR_Search

which brings back that NPR_Search column unnecessarily.

Thanks in advance for looking into this.

Imar

 


Replies

 
Rasmus Sanggaard Dynamicweb Employee
Rasmus Sanggaard
Reply
This post has been marked as an answer

Hi Imar,

 

We will take a look at it. It should be fixex in DW10, but makes sense to merge the changes to DW9 as well.

 

BR Rasmus Sanggaard

Votes for this answer: 1
 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Thanks, and yes, I agree it does make sense to have this in DW9 as well.

Cheers,

Imar

 

You must be logged in to post in the forum