on 2019 Aug 14 3:55 PM
Hi Friends,
This is related to the Map variable in SAP MII. I have created a Map variable and assigned a value with a particular key. After that I try to get the value from Map using function getValueFromMap it gives me some error. Please have a look at the error message pasted below. At Tracer_7 I am printing the map. At Tracer_8 I am trying to retrieve the value using getValueFromMap which gives the error.
Any help on this very much appreciated.
SAP MII Version 15.1 (SP5)
[INFO] [Tracer_7]Local.TankMap->{T8132=[string:120.414268493652]}
[ERROR] Invalid link expression in action [Tracer_8]: getValueFromMap(Local.TankMap,"T8132") [ERROR] For Transaction : Default/SC/BLS_DynamicPCoQry[Tracer_8] Link ('Tracer_8.Message' [Assign] from "getValueFromMap(Local.TankMap,"T8132")") execution threw an exception. Exception: [while trying to invoke the method com.sap.lhcommon.expressioneval.Expression.evaluate(com.sap.lhcommon.expressioneval.ActionObjects, com.sap.lhcommon.common.NamedSet) of a null object loaded from field com.sap.xmii.bls.executables.links.AssignLink.expr of an object loaded from local variable 'this'] [WARN] [Tracer_8] Rolling back "Tracer_8.Message" to [[string:]] For Transaction : Default/SC/BLS_DynamicPCoQry [ERROR] For Transaction : Default/SC/BLS_DynamicPCoQry[Tracer_8] Action: Runtime threw an exception. Exception: [while trying to invoke the method com.sap.lhcommon.expressioneval.Expression.evaluate(com.sap.lhcommon.expressioneval.ActionObjects, com.sap.lhcommon.common.NamedSet) of a null object loaded from field com.sap.xmii.bls.executables.links.AssignLink.expr of an object loaded from local variable 'this'] [ERROR] Uncaught exception from Tracer_8, while trying to invoke the method com.sap.lhcommon.expressioneval.Expression.evaluate(com.sap.lhcommon.expressioneval.ActionObjects, com.sap.lhcommon.common.NamedSet) of a null object loaded from field com.sap.xmii.bls.executables.links.AssignLink.expr of an object loaded from local variable 'this'
Thanks
Shaji
Request clarification before answering.
In addition to the F I think the V is lower case as well:
getvaluefromMap(map,key)At least thats what the Functions helper in the link editor has it as on the box I have access too.
Regards,
Christian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Christian,
You are right. v is small case. But in the documentation it is written as getValuefromMap.
See the attachment
Hi Christian,
That was one combination I did not try in figuring out the case sensitivity.
Thanks for the help and clarification.
Cheers, Mike
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.