Skip to Content
avatar image
Former Member

ADS Local server connection can't find table - error 7041

Using Tokyo 10.2 and ADS local server 10.10....
Here is .add connection string to local C:\dai\plx_data\planfaxsystem.add

rc = AdsConnect60((unsigned char*)m_strConnect.GetBuffer(0), ADS_LOCAL_SERVER, (unsigned char*)"guest", (unsigned char*)"4417", ADS_TCP_IP_CONNECTION | ADS_COMPRESS_NEVER | ADS_IGNORERIGHTS , &m_connection);

followed by attempt to connect o a local table that's a non-free ADT table owned by Planfaxsystem.add

rc = AdsOpenTable(pAdxDb.m_connection, (unsigned char*) "system_runtimeparameters"/*tableName.c_str()*/, NULL, ADS_ADT, ADS_ANSI, ADS_PROPRIETARY_LOCKING, ADS_IGNORERIGHTS, ADS_SHARED, &hTable);//ADS_CHECKRIGHTS,

Error returned is a 7041 -- can't find file....file is there as evidenced by using DatArch to open and access same.

No other users present.

Any ideas?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Jul 21, 2017 at 07:21 PM

    check out ads_err.adt for the file name ADS tries to open. Do oyu try to open the file including the extension? Using ADD you don't need it.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jul 29, 2017 at 10:40 AM

    The ads_err.adt table says its trying to open file "ENU".....which is the name of the table were sending it. Heres the code.

    UNSIGNED32 rc;

    unsigned long hTable1=0;

    m_connection = 0;

    int tryCount = 0;

    CString codex;

    char xxx[132];

    strcpy(xxx,"system_logins");

    m_strConnect = "\\\\planfaxserver\\lac\\plx_data\\planfaxsystem.add";

    rc = AdsConnect60((unsigned char*)m_strConnect, ADS_REMOTE_SERVER, (unsigned char*)"guest", (unsigned char*)"4417", ADS_TCP_IP_CONNECTION | ADS_COMPRESS_NEVER | ADS_IGNORERIGHTS , &m_connection);

    rc = AdsOpenTable(m_connection, (unsigned char*)xxx, NULL, ADS_ADT, ADS_ANSI, ADS_PROPRIETARY_LOCKING, ADS_CHECKRIGHTS, ADS_SHARED, &hTable1);

    if (rc == SUCCESS) { codex.Format("Created Connection %s %i", m_strConnect, m_connection); logError(codex); } break;

    Add comment
    10|10000 characters needed characters exceeded