When generating an EFT file, this error message is received:
Unhandled script exception:
Bad Datatype detected for operation EXCEPTION_CLASS_SCRIPT_BAD_TYPE SCRIPT_CMD_COLUMNOFTABLE
Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.
View products that this article applies to.
When generating an EFT file, this error message is received:
Unhandled script exception:
Bad Datatype detected for operation EXCEPTION_CLASS_SCRIPT_BAD_TYPE SCRIPT_CMD_COLUMNOFTABLE
The 'COLUMNOFTABLE' means that there is a column mapped in the configurator that does not exist in the corresponding table that is selected for that field. Unfortunately, there is not an easy way to identify which line/field in the configurator file the mismatched table/field is in.
To resolve this issue, review the below options:
Option 1 - The best way is to open the EFT File format and go through each 'Data Type' field where a table name and Field name is mapped. Simply reselect the Field Name using the Lookup button for each field. You will run into a field at some point that is not in the lookup button because it is not in the table that is listed.
a. Open the EFT configurator file (Cards | Financial | EFT File Format) and select the EFT Format ID being used.
c. Select the first Line Type of 'File Header', and click to expand the detailed line mappings below.
e. For each 'Data Field' line type, the Table Name and Field Name are listed. Simply click the Lookup button for Field Name, and re-select the Field name from the pick-list. Do this for all the 'Data Field' lines.
f. Repeat for the next line type (Batch Header, Detail, etc) and re-select the Field Name for all the Data Type lines. You will eventually find one in the file where the field is not in the pick-list, and this is the cause. Select the appropriate table/field and then you can save your changes and test again. (Typically users only have one, so test at this point before checking the rest of the lines in the file.)
Option 2 - All the tables in the lookup button are for the wrong module
If you are in a Payables EFT file format and see only Receivables tables in the table pick-list, or are in a Receivables file format and see only Payables tables listed in the configurator, then there was a problem when the file was imported, and the incorrect SERIES value is stored on the file format.
(Note, this is not typically the user's issue. This is usually only an issue for the user who imported the file in. So if you run into this because you imported the file in, use the steps below to fix it, and then most likely still need to do Option 1 above.)
a. Run this script in SQL Server Management Studio against the Company database to view the EFT File Format ID's:
select SERIES, * from CM00103
b. Review the SERIES value for your EFT File Format ID.
c. If the incorrect Series is referenced, you can simply update the series, so you see the correct table in the front-end.
select update CM00103 set SERIES = 4 where EFTFORMATID = 'xxx'
--update the EFTFormatID to your configurator file name for the xxx. Modify the Series value to 3 or 4 as needed.
Keywords: kb, kbMBSMigrate, kbMBSPartner, kbprb, kbtshoot, kberrmsg