โ06-02-2022 12:12 PM
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โ
โ06-02-2022 12:29 PM
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
โ06-02-2022 12:34 PM
@viktor_n - Thank you, it worked but what I should do if I have to fetch value for any specific DB?
โ06-02-2022 12:43 PM
Can you explain it a little bit more what you want to achieve
โ06-02-2022 12:55 PM
Hi Victor,
Enclosed are the expression files. What I want is to retrieve 4 values (say to pass in child pipelines or in some mapper) and I am trying to do it as below but my expressions are failing. You already helped me to correct one of them.
What I want is that if I am in Dev then the expression must return dev configuration values and when in prod then prod values.
I would truly appreciate if you can help me doing so.
Database_Account
Oracle_Cloud_Soap_Account
HCM_Flow_Service_WSDL
Generic_Soap_WSDL
eval(โlib.environment.getAppConf(โOracleEBSโ).โ + lib.parameters.getAppConf(โparametersโ).EBS_Instance + โ.srcDBโ)
eval(โlib.environment.getAppConf(โHCMCloudโ).โ + (lib.parameters.getAppConf(โparametersโ).HCM_Cloud_Instance) + โ.Soap_Accountโ)
eval(โlib.environment.getAppConf(โHCMCloudโ).โ+ (lib.parameters.getAppConf(โparametersโ).HCM_Cloud_Instance) +โ.URLโ) + lib.parameters.getAppConf(โparametersโ).HCM_Flow_Service_WSDL_URL
eval(โlib.environment.getAppConf(โHCMCloudโ).โ+ (lib.parameters.getAppConf(โparametersโ).HCM_Cloud_Instance) +โ.URLโ) + lib.parameters.getAppConf(โparametersโ).Generic_Soap_WSDL_URL
HCM_Interface_config.expr (1.3 KB)
HCM_Interface_Processes.expr (695 Bytes)
config.expr (3.6 KB)