Error -27974: Unselect ("") disallowed for a combo box (SELECT with "size" omitted or <= 1) (12204 Views)
Reply
Occasional Advisor
ChandraMouli25
Posts: 17
Registered: ‎09-03-2013
Message 1 of 4 (12,204 Views)

Error -27974: Unselect ("<OFF>") disallowed for a combo box (SELECT with "size" omitted or <= 1)

Hi,

 

When I attempt to play back a script recorded in VuGen 9.10 I get this error.  The code causing the error is:

 

web_submit_form("Gateway",
        "Snapshot=t3.inf",
        ITEMDATA,
        "Name=SEARCH_TYPE", "Value=<OFF>", ENDITEM,
        "Name=CONVENIENCE_CARD", "Value=", ENDITEM,
        "Name=SIN", "Value=", ENDITEM,
        "Name=LAST_NAME_FOR_POSTAL", "Value=", ENDITEM,
        "Name=POSTAL_CODE", "Value=", ENDITEM,
        "Name=FIRST_NAME", "Value=", ENDITEM,
        "Name=LAST_NAME", "Value=", ENDITEM,
        "Name=PHONE_A", "Value=", ENDITEM,
        "Name=PHONE_B", "Value=", ENDITEM,
        "Name=PHONE_C", "Value=", ENDITEM,
        "Name=ACCOUNT_TYPE", "Value=<OFF>", ENDITEM,
        "Name=ACCOUNT_NUMBER", "Value=", ENDITEM,
        "Name=TRANSIT", "Value=", ENDITEM,
        "Name=PARTIAL_NAME", "Value=", ENDITEM,
        "Name=EXACT_NAME", "Value=", ENDITEM,
        LAST);

 

Can someone help?

 

Regards,

Mouli.

Valued Contributor
LoadTest712
Posts: 176
Registered: ‎08-25-2010
Message 2 of 4 (12,195 Views)

Re: Error -27974: Unselect ("<OFF>") disallowed for a combo box (SELECT with "s

Make a new URL-based recording

Try to rerecord with URL mode. Go to the Recording options -> Recording tab -> select "URL mode."

If the HTML mode is preferred for recording, the mode can be changed just for the step that causes the error.
1. In the Recording Options, set the Recording Mode to HTML-based.
2. Start recording.
3. When the page is reach that needs the URL mode, click the "Recording Options" button on the toolbar (at the far right of the bar).
4. Set the Recording Mode to URL.
5. After recording the step, change it back to HTML.
6. Repeat for all the pages that need URL mode.

 

If this post solves or helps solve your issue, mark the thread as solved and give KUDOS to the author for their assistance.

Frequent Advisor
xtom
Posts: 55
Registered: ‎06-06-2012
Message 3 of 4 (12,184 Views)

Re: Error -27974: Unselect ("<OFF>") disallowed for a combo box (SELECT with "s

Hello!

 

You do not need to re-record the script in URL mode. It should be sufficient to regenerate with the new option. This makes it easier and faster if the recording is complicated and takes some time.

But be shure to use a new copy of the existing script because all changes already made will get lost.

 

Regards

Thomas

HP Expert
Editus
Posts: 650
Registered: ‎04-06-2011
Message 4 of 4 (12,175 Views)

Re: Error -27974: Unselect ("<OFF>") disallowed for a combo box (SELECT with "s

Hello
What if you simply change the code

"Name=SEARCH_TYPE", "Value=<OFF>", ENDITEM,

for soemthing like

"Name=SEARCH_TYPE", "Value= 1", ENDITEM,

that seems to be the problem, the application complains about the <OFF> value..

hope this helps
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.