C/ODBC - Exception when inserting data using .Net

I’m trying to insert data to Navision Attain with an simple INSERT INTO query using Microsoft.Data.Odbc in .Net. The data is inserted into the table but I get the Exception: ERROR [IM001] [Microsoft][ODBC Driver Manager] Driver does not support this function. I get the same exception when i try to close a OdbcDataReader. Anyone that knows what’s going on? Using C/ODBC version Brgds, Ola