cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Datahub , resolve function in *target.xml file is not giving expected results for Order interface.

Former Member
0 Likes
369

Hi Team,

I have a use case where I receive 'country' at 'Order Header' level and we need to populate country at 'Order Line Entry' level as well. To do this I am writing below expression in target xml of the Order.

'ABC'+resolve('CanonicalOrderHeaderOrderAddress').country+'ProductCatalog:Online:'+itemSku

which should pick country from OrderHeader, and populate at Order Entry level. This is happening in most of the scenarios but for few rare scenarios I am seeing below exceptions , during publication.

Could not transform by expression 'ABC'+resolve('CanonicalOrderHeaderOrderAddress').country+'ProductCatalog:Online:'+itemSku

Accepted Solutions (0)

Answers (1)

Answers (1)

0 Likes

For those exceptional scenarios, have you verified the data is valid or existing. For example, header isn't null or has special characters? If it works for most cases, but not a few, it sounds to me there's something weird with the data.

Former Member
0 Likes

, Yes I used the same Idoc and tried that in local system and lower ENV, it didn't fail. and in PROD also when we re-trigger the same Idoc there is no issue.