LoadRunner Practitioners Forum
Showing results for 
Search instead for 
Do you mean 

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

Occasional Advisor

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.

5 REPLIES
Valued Contributor

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

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

HPE Expert

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
Occasional Contributor

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

I encountered this error today. All I did was comment out that whole step and the script works. Just a suggestion.

Occasional Visitor

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

Hello, just experienced this problem in Vugen 11.5. I actually employed your solution which appears to have worked. Thank you for posting.

 

If I had time though I'd probably re-script as per first solution. I'm never sure how stable the regeneration will be!!