Exception from HRESULT: 0xC020204A Connecting to MySQL

WIlliam "Bill" Lugaila 1 Reputation point
2021-04-13T14:28:01.31+00:00

When I setup a ODBC Destination connection in a SSIS project to MySQL I receive the following.

Exception from HRESULT: 0xC020204A
Error at Data Flow Task - Update REDCap Employee Table [ODBC Destination [73]]: SQLSTATE: 42S22, Message: [MySQL][ODBC 8.0(a) Driver][mysqld-8.0.23-commercial]Unknown column 'emp' in 'field list';
Error at Data Flow Task - Update REDCap Employee Table [ODBC Destination [73]]: Unable to retrieve column information from the data source. Make sure your target table in the database is available.

Trying to write to a table in a MySQL database / scheme.

SQL Server Integration Services
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Monalv-MSFT 5,926 Reputation points
    2021-04-14T01:29:49.183+00:00

    Hi @WIlliam "Bill" Lugaila ,

    Unknown column 'emp' in 'field list'

    1.Please check if you are trying to do the insert/update on the table with trigger.
    2.If so, we can either rewrite trigger and remove 'field3' column *from insert command or * alter table 't2' and add column 'field3'.

    Please refer to UNOBVIOUS "UNKNOWN COLUMN IN 'FIELD LIST'" ERROR.

    Best regards,
    Mona

    ----------

    If the answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

  2. WIlliam "Bill" Lugaila 1 Reputation point
    2021-04-14T13:03:27.93+00:00

    I am trying to write to a table Employee in MySQL.


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.