Skip to main content

Notifications

Microsoft Dynamics GP (Archived)

get first table giving: Error Registering Table [Not Found]

Posted on by 10

The "get first table" throws an error even after I set Table_DisableErrorChecks(true). But only when I create chunk file with Dexterity for Dynamics GP 2015.  Worked ok in prior versions.

Any idea's what i can do?

Sample of the code:

local boolean lresult;
local boolean lresult2;
 
    lresult2 = Table_SetCreateMode(false); { do not automatically create table when accessed }
    lresult = Table_DisableErrorChecks(true); { do not error if table not found }
   
    get first table AIM_Vendor;
    if err() = 9 then {table does not exist }
        close table AIM_Vendor;        
        lresult = Table_FlushCache();        
        if 'SQL Server' of globals > 0 then
            {If system administrator logged in then create tables }
            if ('User ID' of globals = "sa") or ('User ID' of globals = "DYNSA") then        
                call AIM_Register_Triggers;                   
                call AIM_New_Company;
            else        
                AIM_Active of globals = false;
            end if;
        else        
            AIM_Active of globals = false;
        end if;
    else
        call AIM_Register_Triggers;            
        call AIM_New_Company;
    end if;
    
    lresult2 = Table_SetCreateMode(true); { turn table create back on }
    lresult = Table_DisableErrorChecks(false); { turn table error checking back on }

*This post is locked for comments

  • Suggested answer
    grfields Profile Picture
    grfields 10 on at
    RE: get first table giving: Error Registering Table [Not Found]

    Need to do a better job debugging next time. Error not coming from the 'get first table'.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans