Highlighted
Honored Contributor.
Honored Contributor.
1191 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
1 Solution

Accepted Solutions
Highlighted
Honored Contributor.
Honored Contributor.

Hi All,

 

Thanks a lot for your Valuable responses.

 

We found out the root cause for the issue “Cannot Evaluate Expression”. The issue is Because of parameters that have been Passed to  Notification. We have to pass both email determine language and Recipient language.

 

Old One: jscall( "htmlemailtemplates.getMailBody", "Chm Change Close: Admin close", $L.file, $L.file.save)

 

New Changes in arguments: jscall( "htmlemailtemplates.getMailBody", "Chm Change Close: Admin close", $L.file, $L.file.save,”en”,”en”) with this syntax issue is getting resolved.

 

Thanks & Regards,

Shalini R

View solution in original post

0 Likes
14 Replies
Highlighted
Absent Member.. Absent Member..
Absent Member..

Hi Shalini,

 

1) Check the condition properly ,wether all the variables are correct or not ($L.file,$L.file.Save etc)

 

2)Then Check the "HTML Template" message class and message number "1"  defined by you is there in scmessgae or not.

 

3)Then goto db *html template" and search for the particular "template" .

 

4)then go to the process and to the RAD "us.notify" and pass

$origfile=$L.file.save

second.file   $origfile

 

you can use the below link for further queries

 

http://h30499.www3.hp.com/t5/HP-Service-Manager-Service/SM-Close-notification-L-file-save-gives-error/m-p/5394747/highlight/true#M82521

 

Thanks

jagabandhu

0 Likes
Highlighted
Honored Contributor.
Honored Contributor.

Hi,

 

 

As you mentioned, I have Tried by passing the values to us.notify.

Restarted service. But still i'm facing the Same issue.

 

Thanks,

 

Shalini R

0 Likes
Highlighted
Absent Member.. Absent Member..
Absent Member..

Hi

 

Then try by removing the variable from arguments and messages "$L.file.save".

 

Thanks

0 Likes
Highlighted
Honored Contributor.
Honored Contributor.

Hi ,

 

I have tried by Removing the $L.file.save from Arguments.

But Still facing the same issue.

 

 

Thanks

Shalini R

0 Likes
Highlighted
Absent Member.
Absent Member.

Having same name of template should not make any effect or should not led to error.

 

Expecting more error messages should be there which will show the line number creating the issue, can you check that?

 

Also try to pass the Argument like below,

jscall( "htmlemailtemplates.getMailBody", "<Template_name>", $L.file, $L.file.save, <respective Recipients column value>)

 

 

regards,

____________________________________
Assign Kudo, if found post useful and mark it accepted if solves the issue.
0 Likes
Highlighted
Honored Contributor.
Honored Contributor.

Hi Piku,

 

Have Tried, As you Suggested. But we are getting logged out and displaying "session Time out".

 

Thanks,

Shalini R.

0 Likes
Highlighted
Absent Member.
Absent Member.

Can you post the snaps shot for notification.

 

And what if you remove the one of duplicate line from notification.

Also more error messages should be there which will show the line number creating the issue, can you check that? may try log file also.

 

regards,

____________________________________
Assign Kudo, if found post useful and mark it accepted if solves the issue.
0 Likes
Highlighted
Acclaimed Contributor.
Acclaimed Contributor.

Hi,

 

You might also confirm that you have a correct corresponding line in the Email/Mail Subject Line tab for each of your lines in the Message tab.  They should all be something like this:

 

jscall( "htmlemailtemplates.getMailHeader", "<Template_name>", $L.file, $L.file.save, "")

 

I notice all your notification lines look exactly the same, although I can't see the Recipient column.  Are they the same and just going to different recipients?  If so, are any of the recipients receiving them correctly?  Are you using field values as your recipients (ie contact.name in $L.file or requested.by in $L.file, etc)?

 

Audrey

0 Likes
Highlighted
Honored Contributor.
Honored Contributor.

Hi Audrey,

 

Yes, we are using field values in the recepients field like "coordinator in $L.file"

 

Do we need to do some changes to the arguments in that case? Currently we are using :

 

jscall( "htmlemailtemplates.getMailBody", "Chm Change Open: Change review coordinator", $L.file, $L.file.save)

 

Please let me know.

 

Thanks

0 Likes
Highlighted
Acclaimed Contributor.
Acclaimed Contributor.

Hi,

 

You shouldn't have to change your recipient, I just wondered if those values were the only difference between your notification lines and if they might be a contributing factor to the error.  It doesn't really seem likely.

 

Also, my previous comment was not regarding your lines in the main tab (Message) of your notification record, it was in regard to the second tab (Email/Mail Subject Line).  For every line in the Message tab that builds the body of the message, you need a corresponding one in the same row position of the Email/Mail Subject Line that build the Subject line.  So, for example, something like below:

 

Row 1 of Message tab:

jscall( "htmlemailtemplates.getMailBody", "Chm Change Open: Change review coordinator", $L.file, $L.file.save)

 

Row 1 of Email/Mail Subject Line:

jscall( "htmlemailtemplates.getMailHeader", "Chm Change Open: Change review coordinator", $L.file, $L.file.save)

 

Notice that the Arguments in the Message tab line uses the getMailBody funtion and Arguments in the Email/Mail Subject Line tab line uses the getMailHeader function.  Is this how yours looks?

 

Audrey

 

 

0 Likes
Highlighted
Honored Contributor.
Honored Contributor.

Hi All,

 

Thanks a lot for your Valuable responses.

 

We found out the root cause for the issue “Cannot Evaluate Expression”. The issue is Because of parameters that have been Passed to  Notification. We have to pass both email determine language and Recipient language.

 

Old One: jscall( "htmlemailtemplates.getMailBody", "Chm Change Close: Admin close", $L.file, $L.file.save)

 

New Changes in arguments: jscall( "htmlemailtemplates.getMailBody", "Chm Change Close: Admin close", $L.file, $L.file.save,”en”,”en”) with this syntax issue is getting resolved.

 

Thanks & Regards,

Shalini R

View solution in original post

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.