Forum Discussion

amit_saroha's avatar
amit_saroha
New Contributor III
4 years ago

Error in expression

Hi All,

Can you please help me understand why I am getting the below errors while using the below expression?

Expression -
eval(“lib.environment.getAppConf(‘OracleEBS’).” + lib.parameters.getAppConf(‘parameters’).EBS_Instance + “.srcDB”)

Error -

failure:

“Unexpected error occurred while evaluating expression: lib.environment.getAppConf(‘OracleEBS’).FNDV.srcDB”

value:

“Please check your expression”

reason:

“Please check your expression”

5 Replies

  • viktor_n's avatar
    viktor_n
    Contributor II

    Hi @amit.saroha,

    Try instead of eval function to do it with square brackets.
    I think that will work.

    Like this:
    lib.environment.getAppConf(‘OracleEBS’)[lib.parameters.getAppConf(‘parameters’).EBS_Instance]['srcDB']

    Regards,
    Viktor

    • amit_saroha's avatar
      amit_saroha
      New Contributor III

      @viktor_n - Thank you, it worked but what I should do if I have to fetch value for any specific DB?

      • viktor_n's avatar
        viktor_n
        Contributor II

        Can you explain it a little bit more what you want to achieve