Author Message
RMoreno012024
Joined: Mar 4, 2022
Messages: 0
Offline
Pure VXML application works in ExperiencePortal 8.1.1 and earlier but fails in version 8.1.2

VXML calls a REST service using <data> and the service worked based on logging.

<data maxage="0" name="User" srcexpr="lookupUser(aCode, connection.call_tag)" fetchaudio="/alert_messaging/resources/speech/percolate.wav" method="get" accept="application/xml"/>
<var name="rootdoc" expr="User.documentElement"/>

However, when the vxml tries to access the resulting DOM object, it fails and gives the following error in the VB logs:

@2023-01-25 15:09:46,460||FINER|CommonVXI.Interpreter|141763|Session=EPMPP812-2023025220934-17|VXI.cpp:4936:VXI::data_element() Completed|EPMPP812.lab.interactivenw.com####
@2023-01-25 15:09:46,460||FINER|CommonVXI.Interpreter|141763|Session=EPMPP812-2023025220934-17|VXI.cpp:3735:VXI::executable_element - VAR|EPMPP812.lab.interactivenw.com####
@2023-01-25 15:09:46,460||FINER|CommonVXI.Interpreter|141763|Session=EPMPP812-2023025220934-17|VXI.cpp:3801:VXI::var_element(name=rootdoc exp=User.documentElement)|EPMPP812.lab.interactivenw.com####
@2023-01-25 15:09:46,460||FINE|CommonVXI.Jsi|141763|Session=EPMPP812-2023025220934-17|JsiCompartment.cpp:931:ECMA Error:: errmsg: reference to undefined property "documentElement"; lineno: 1; linetxt: (null); tokentxt: (null)
massimo__croci
Joined: Jan 31, 2020
Messages: 518
Offline
Hi.

That is an ECMA error, your script attempted to access an object property (User.documentElement) which was not found/doesn't exist/ is undefined.
RMoreno012024
Joined: Mar 4, 2022
Messages: 0
Offline
Yes, this is an ECMAScript error. The ecmascript interpreter in EP8.1.2 has been upgraded to MozJS52.
I've been reading that the DOM support has been removed in this script interpreter.

But is there any other way to access the variable returned by the <data> call in this EP version since <data is supported in VXML2.1? This code worked in EP earlier versions.

Any help is appreciated.
massimo__croci
Joined: Jan 31, 2020
Messages: 518
Offline
Hi.
Developers opened the Jira EPCFD-539 and are currently working on that. No other info provided (deadline, etc...).
massimo__croci
Joined: Jan 31, 2020
Messages: 518
Offline
The Jira EXPPORTAL-14115 was opened to fix this issue with <data> tag.




massimo__croci
Joined: Jan 31, 2020
Messages: 518
Offline
The fix was released with the patch MPP 8.1.2.0.374, download here

https://support.avaya.com/support/en/download/1399855686067?productId=P0407&releaseId=8.1.x


Instructions how to install the patch: All details on the 'readme.txt' file inside the tarball.

What is new in the 374:
Changes since previous 360
EXPPORTAL-14115 tag is not able to return valid data due to which js is failing with errors

sravanthivadlamudi
Joined: Aug 30, 2023
Messages: 8
Offline
Hi. Thanks for the update. Do you happen to have the release notes handy?
massimo__croci
Joined: Jan 31, 2020
Messages: 518
Offline
You can download the Release Notes for the OD 8.1.2 from the link above, see the attached picture
  • [Thumb - Untitled.jpg]
[Disk] Download
Go to:   
Mobile view