Weired error in the Field/Grammar/NOMATCH HELP PLS ASAP

Hi All
I have a field that is defined in the form as

In the grammar It is defined to accept 10 digits. Well if caller accidently enters more than 10 digits say for example 12 digits then it is taking the first 10 digits for that field ID1 and passing the remaining 2 digits to the next field and hence throwing NOMATCH for the second field. Really weired. How should I prevent this to happen ?? Please help.

00 11 22 33 44 55 66 77 88 99

Hi,

GVP supports custom extension that allows you to suggest GVP to clear DTMF buffer before executing input element. In your case, it’s necessary to add the attribute to your second “field” element:

<field name=“ID2” clearbuffer=“true” type=“digits?minlength=10;maxlength=10” modal=“false”>

R.

1 Like

Thanks Rene. I have tried that option but sounds like GVP is not liking that option clearbuffer in the and hence it is throwing an error.

VXML Error: event(error.badfetch), message(Unknown attribute(s): [clearbuffer]; Element: [Vxml_Document->vxml->form4->[BPN] element(Leaf_Document->vxml->form2->block1->goto1 URL is /ProviderAnswer.do), current url /ProviderAnswer.do)
[2008/10/01 16:46:15.665] DD0 VxmlRoot.cpp:2350 C=12:L=1:U=311 Action::isVxmlElementValid returned false - ERROR[Unknown attribute(s): [clearbuffer]; Element: [Vxml_Document->vxml->form4->[BPN] field1 URL is /ProviderAnswer.do]]
[2008/10/01 16:46:15.665] DD0 VxmlUtil.cpp:2345 C=12:L=1:U=321:D=E_12_104 Throw VxmlEventException (event = error.badfetch). URL is /ProviderAnswer.do.
[2008/10/01 16:46:15.665] DD0 VxmlUtil.cpp:3903 C=12:L=1:U=321:D=E_12_121 VXML Error: event(error.badfetch), message(), element(Leaf_Document->vxml->form2->block1->goto1 URL is /ProviderAnswer.do), current url (/ProviderAnswer.do)

Am I missing anything. Please help.

What version are you using?

1 Like

GVP 7.5 and VXML 2.0. Thanks for your great help and time !

Hi,

It’s strange that GVP doesn’t recognize the attribute as it’s part of Genesys extensions. Can you try to add link to Genesys namespace into VXML header to help GVP recognize custom extension?

<vxml version=‘2.1’ xmlns=‘http://www.w3.org/2001/vxmlxmlns:genesys=‘http://www.genesyslab.com/vxml/2.0/ext/20020430 application=‘TEST’ xml:lang=‘en-US’/>

Or you can try to use the same way as Genesys Studio. I checked the code generated by Genesys Studio and it uses some “hack” to clear the buffer. When you check the box “Clear DTMF buffer” in prompt settings then Studio adds empty prompt block into generated file so any buffered DTMF are “used” by this prompt. The code is following:

1 Like

R
Sorry for late reply as I did not get a chance to try it out. When I tried the second solution that you proposed it did work for the first time and laten on it did not. It is really acting weired.

Would you please try it out on your system if you really do not mind and kindly let me the solution. I appreciate your help.

I tried option but it did not help either.