cancel
Showing results for 
Search instead for 
Did you mean: 

Inconsistent behavior of 'Map' data type

Former Member
0 Kudos

Hi,

I have a transaction property of data type 'map' with the values { 1000=[string:bar], 3000=[string:restaurant], 2000=[string:cafe]}.

The function Transaction.MapProperty returns "bar" only on the first execution of the transaction. The other times, it returns "null". When I looked at the property values, I noticed some leading spaces in front of the index values, which I didn't have in the first place. Could that be causing a mismatch?

Any thoughts?

Regards,

V M.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Maintaining two list variables solved this issue.

Used the expression Transaction.List2{#find(Transaction.List1,<matching value>)#}

Conditions: i) All the values in List1 and List2 are unique.

ii) The values in List1 and List2 are mapped by the corresponding indices.

Regards,

VM.

agentry_src
Active Contributor
0 Kudos

Let me repeat this again:

Upgrade your MII installation. You are on an outdated version.

This is the source of your issues.

Former Member
0 Kudos

I understand your "Upgrade is the cure of all" motto. While its on the cards, do you have a fix for now?