ALERT! The community will be read-only starting on April 19, 8am Pacific as the migration begins. Read more for important details.
ALERT! The community will be read-only starting on April 19, 8am Pacific as the migration begins.Read more for important details.
Absent Member.
Absent Member.
16047 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.

0 Likes
5 Replies
Vice Admiral
Vice Admiral

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.

Absent Member.
Absent Member.

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

Absent Member.. Absent Member..
Absent Member..

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
0 Likes
Cadet 1st Class
Cadet 1st Class

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

0 Likes
Captain Captain
Captain

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!!

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.