Sage MAS 90 and 200 Sage MAS 500 blogs Product Feedback Support Training
Reply
Sage MAS Partner
TomTarget
Posts: 1,891
Registered: ‎11-02-2008
0
Accepted Solution

Sales order invoice batch in use

MAS 90 v 4.3

 

Client had a workstation crash while in a sales order invoice entry.

 

The batch that the person was in now indicates that the batch is IN USE even though it is not.  Can't access the batch to update it because of this.    Obvious answer is the a flag on the batch did not get reset.    After much hunting I found the batch control record in of all places - GL!  GL_CompanyActiveBatch.m4t 

 

Looking at the record in question, although there is a field for batch status,  it is blank for all batches in the file whether in use or not.    Apparently this field is not used anymore?

 

In any event,  I can't figure out how the batch is flagged as in use unless its based upon a windows level record lock,  in which case a reboot of the server will probably resolve it  (have advised the client to do so at the next opportunity).

 

Or possibly it has something to do with files in the LOCK directory.

 

Anyone have any insights on this?

Thomas H. Rogers
Target System Technology, Inc. - Spokane, WA -
The best solution often comes not from answering the question asked, but understanding WHY the question was asked.
Moderator
Natasha
Posts: 273
Registered: ‎07-15-2009
0

Re: Sales order invoice batch in use

Tom,

 

There may be a SO01<batch no>.LCK file in the MAS90\LOCK\_<company code> folder that is still locked.  MAS90 locks a batch by locking that file.

 

Natasha

 

Natasha Chang
Sr. Software Engineer
Sage 100 ERP
Sage MAS Partner
TomTarget
Posts: 1,891
Registered: ‎11-02-2008
0

Re: Sales order invoice batch in use

thanks!

Thomas H. Rogers
Target System Technology, Inc. - Spokane, WA -
The best solution often comes not from answering the question asked, but understanding WHY the question was asked.
Regular Contributor
RoadRacer
Posts: 81
Registered: ‎11-14-2008
0

Re: Sales order invoice batch in use

Natasha,

 

We are in this same situation now, but our batch has a status of "Print/Update." I see the lock file (SO0103697.LCK). What am I supposed to do with it? Delete it? Rename it? I am prevented from doing either; a message pops up saying that the action cannot be completed because the file is open in another program. Right now, I am assuming that I will be able to delete or rename it at the end of the day when everyone exits MAS 200 (v. 4.4). Thanks for any advice you can give us!

Doug Coartney
SC2 Inc.
Regular Contributor
kanes
Posts: 216
Registered: ‎10-31-2008
0

Re: Sales order invoice batch in use

You can use MS Process Explorer to find the process holding that file open.

Steve

MAS200 V4.30.21

Regular Contributor
RoadRacer
Posts: 81
Registered: ‎11-14-2008
0

Re: Sales order invoice batch in use

Thanks, Steve. I installed Process Explorer on my workstation, but how would I use it to find the process holding the file open when the file is on the server?

Doug Coartney
SC2 Inc.
Regular Contributor
kanes
Posts: 216
Registered: ‎10-31-2008
0

Re: Sales order invoice batch in use

Use the "Find" feature. You can "find" a filename with the search button. Search for the lock file. The results will show the PID, and you can use task manager to kill the task.

Steve

MAS200 V4.30.21

Regular Contributor
kanes
Posts: 216
Registered: ‎10-31-2008
0

Re: Sales order invoice batch in use

Ooops! You want to run Process Explorer on the server...

Regular Contributor
RoadRacer
Posts: 81
Registered: ‎11-14-2008
0

Re: Sales order invoice batch in use

Thanks. At the end of the day, I was able to rename the lock file with a BAK extension. Then, when I went into Daily Sales Reports/Updates to reset the status on that batch, I found that I didn't need to. It was already marked as Available and was enabled to be selected.

Doug Coartney
SC2 Inc.
Regular Contributor
kanes
Posts: 216
Registered: ‎10-31-2008
0

Re: Sales order invoice batch in use

Interesting. The process must have released the file for you to be able to do that.

Safe & happy 4th!

Steve

MAS200 V4.30.21