cancel
Showing results for 
Search instead for 
Did you mean: 

Write Variable is not working

huibin_lau
Participant
0 Kudos

Hi Integration Experts,

I have a delta sync scenario which I need to use a write variable to keep the last run date time in this format yyyyMMddHHmmss and retrieve it in the next run. In the content modifier I have defined a field ShipDate and it was filled during runtime. I also defined a write variable based on the field I created earlier but the value was not written. Any idea what is wrong?

Best Regards,

Jeremy

View Entire Topic
ashish_goel4
Active Participant
0 Kudos

Hi Jeremy,

Try displaying/checking the value of ShipDate if it is setting at runtime to the property properly. You can try it giving constant value in property.

Also, In write variable , check the box Global scope if it helps. Here also, you can try with current date and time.

capture1.jpg

Thanks,

Ashish

huibin_lau
Participant
0 Kudos

Hi Ashish

Try displaying/checking the value of ShipDate if it is setting at runtime to the property properly.

>I logged the value of ShipDate and it was passed correctly at runtime.

Also, In write variable , check the box Global scope if it helps. Here also, you can try with current date and time.

>If I use the current date and time then it works. However my requirement is to use the computed date and time based on the response but then the write variable does not work anymore.

Regards,

Jeremy


ashish_goel4
Active Participant

In that case, try with Xpath expression in write variable.

I used xslt to remove namespace from XML so xpath can be parsed. No need to set in property. For me it worked.

huibin_lau
Participant
0 Kudos

Thanks Ashish,

It works by using xpath. In principle it should work with property and header fields as well because it worked if I used the current date time but it is not the case. Anyway my problem is solved.

Have a nice day!

Best Regards,

Jeremy