Window handle in hwnd.template.var is invalid

Window handle in hwnd.template.var is invalid

Description:

'Window handle in hWnd.Template. Var is invalid' message when opening, closing or saving in a program that has Customizable User Defined Field (UDF).

Resolution:

There is a problem with one or more Customizable User Defined Fields that are in use in the program.  Data requires review and possible clean up.

There should not be more than 10 User Defined Fields (UDF) created for any module (such as Shipping Entry or Part Maintenance).
Users are allowed 10 numbers, 10 strings, 5 boolean's or 5 date/time fields.

The following select statement can be used and will return all values for the Tabs:
select * from USER_DEF_FIELDS where PROGRAM_ID = '<program>' and LABEL is not NULL;

Value in DATA_TYPE field can only be one of the following:
1 = Boolean
2 = Date/Time
3 = Number
5 = String
1005 = String List
1006 = Uniform Resource Locator

If there is a value in LABEL, there should be a value in DATA_TYPE, TAB_ID and SEQUENCE_NO fields as well.

Generally there will be a problem within one of the records returned from the above select statement that will require correction, such as a blank or incorrect value in one of the fields.

Infor KB 735022

    • Related Articles

    • Error while Launching Visual - "Cannot find specified protocol entry"

      If the following error is encountered while trying to launch Visual, check if there are any ODBC connections with the same name as the database name specified for the Visual connection. ...
    • Use Single Sign On in Visual

      If you get the above error when trying to log into Visual, create a shortcut pointing to VM.exe (or copy an existing shortcut to it). Right-click the shortcut and go to Properties, and at the end of the Target field, add a space and "-SYSADM" (no ...
    • Bar Code Labor Ticket Entry not scanning correctly through Remote Desktop Session

      Description: Barcode scanner is not scanning properly when using Remote Desktop Session (RDS) to access Bar Code Labor Ticket Entry but works fine outside Visual.  Resolution: Issue was fixed by editing Remote Desktop Connection and setting Apply ...
    • Moving VISUAL Quality reports to new location

      Description: Moved VISUAL Quality reports to a new location. Update the VISUAL Quality SQLBase or Oracle database after moving the VISUAL Quality reports to a new location. Symptom: Invalid file name Resolution: Here's a procedure for reinstalling ...
    • Lsa.Data.Instance not registered in static class map error in Visual

      If you get this error in Visual Mfg: Register the database with the lsadataregister program per attached and make sure the 'start in' folder for the Visual shortcut is the local folder and that folder has the 4 lsa files in it.