How to: Set Up Batch Posting

In this article

Service Tier administration

LS Central System

To batch post statements

To batch post Store Inventory worksheets

To run batch posting

To monitor the batch posting

This article is an overview of the Batch Posting setup and its process in LS Central.

The posting of documents to the Item Ledger, General Ledger, and other ledgers can cause table locking in a multi-user environment. If two users try to post a large document at the same time, one of them will be locked out until the posting of the other document has finished.

By using Batch Posting, the documents will be posted from a queue.

Service Tier administration

  1. Stop the Business Central service.
  2. Open the Business Central Server Administration tool, and in the Task Scheduler section select the Enable Task Scheduler check box (in SaaS, the Task Scheduler is enabled by default).
  3. Restart the service.

LS Central System

  1. Open the Batch Posting Setup page, and in the Run Mode field, select NAS Scheduler :

  1. Verify the document posting setup in the Batch Posting Document Setup page:

To batch post statements

  1. In the Store Card, select the Use Batch Posting for Statements check box:

  2. Open a statement, and post the statement as usual. This message is displayed: 

  3. Open the Batch Posting - Waiting page, where you can find the statement in the queue:

To batch post Store Inventory worksheets

  1. Edit the Store Inventory Worksheet Setup.
  2. In the Posting FastTab, select the Use Batch Posting check box:

  3. Create a Store Inventory Journal and post it.
  4. This message is displayed: 

To run batch posting

If the Run Mode field in the Batch Posting Setup page is set to NAS Scheduler, Batch Posting must be run by the Scheduler.

For instructions on how to run Scheduler using the Task Scheduler, see Scheduler.

To have the Scheduler run the batch posting, you create a Scheduler Job to run the batch posting codeunit. Set this job to run codeunit 99001459.
Tip: You can create a new Scheduler Job Type and use it as a parameter in the Job Queue Entry (see below) to have the Job Queue Entry only run this particular job.

Here is an example of the parameter string you can use when you are creating the Job Queue entry :

TYPEFILTER=BATCHPOST,LOG=1.

The Typefilter should be the same as the job type on the scheduler job created for the batch posting. The No. of Minutes between Runs in the Recurrence section specifies the minutes that are to elapse between runs of a Job Queue Entry.

To monitor the batch posting

The Batch Posting Error page displays three types of statuses :

  • Batch Posting – WAITING
  • Batch Posting – ERROR
  • Batch Jobs – PROCESSED