Skip to main content

Notifications

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

  • 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

Jainam Kothari – Community Spotlight

We are honored to recognize Jainam Kothari as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > 🔒一 Microsoft Dynamics GP (Archived)

#1
Almas Mahfooz Profile Picture

Almas Mahfooz 3 User Group Leader

Featured topics

Product updates

Dynamics 365 release plans