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

Community site session details

Session Id :
Microsoft Dynamics GP (Archived)

Issue clearing Temp Table

(0) ShareShare
ReportReport
Posted on by

I've a while loop in dexterity where in I'm clearing a temp table and filling it up with some values. so my code is somewhat like this. 

while i < 10 do
  clear table Test_Temp; {This error out with Invalid data for clear: 27. Message}
  //Filling the Test_Temp table  
end while;


clear table is error out. Test_Temp table isn't accessed and not initialized. But I'm not sure how can i add condition to clear table only if it is initialized. 

Appreciate any help

Regards.

Himal

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Almas Mahfooz Profile Picture
    11,009 User Group Leader on at
    RE: Issue clearing Temp Table

    Assuming it's a dexterity code.

    Clearing a table removes the data currently in its table buffer. It doesn’t remove data from the actual table.

    So I don't think you need a while loop, by just writing clear table 'Test_Temp' will clear the buffer.

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics GP (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans