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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Dynamics 365 Community / Blogs / Dynamics GP Land / "Background process is...

"Background process is running: Exit Aborted" message when trying to close GP

Community Member Profile Picture Community Member
By Steve Endow

I am developing a Dynamics GP VS Tools AddIn for a customer, and while testing the AddIn, I started to get this message when I tried to close GP:


"Background process is running: Exit Aborted"

In my VS Tools AddIn code, I am accessing a table buffer, and during my first few versions of the rough code, I had forgotten to close the tables.  This left them open, and caused GP to think that they were still being accessed.  So I added the following lines to close the table buffers:

paBillingSubDetailWorkTm.Close();
paCostCategory.Close();

But even after that, I would still get the Background Process message from GP.

After further review, I realized that I did not have a Try / Catch block in my code yet.  So an error was causing an exception before the Close commands were processed.

After adding the Close commands in a Finally block, the Background Process message went away.

As my daughter says, "Easy peasy lemon squeezee"...


Steve Endow is a Dynamics GP Certified Trainer and Dynamics GP Certified IT Professional in Los Angeles.  He is also the owner of Precipio Services, which provides Dynamics GP integrations, customizations, and automation solutions.

You can also find him on Google+ and Twitter




This was originally posted here.

Comments

*This post is locked for comments