Developer forum

Forum » Integration » Code expressions not being executed

Code expressions not being executed

Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Hi there,

I have a job that maps EcomOrders to XML. I have one column that contains a code expression:

@Code(System.DateTime.Now.ToString())

But when I run the job, the entire column is ignored:

<item table="EcomOrders">
  <column columnName="OrderId"><![CDATA[ORDER6830]]></column>
</item>

When I change the columnn to be a normally mapped column, it shows up in the XML as expected.

Bug? Or not supported on XML?

Running on 10.20.6.


Imar


Replies

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

Hi Imar,
yes, will be fixed in 26352.

As a temporary workaround you can edit the column mapping xml manually in the job xml file by adding a source column for it to work:
<columnMapping>
.......
  <sourceColumn>OrderComment</sourceColumn>
  <destinationColumn>OrderComment</destinationColumn>          
</columnMapping>

BR, Dmitrij

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

I can confirm this is now working in 10.20.7, thanks!

 

You must be logged in to post in the forum