web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Method 'open' in COM object of class 'ADODB.RecordSet' returned error code 0x80040E21 (<unknown>) which means: ODBC driver does not support the requested properties.

(0) ShareShare
ReportReport
Posted on by

hi,

iam using the below code to upload data

void insertIntoTmp()
{
    str                   conStr;
    str                   sqlStr;
    Filename              filename1;
    FilePath              filePath;
    filenameType          filenameType;

    ;
    cn=new CCADOConnection();
    [filePath, filename1, filenameType] = fileNameSplit(filename);

    conStr = strfmt("PROVIDER=MSDASQL;DRIVER={MICROSOFT TEXT DRIVER (*.TXT; *.CSV)};DBQ=%1",filePath);
    cn.open(conStr);

    rs = new CCADORecordSet();
    sqlStr = strfmt("select * from %1%2",filename1,filenameType);
    rs.open(sqlStr,cn,1,1);

    while(!rs.EOF())
    {
        txtLine =  rs.fields().itemIdx(0).value();
        recordId = substr(txtLine,1,3);
        changeType = this.recordId2ChangeType(recordId);
        if(bse)
            this.bseLineBreak();
        else
            this.nseLineBreak();


        rs.moveNext();

    }
    rs.close();
    cn.close();

    info(strfmt('%1 Record is uploaded',i));


}

but getting error

Method 'open' in COM object of class 'ADODB.RecordSet' returned error code 0x80040E21 (<unknown>) which means: ODBC driver does not support the requested properties.

 pls suggest

*This post is locked for comments

I have the same question (0)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans