Skip to Content
avatar image
Former Member

Inconsistent behavior of 'Map' data type

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Nov 17, 2010 at 08:17 PM

    Let me repeat this again:

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

    This is the source of your issues.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

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

  • avatar image
    Former Member
    Nov 18, 2010 at 05:41 PM

    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.

    Add comment
    10|10000 characters needed characters exceeded