Highlighted
Honored Contributor.
Honored Contributor.
1188 views

***URGENT**** Cannot evaluate expression (us.notify, process.msg)

Jump to solution

Hi,

 

We are getting the Following error, whenever we move the Change from one phase to Next phase.

All the entries in Notification looks fine.

 

 

we tried like,

1) Main Condition as false for all the notifications.

Then deleted entries in a Particular notification and started  adding one by one.

 

While doing that i can see like, if we add 2 entries which is reffering same HTML Template, that time we are getting the error mentioned above.

if the Reffering HTML Templates are different then we are not getting that error.

 

 

This issue is happening for all the Notifications wherever we use HTML Templates.

Any One Knows, What will be the issue?

 

Thanks in advance.

 

Regards,

Shalini R

0 Likes
14 Replies
Highlighted
Absent Member.
Absent Member.

Hello Experts,

 

We have scheduled a javascript to run every day at 9AM to send emails for Open Tickets.

We are getting this error on executing the javascript. Need your inputs.

Process panel process.msg in RAD us.notify encountered error in line 6 (us.notify,process.msg)
Cannot evaluate expression (us.notify,process.msg)
Cannot evaluate expression (us.notify,process.msg)
Bad arg(2) oper = (us.notify,process.msg)
Cannot evaluate expression (us.notify,process.msg)
Cannot evaluate expression (us.notify,process.msg)

Unrecoverable error in application: scmessage on panel process.msg

We are callling us.notify to send emails.

Below are the HTML Notification expressions.

jscall( "htmlemailtemplates.getMailBody", "IM RFO Update", $L.file, $L.file.save, number in $L.file)

Thanks,

VNK

0 Likes
Highlighted
Micro Focus Expert
Micro Focus Expert

This is what getMailBody function is expecting for its input parameter. As mentioned by Audrey previously, if you give it what it wants, it shouldn't error.

function getMailBody(templateName, $RECORD, $RECORDOLD, recipient, lang)

As mentioned by shalaini, you can pass "en" for the language parameter. Your issue seem to be the fact that you are passing it a number when it's expecting a text value for a recipient.

0 Likes
Highlighted
Absent Member.
Absent Member.

Thanks to all.

Script is working now.

I have passed rteNames.push("record");  instead of rteNames.push("$file"); .

 

Thanks,

VNK

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.