We've Moved! Please visit our new and improved forum over at our new portal: https://portal.plumvoice.com/hc/en-us/community/topics

Error from Javascript function

Questions and answers about IVR programming for Plum DEV

Moderators: admin, support

Post Reply
vikas
Posts: 53
Joined: Wed May 13, 2015 7:46 pm

Error from Javascript function

Post by vikas »

In our preprod environment we got below error

TypeError: errorEmailMessage has no properties line 1

When executing below code.

Code: Select all

<assign name="errorEmailMessage" expr="ErrorDesc"/>
<var name="vordelCodeIndexNbr" expr="errorEmailMessage.lastIndexOf('AAA')"/>
This code was working sometime back. Has there been any change to preprod environment? Any other reason why it failed?

support
Posts: 3632
Joined: Mon Jun 02, 2003 3:47 pm
Location: Boston, MA
Contact:

Re: Error from Javascript function

Post by support »

Hello Vikas,
Unfortunately the information and code given below isn't enough for us to debug your issue. What we can tell you is ErrorDesc does not contain a string so the method lastIndexOf does not exist. What may be helpful is to look further up in the code you have written to determine when ErrorDesc was created and assigned. If this does not help please feel free to include some more information about the error and your code.
Regards,
Plum Support

Post Reply