Skip to content

Post Master User Guide

Post Master automatically posts documents and journals in Microsoft Dynamics 365 Business Central. Rules select what to post, and background jobs post it.

Post Master checks your rules at a regular interval, adds the matching transactions to a posting queue, and posts them without a user. It records the outcome of every posting attempt, sends email notifications, and shows its current work on a monitor page. One company, the admin company, holds the setup and the rules for every company in the environment.

TermMeaning
TransactionOne unit that Post Master posts: one document, for example a sales invoice, or one journal batch.
Auto detect ruleA rule that selects transactions for posting: a company, a transaction type, and filters, the same kind of filters as on a list page. Called a rule in this guide.
Detection cycleOne run of the job that checks every enabled rule and adds the transactions it selects to the posting queue. It runs at the Polling Interval (Min.) of the Post Master Setup page.
Posting queueThe detected transactions that wait to be posted. Page Post Master Posting Queue.
Posting jobA background session that posts the queued transactions of one company and one transaction type.
Main posting userThe user in Main Posting User ID on the Post Master Setup page. This user starts Post Master, and every Post Master job and posting runs as this user.
Admin companyThe company where Post Master is set up and the rules are entered. It holds no business data.
  1. The main posting user starts Post Master in the admin company.
  2. At each polling interval, a detection cycle checks each enabled rule whose schedule allows a run, and adds the transactions that the rule selects to the posting queue.
  3. Every minute, the Posting Parent job starts posting jobs for the queued transactions. The transactions of a rule with a higher Priority are posted first.
  4. Each posting job checks each transaction, posts it, and writes the outcome to the posting history.
  5. Post Master sends an email notification for the outcomes and events selected on the Post Master Setup page.
  6. The Monitor job checks every minute that the other jobs run, and restarts a job that stopped. The Maintenance job deletes old history and log entries once a day.

A rule’s schedule controls only when the rule detects transactions. A transaction that was queued inside the schedule is still posted after the schedule ends. The posting pause on the Post Master Setup page stops both detection and posting during its time window.

Each posting attempt ends with one of four outcomes in the posting history:

OutcomeMeaning
SuccessThe transaction was posted.
Validation ErrorA check before the posting found a problem, for example a posting date outside the allowed range. Post Master did not try to post.
Posting FailurePost Master ran the standard posting, and the posting returned an error.
SkipNothing was posted, for a reason that is recorded, for example a queued document that a user posted or deleted before Post Master reached it.
AreaTransaction types
JournalsGeneral Journal, Item Journal, Project Journal
PurchasesPurchase Invoice, Purchase Order, Purchase Credit Memo, Purchase Return Order
SalesSales Invoice, Sales Order, Sales Credit Memo, Sales Return Order
ServiceService Invoice

Transactions that Post Master does not post

Section titled “Transactions that Post Master does not post”
  • Recurring general, item, and project journals.
  • Item journals with a template type other than Item: reclassification, physical inventory, revaluation, and production journals.
  • A journal batch that the rule selects only in part. Post Master posts a batch only when the rule selects every line of it, and then it posts the whole batch.
  • Empty journal lines.
  • Documents that wait for approval: status Pending Approval, or status Open when an approval workflow applies to the document.

The eligibility check of a rule shows the batches that are not posted and the reason for each.

Goal: Install Post Master and register it, so it can run.

Prerequisites:

  • Permission to install apps in the environment.

Steps:

  1. Install Post Master from Microsoft AppSource. Blue Dragonfly Registration is installed with it, because Post Master needs it.
  2. Open the search, enter Post Master Setup, and open the page.
  3. In the notification “Post Master is not registered, or its license is not valid”, choose Register.
  4. Complete the Blue Dragonfly Registration wizard.

Post Master Setup with the Actions menu open: Diagnostics, Registration, and Other; the Registration submenu shows Register and Sync License.

Expected result: Post Master is registered, and the registration notification no longer appears.

The registration actions are also on the Post Master Setup page: choose Actions, then Registration, then Register or Sync License. Sync License checks the license with Blue Dragonfly at once. Post Master also checks the license when it starts and every hour while it runs. The license sets Licensed Max. Concurrent Jobs on the Posting FastTab.

Goal: Give each user the Post Master permissions their work needs.

Prerequisites:

  • Permission to assign Permission Sets to users.

Post Master has three Permission Sets:

Permission SetNameAllows
Post Master ViewPMBC VIEW BLDOpen every Post Master page, read-only.
Post Master RulesPMBC RULES BLDEverything in Post Master View, and create, change, copy, enable, disable, and delete rules.
Post Master AdminPMBC ADMIN BLDEverything in Post Master View, all Post Master settings, start and stop, run detection now, recreate the jobs, resend notifications, and the diagnostics. The main posting user needs it.

Each user also needs a basic Dynamics 365 Business Central Permission Set, for example D365 BASIC.

Steps:

  1. Open the search, enter Users, and open the page.
  2. Open the user’s card.
  3. In User Permission Sets, choose the first empty line.
  4. In Permission Set, enter PMBC VIEW BLD, PMBC RULES BLD, or PMBC ADMIN BLD.
  5. Leave Company blank, so the Permission Set applies in every company.

Expected result: The user can open the Post Master pages and use the actions that the Permission Set allows. Actions that need another Permission Set are not available to the user.

Goal: Choose the user who starts Post Master and under whose name every Post Master job and posting runs.

Prerequisites:

  • A user who can post the transactions of every company where a rule posts.

Use a dedicated user, for example POSTMASTER, so the postings are easy to recognize and do not depend on a person’s account. When you choose Start Post Master, Post Master checks the main posting user and lists each requirement that is missing:

  • The user is entered in Main Posting User ID on the Post Master Setup page and is enabled.
  • The user has the PMBC ADMIN BLD Permission Set.
  • In every company where an enabled rule posts, the user can post the rule’s transactions.
  • The user is the one who chooses Start Post Master.

The user also needs a license that allows the postings, including service postings when a rule posts service invoices.

Steps:

  1. Create the user, or choose an existing one.
  2. Assign PMBC ADMIN BLD and the Permission Sets that the user needs to post in each company.
  3. Enter the user in Main Posting User ID on the Post Master Setup page (see “Set up the General FastTab”).

Expected result: The user is ready to start Post Master.

Goal: Create the company where Post Master is set up and the rules are entered.

Prerequisites:

  • Permission to create companies.

All Post Master setup and all rules are entered in one company, the admin company. It holds no business data, and a rule cannot post in it. In other companies the Post Master Setup page is read-only.

Steps:

  1. Open Post Master Setup.
  2. In the notification about the admin company, choose Create company.
  3. In the company creation wizard, choose the setup type that creates a company with no data, and finish the wizard.
  4. Switch to the new company.
  5. Open Post Master Setup, and choose the Edit icon.
  6. In Admin Company Name, choose the new company.

Post Master Setup, General FastTab: Status On Hold, Host Company Name and Admin Company Name PM ADMIN, Main Posting User ID, Time Zone ID UTC, and Rule Nos. PMBC-RULE.

Expected result: Admin Company Name shows the admin company, and Rule Nos. shows the number series that gives new rules their codes.

Goal: Let Post Master send its notifications.

Prerequisites:

  • An email account in the admin company.

Post Master sends its notifications from the email account that is assigned to the email scenario Post Master Notifications. When no account is assigned to the scenario, it uses the default account. When no account exists, the Post Master Setup page shows a notification with the action Set up email.

Steps:

  1. In the admin company, open the search, enter Email Scenario Assignment, and open the page.
  2. Select the email account.
  3. Choose Assign scenarios.
  4. Select Post Master Notifications.
  5. Choose OK.

Expected result: Post Master notifications are sent from the selected account.

All settings are on the Post Master Setup page in the admin company. You can change them only while Status is On Hold. While Post Master runs, the page is read-only, except Scheduled Cost Jobs.

Goal: Open the Post Master settings for editing.

Prerequisites:

  • The PMBC ADMIN BLD Permission Set.
  • Post Master is On Hold.

Steps:

  1. In the admin company, open the search, enter Post Master Setup, and open the page.
  2. Choose the Edit icon.

Post Master Setup in edit mode, with the Home and Post Master tabs in the action bar: Admin Company Name, Main Posting User ID, Time Zone ID, Rule Nos., Polling Interval (Min.), and the Posting fields are editable; Status, Host Company Name, Time Zone, and Licensed Max. Concurrent Jobs are read-only.

Expected result: The fields you can change are editable. Dynamics 365 Business Central saves each change when you leave the field.

The action bar of Post Master Setup also opens the other Post Master pages. Open Monitor and Auto Detect Rules are on the Home tab. The Post Master tab has Transaction Types, Posting Queue, Posting History, Activity Log, Post Master Job Queue, Notification Log, and Change Log.

Goal: Set the admin company, the main posting user, and the time zone.

Prerequisites:

  • Post Master Setup is open for editing.
FieldWhat it does
StatusRunning or On Hold. Only Start Post Master and Stop Post Master change it.
Host Company NameThe company that holds the Post Master job queue entries. Set when Post Master starts.
Admin Company NameThe admin company. Select it while you work in that company.
Main Posting User IDThe user who starts Post Master. Every Post Master job, including posting, runs as this user.
Time Zone IDThe time zone of the rule schedules, the posting pause, the scheduled cost jobs, the “today” of a rule’s Max. Posting Date Formula, and the time of the daily Maintenance job, with daylight saving time. Pages show times in each user’s own time zone.
Time ZoneThe name and UTC offset of the time zone.
Rule Nos.The number series that gives each new rule its code. Set when the admin company is selected.

Steps:

  1. In Main Posting User ID, choose the main posting user.
  2. In Time Zone ID, choose your company’s time zone in the lookup, or enter part of its ID, for example Pacific.

Expected result: Time Zone shows the name and UTC offset of the time zone.

Goal: Set how often Post Master looks for transactions and how its posting jobs run.

Prerequisites:

  • Post Master Setup is open for editing.
Field (FastTab)What it does
Polling Interval (Min.) (Detection)How often, in minutes, Post Master checks the rules. It is the longest time a new transaction waits before it is detected. Default 5.
Max. Concurrent Posting Jobs (Posting)The largest number of posting jobs that run at the same time in all companies. At most the licensed maximum.
Max. Posting Jobs per Company (Posting)The largest number of posting jobs that run at the same time in one company, 1 or 2.
Licensed Max. Concurrent Jobs (Posting)The number of posting jobs that the license allows. Read-only.
Posting Throttle Delay (Sec.) (Posting)The seconds that each posting job waits after each posting. 0 turns off the wait.
Enable Posting Pause (Posting)Detection and posting stop every day between the start time and the end time.
Posting Pause Start Time, Posting Pause End Time (Posting)The daily pause, in the Post Master time zone. The end time can be earlier than the start time, for a pause that continues past midnight. Editable only when Enable Posting Pause is on.
Retry Period (Hours) (Retry)After a validation error or a posting failure, the hours during which detection does not queue the transaction again. Default 24, minimum 1.

Steps:

  1. Enter the Polling Interval (Min.).
  2. Enter the posting values on the Posting FastTab.
  3. Enter the Retry Period (Hours).

Expected result: The values are saved. Post Master uses them the next time it starts.

Goal: Choose who receives notifications, for which events, and what Post Master logs.

Prerequisites:

  • Post Master Setup is open for editing.
  • An email account (see “Set up an email account”).
Field (FastTab)What it does
Global Recipients (Notifications)The email addresses, separated by semicolons, that receive every Post Master notification. A rule can add more recipients.
Notify on Failure (Notifications)Send a notification when a posting fails, and when a Post Master job fails or is restarted.
Notify on Validation Error (Notifications)Send a notification when a transaction fails the checks before posting.
Notify on Success (Notifications)Send a notification when a transaction is posted.
Notify on Start/Stop (Notifications)Send a notification when Post Master starts or stops.
Support Email Address (Notifications)The address that receives the diagnostic file from Send Diagnostics to Support.
Logging Level (Logging)Which events are written to the Activity Log: Errors Only, Normal, or Verbose.
Log Skipped Evaluations (Logging)The Activity Log also records each rule evaluation that selected nothing, with the reason. Turn it on to find out why a transaction is not detected, then turn it off.
Activity Log Retention (Logging)How long Activity Log entries, sent and failed notifications, and failed job entries are kept, as a date formula. Default 1Y.
History Retention (Logging)How long Posting History entries are kept, as a date formula. Default 2Y.
Monitor Refresh (Sec.) (Logging)How often, in seconds, the Post Master Monitor page refreshes.

Steps:

  1. In Global Recipients, enter the addresses that receive notifications.
  2. Turn on the notifications you want.
  3. Set the Logging Level and the retention periods.

Expected result: The settings are saved. The Maintenance job deletes older entries once a day.

Set up Multi-Entity Management and auditing

Section titled “Set up Multi-Entity Management and auditing”

Goal: Use an entity filter on rules, and record setup changes in the Change Log.

Prerequisites:

  • Post Master Setup is open for editing.
Field (FastTab)What it does
MEM Entity Dimension Code (Multi-Entity Management)For companies that use Multi-Entity Management: the dimension that identifies the entity. When it is filled in, each rule gets a MEM Entity Filter. Leave it blank otherwise.
Enable Change Tracking (Auditing)Changes to the Post Master setup, rules, and transaction types are written to the Change Log of the admin company. Post Master turns on the Change Log in that company.

Steps:

  1. In MEM Entity Dimension Code, choose the entity dimension, or leave the field blank.
  2. Turn Enable Change Tracking on or off.

Expected result: With Enable Change Tracking on, a notification says that Post Master turned on the Change Log, with the actions Restart Session and Open Change Log Setup. Changes are logged after the session starts again.

Goal: Check that Post Master can send notifications.

Prerequisites:

  • At least one address in Global Recipients.
  • The PMBC ADMIN BLD Permission Set.

Steps:

  1. On Post Master Setup, choose Send Test Email.
  2. Choose OK in the message.
  3. After about a minute, open the search, enter Post Master Notification Log, and open the page.

Post Master Notification Log filtered on the test email subject: two Post Master: Test Email notifications with Status Sent, a Sent DateTime, and Attempts 1.

Expected result: The newest entry is the test email, with Status Sent. If Status is Failed, Error Message shows why.

Goal: Hide the transaction types that your company does not post with Post Master.

Prerequisites:

  • The PMBC ADMIN BLD Permission Set.
  • You work in the admin company.

A disabled transaction type is hidden everywhere in Post Master, including the rules. You cannot disable a type that an enabled rule uses.

Steps:

  1. Open the search, enter Post Master Transaction Types, and open the page.
  2. Choose Edit List.
  3. Select or clear Enabled on each line.

Expected result: Only the enabled transaction types can be selected on rules.

Goal: Run the inventory cost reports on a schedule, at times that do not conflict with posting.

Prerequisites:

  • The PMBC ADMIN BLD Permission Set.
  • In each company, Inventory Setup does not adjust or post the cost automatically.

Post Master can run two reports in each company, as the main posting user: Adjust Cost - Item Entries, without posting to the general ledger, and Post Inventory Cost to G/L, per posting group.

Steps:

  1. On Post Master Setup, expand Scheduled Cost Jobs.
  2. On a new line, choose the Company Name.
  3. In Job, choose the report.
  4. In Start Time, enter the time, in the Post Master time zone.
  5. Turn on the days, from Run on Mondays to Run on Sundays.
  6. For Post Inventory Cost to G/L, choose the Journal Template Name and Journal Batch Name when the company’s General Ledger Setup requires a journal template.
  7. Turn on Enabled.

Expected result: Status shows the next run, or what Post Master waits for. Start Time Note warns when the start time is outside the posting pause.

You can change the scheduled cost jobs while Post Master runs. Post Master creates the job queue entry when it starts, and within a minute while it runs. Turning a job off, or deleting its line, removes the entry at once. The jobs keep running while Post Master is stopped.

Goal: Extend a number series before it runs out.

Prerequisites:

  • Permission to change number series in the company named in the notification.

When an enabled rule uses a posting or posted document number series that can run out, the Post Master Setup page shows a notification that names the number series, the company, and the numbers left. When a number series runs out, every posting that needs a number from it fails.

Steps:

  1. In the notification, choose Show details to read the full text.
  2. Switch to the company named in the notification.
  3. Open the search, enter No. Series, and open the page.
  4. Add a series line with a later starting number, or raise the Ending No. of the series.

Expected result: The notification no longer appears for that number series.

A rule selects the transactions that Post Master posts: one company, one transaction type, and filters. You create and change rules only in the admin company, with the PMBC RULES BLD or PMBC ADMIN BLD Permission Set. In other companies the rules are read-only.

An enabled rule cannot be changed. To change a rule, disable it, change it, and enable it again.

Goal: Create a rule for one company and one transaction type.

Prerequisites:

  • The PMBC RULES BLD Permission Set.
  • You work in the admin company.

Steps:

  1. Open the search, enter Post Master Auto Detect Rules, and open the page.
  2. Choose New.
  3. Leave Code blank, so Post Master takes the next code from the rule number series.
  4. In Description, enter a description, for example Released sales invoices.
  5. Choose OK.
  6. On the rule card, in Company Name, choose the company whose transactions the rule posts.
  7. In Transaction Type, choose the transaction type.

Auto Detect Rule card RULE0005 after New: Description Released sales invoices, Company Name PMTEST-B, Transaction Type Sales Invoice, Enabled off, Priority 0, Run 24x7 on.

Expected result: The rule card shows the new rule, disabled, with Priority 0 and Run 24x7 on.

A rule cannot use the admin company, and it cannot be renamed. To get a rule with another code, copy it. Changing Transaction Type later removes the rule’s filters and resets Posting Option, because the filters belong to the old type’s table.

Goal: Select the transactions that the rule posts.

Prerequisites:

  • The rule is disabled.

The filters work like the filters on a list page, in the table of the rule’s transaction type.

Steps:

  1. On the rule card, choose Edit Filters.
  2. Choose + Filter….
  3. Enter the field name, for example External Document No., and choose the field.
  4. Enter the filter value.
  5. Choose OK.

Auto Detect Rule card RULE0005 with the message: 3 transactions in company PMTEST-B match this rule now.

Expected result: A message shows how many transactions in the rule’s company match the rule now. Filters shows the filters.

  • The lookups on the filter page list the records of the admin company. Enter the values that exist in the rule’s company; the match count shows whether they select anything there.
  • Filter totals by sets filters on calculated fields, for example a date range for an amount total.
  • A relative date in a filter, for example T for today, is stored as a fixed date. For a moving date limit, use Max. Posting Date Formula.
  • When an update removes a field that a filter uses, Filters shows the field as missing, and the rule selects nothing until you correct the filters.

Goal: Choose which documents a rule posts and what is posted for an order.

Prerequisites:

  • The rule is disabled and has a document transaction type.
FieldWhat it does
Post Released OnlyOnly documents with status Released are posted.
Require Approval WorkflowA document is posted only when an approval workflow applies to it and it is approved.
Posting OptionWhat is posted for an order or a return order (see below).

A document with status Pending Approval, or an Open document that an approval workflow applies to, is never posted, whatever these fields say.

Transaction typePosting optionsBlank means
Sales Order, Purchase Return OrderShip, Invoice, Ship and InvoiceShip and Invoice
Purchase Order, Sales Return OrderReceive, Invoice, Receive and InvoiceReceive and Invoice
Invoices and credit memosBlank onlyThe document is posted

Steps:

  1. Turn Post Released Only on or off.
  2. Turn Require Approval Workflow on or off.
  3. For an order or a return order, choose the Posting Option.

Expected result: The options are saved. An option that the transaction type does not support is refused with a message that lists the supported options.

Limit the posting date and the number of queued transactions

Section titled “Limit the posting date and the number of queued transactions”

Goal: Keep documents with a future posting date from being posted early, and keep one rule from filling the queue.

Prerequisites:

  • The rule is disabled.
FieldWhat it does
Max. Posting Date FormulaThe latest posting date that the rule selects, as a date formula from today in the Post Master time zone. 0D selects transactions dated up to today, -2D up to two days ago. Blank means no limit.
Max. Queued TransactionsThe largest number of the rule’s transactions that wait in the posting queue at the same time. Each detection cycle adds only enough to reach it. Blank or 0 means no maximum.

Steps:

  1. In Max. Posting Date Formula, enter a date formula, for example 0D.
  2. In Max. Queued Transactions, enter a number, or leave it blank.

Expected result: Filters adds the line “Posting Date: up to” with the date and the formula.

The formula moves with today; a date entered in the filters does not. Use Max. Queued Transactions so a rule with many matches does not hold back the other rules of the same company and transaction type. It does not limit how fast transactions are posted.

Goal: Choose the days and hours when the rule detects transactions.

Prerequisites:

  • The rule is disabled.

Steps:

  1. Expand the Schedule FastTab.
  2. Turn off Run 24x7. All Days, the days, and the times appear.
  3. Turn on the days, from Monday to Sunday. To turn on every day at once, turn on All Days. Turning All Days off turns off all seven days, and turning off one day turns All Days off.
  4. In Start Time, enter the start of the window.
  5. In End Time, enter the end of the window.

The Schedule FastTab of a rule: Run 24x7 off, All Days on, Monday to Sunday on, Start Time 8:00 AM, End Time 6:00 PM.

Expected result: The rule detects transactions only on the selected days, between the start and end time, in the Post Master time zone.

  • A blank Start Time means the start of the day, and a blank End Time the end of the day.
  • An End Time earlier than the Start Time makes a window that continues past midnight. The time after midnight belongs to the day the window started.
  • A transaction that was queued inside the schedule is still posted after the schedule ends.
  • The posting pause stops detection for every rule, inside or outside its schedule.

Set the posting delay and priority of a rule

Section titled “Set the posting delay and priority of a rule”

Goal: Give users time to correct a document before it is posted, and post the most important transactions first.

Prerequisites:

  • The rule is disabled.
FieldWhat it does
Posting Delay Hours, Posting Delay MinutesHow long after detection a transaction is posted. 0 posts at the next Posting Parent run.
Priority0 to 10. When transactions of several rules wait, those with the higher number are posted first.

Steps:

  1. On the General FastTab, enter the Priority.
  2. On the Posting FastTab, enter the Posting Delay Hours and Posting Delay Minutes.

Expected result: The values are saved.

When two rules select the same transaction, the rule that queued it first sets its priority, delay, and notification recipients. The Activity Log records a detection overlap for the other rule.

Goal: Send the notifications about a rule’s transactions to more people.

Prerequisites:

  • The rule is disabled.

Steps:

  1. Expand the Notifications FastTab.
  2. In Notification Recipients, enter the email addresses, separated by semicolons.

Expected result: The rule’s notifications go to these addresses and to the Global Recipients of Post Master Setup. Which outcomes send a notification is set on Post Master Setup.

Goal: See the transactions that the rule selects now, without queuing or posting them.

Prerequisites:

  • A rule with a company and a transaction type.

Steps:

  1. On the rule card, choose Run Eligibility Check.
  2. Expand the Eligible Transactions FastTab.

The Eligible Transactions part of a rule after Run Eligibility Check: three sales invoices with Status Eligible, their numbers, customer, posting date, and amount.

Expected result: Each transaction that the rule selects is listed with Status Eligible. Choose a number in No. to open the document in its company.

For a journal rule, a batch that the rule selects but that Post Master does not post has Status Not Posted, and Reason says why: a recurring journal, another template type, lines that the rule does not select, or a batch approval that is not complete.

Goal: Let detection use a rule, or stop it so you can change the rule.

Prerequisites:

  • The rule has a Company Name and an enabled transaction type.

Steps:

  1. On the rule card, turn Enabled on or off.

Expected result: An enabled rule’s fields are read-only, and detection uses the rule while Post Master runs. A disabled rule can be changed, and detection does not use it.

On Post Master Auto Detect Rules, Enable and Disable change every selected rule at once.

Goal: Create a similar rule, for example for another company, or give a rule another code.

Prerequisites:

  • The PMBC RULES BLD Permission Set.

Steps:

  1. Open the rule card, or select the rule on Post Master Auto Detect Rules.
  2. Choose Copy Rule.

Expected result: A new, disabled rule with every setting of the original, including the filters, and the next code from the number series.

Goal: Remove a rule that is no longer needed.

Prerequisites:

  • The rule is disabled.
  • The posting queue holds no transactions of the rule.

Steps:

  1. On the rule card, choose Actions, then Delete.
  2. Choose Yes.

Expected result: The rule is deleted. Its Posting History and Activity Log entries stay. On Post Master Auto Detect Rules, Delete deletes every selected rule.

View the status and recent activity of a rule

Section titled “View the status and recent activity of a rule”

Goal: See when the rule last ran and what it posted.

Prerequisites:

  • The PMBC VIEW BLD Permission Set.
FieldWhat it shows
Last Run DateTimeWhen detection last evaluated the rule.
Last Run StatusSuccess when the evaluation queued transactions, Skip when it queued none.
Last Scheduled Run DateThe last date on which detection evaluated the rule inside its schedule.

Steps:

  1. Open the rule card.
  2. Choose Refresh Activity.
  3. Expand Recent Posting Activity.

Expected result: Recent Posting Activity shows the rule’s newest entries from the posting history and the Activity Log, newest first.

Journal rules work like document rules, with these differences:

  • Post Master posts a journal batch only when the rule selects every line of it, and then it posts the whole batch.
  • Enter new journal lines in a batch that no enabled rule selects. When a line is added to a batch while Post Master posts it, Post Master keeps the new line in the batch for the next detection cycle.

MEM Entity Filter appears on the Selection FastTab only when Post Master Setup has a MEM Entity Dimension Code. It limits the rule to the transactions of the selected entities. It is a filter, so put a code that contains & | ( ) . * < > = or a space in single quotes, for example ‘R&D’; the lookup adds the quotes for you. A filter that is not valid is refused when you enter it. When the filter matches no entity in the rule’s company, for example because of a typing error, the Rule card shows a warning.

Goal: Start detection and posting.

Prerequisites:

  • You are signed in as the main posting user, in the admin company.
  • Post Master is On Hold.
  • The rules you want are enabled.

When Post Master starts, detection runs every enabled rule at once. Check that only the rules you want are enabled.

Steps:

  1. Open Post Master Setup.
  2. Choose Start Post Master.

Post Master Setup after Start Post Master: Status Running, the notification that the setup cannot be changed while Post Master runs, and Stop Post Master available.

Expected result: Status is Running, and Host Company Name shows the admin company. A notification says that the setup cannot be changed while Post Master runs. Post Master created its four job queue entries, Detection, Posting Parent, Monitor, and Maintenance, which run as the main posting user. With Notify on Start/Stop on, the Global Recipients receive a “Post Master: Started” email.

When a prerequisite is missing, Post Master does not start, and a message lists each missing item with its fix, for example:

Sign in as the main posting user, POSTMASTER, to start Post Master. All Post Master jobs run as the user who starts them.

Detection runs once right away. When it queues transactions, posting starts without waiting for the next minute.

Goal: Detect new transactions at once, without waiting for the polling interval.

Prerequisites:

  • Post Master is running, outside the posting pause.
  • The PMBC ADMIN BLD Permission Set.

Steps:

  1. On Post Master Setup or Post Master Monitor, choose Run Detection Now to run every enabled rule. On a rule card, Run Detection Now runs that rule only.
  2. Choose OK in the message.

Expected result: The message shows the rules evaluated, the transactions queued, the rules skipped, and the rules that failed; on a rule card, the number queued or why the rule queued nothing. The queued transactions are posted at the next Posting Parent run, within a minute.

Goal: Change a Post Master setting.

Prerequisites:

  • The PMBC ADMIN BLD Permission Set, and the main posting user to start Post Master again.

While Post Master runs, Post Master Setup is read-only, except Scheduled Cost Jobs. Rules are not part of the setup: a rule is changed while it is disabled, whether or not Post Master runs.

Steps:

  1. On Post Master Setup, choose Stop Post Master.
  2. Choose the Edit icon, and change the setting.
  3. Choose Start Post Master.

Expected result: Post Master runs with the new setting.

Goal: Stop detection and posting.

Prerequisites:

  • The PMBC ADMIN BLD Permission Set. Any administrator can stop Post Master, not only the main posting user.
  • You work in the company where Post Master was started (Host Company Name).

Steps:

  1. Open Post Master Setup.
  2. Choose Stop Post Master.

Expected result: Status is On Hold, and the setup can be changed. The four job queue entries are on hold. A posting job that is posting finishes its current transaction and stops. Transactions in the posting queue stay there and are posted after the next start. With Notify on Start/Stop on, the Global Recipients receive a “Post Master: Stopped” email.

Goal: See whether Post Master runs, what it posts now, and whether its jobs run on time.

Prerequisites:

  • The PMBC VIEW BLD Permission Set. You can open the Monitor in any company; it shows all companies.

Steps:

  1. Open the search, enter Post Master Monitor, and open the page. On Post Master Setup, Open Monitor opens it too.

Post Master Monitor: Post Master Status Running, Queue Count 3, the Last Runs times of Detection, Posting Parent, and Monitor, and three sales invoices in Pending Transactions.

Expected result: The Monitor shows the current state, and refreshes itself at the Monitor Refresh (Sec.) interval.

FieldWhat it shows
Post Master StatusRunning or On Hold.
Last Detection ScanWhen the last detection cycle ran.
Currently PostingThe transaction being posted now, or the number of posting jobs when several run. Blank when nothing is posted.
Queue CountThe transactions in the posting queue, in all companies.
Failed Today CountThe posting attempts today that ended with a validation error or a posting failure, in all companies.
Detection, Posting Parent, Monitor, MaintenanceWhen each Post Master job last started.
Last PostingWhen the latest posting attempt finished.
Pending TransactionsThe first 100 transactions in the posting queue, in the order of the Posting Queue page.

While Post Master runs, a Last Runs time turns red when its job is late: Detection after three polling intervals, Posting Parent and Monitor after 5 minutes, and Maintenance after 25 hours. A red time means the job does not run; see “Respond to the processing-stopped notification”.

Goal: See which posting jobs run now.

Prerequisites:

  • Post Master is posting.

Steps:

  1. On the Monitor, choose the value in Currently Posting.

Expected result: The Post Master Job Queue page opens with the posting jobs that run now.

Goal: Read the Monitor without it changing.

Prerequisites:

  • The Monitor is open.

Steps:

  1. Choose Pause Auto-Refresh.
  2. To read the data once while the refresh is paused, choose Refresh.
  3. To start the refresh again, choose Resume Auto-Refresh.

Expected result: While the refresh is paused, the action shows Resume Auto-Refresh, and the data changes only when you choose Refresh.

Respond to the processing-stopped notification

Section titled “Respond to the processing-stopped notification”

Goal: Restart Post Master when its jobs stopped running.

Prerequisites:

  • The PMBC ADMIN BLD Permission Set, and the main posting user to start Post Master.

When Post Master is running but its Monitor job has not run for several minutes, the Post Master pages show a notification:

Post Master processing appears to have stopped: the Post Master Monitor job has not run in the last (n) minutes, although Post Master is running. Check that the main posting user, (user), is enabled, has a license, and has the Post Master permissions. Then sign in as (user) and stop and start Post Master on the Post Master Setup page.

Steps:

  1. In the notification, choose Open Post Master Monitor, and look for the red Last Runs times.
  2. Check that the main posting user is enabled, has a license, and has the PMBC ADMIN BLD Permission Set.
  3. Sign in as the main posting user.
  4. On Post Master Setup, choose Stop Post Master.
  5. Choose Start Post Master.

Expected result: The Last Runs times are current again, and the notification no longer appears.

Goal: See the transactions that wait to be posted.

Prerequisites:

  • The PMBC VIEW BLD Permission Set.

Steps:

  1. Open the search, enter Post Master Posting Queue, and open the page.

Post Master Posting Queue: three sales invoices of rule RULE0005 with Priority 0, Status Queued, Detected DateTime, and Scheduled DateTime three minutes later.

Expected result: The list shows the queued transactions, highest Priority first.

FieldWhat it shows
PriorityCopied from the rule at detection. Higher numbers are posted first; within a priority, the oldest entry is posted first.
Rule CodeThe rule that detected the transaction.
Company Name, Transaction Type, Document Type, Document No.The transaction. For a journal batch, Document No. is the document number of the batch’s first line.
Description, Posting Date, AmountThe customer or vendor name or the batch description, the posting date, and the amount.
StatusQueued: waits to be posted. In Process: a posting job is posting it now.
Detected DateTimeWhen detection added the transaction to the queue.
Scheduled DateTimeThe earliest time the transaction is posted: the detection time plus the rule’s posting delay, or later when a posting attempt is retried after a lock conflict.
Posting User IDThe user the posting runs as.

A transaction leaves the queue when it is posted, fails, is skipped, or is removed. Each of these writes an entry in the posting history.

Open the source document of a queued transaction

Section titled “Open the source document of a queued transaction”

Goal: Look at the document or journal before it is posted.

Prerequisites:

  • The posting queue is open.

Steps:

  1. Select the transaction.
  2. Choose Show Source Document, or choose the value in Document No.

Expected result: The document opens. A document of another company opens in a new browser tab.

Goal: Keep Post Master from posting a queued transaction now.

Prerequisites:

  • The PMBC ADMIN BLD Permission Set.
  • The transaction’s Status is Queued.

A transaction that still matches an enabled rule is queued again by the next detection cycle. To keep it out, disable the rule or change the transaction first. Disabling a rule does not remove its queued transactions.

Steps:

  1. Open Post Master Posting Queue.
  2. Select the transactions.
  3. Choose Remove from Queue.
  4. Choose Yes.

Expected result: The transactions leave the queue. Each one gets a Skip entry in the posting history.

Goal: See the outcome of every posting attempt.

Prerequisites:

  • The PMBC VIEW BLD Permission Set.

Steps:

  1. Open the search, enter Post Master Posting History, and open the page.

Post Master Posting History scrolled to the outcome columns: entries with Status Success and a Posted Document No., Skip with the message Removed from the queue, Posting Failure, and Validation Error, with their times, Duration (ms), Transaction Count, and Line Count.

Expected result: The newest entry is first. The page opens with the postings that finished in the last 30 days; change or remove that filter in the filter pane.

FieldWhat it shows
StatusSuccess, Validation Error, Posting Failure, or Skip.
Posted Document No.The posted document number, or for a journal batch the number of the register that the posting created.
Error MessageWhy the posting failed or was skipped, with the fix. For a Success entry, an error that came after the posting (see Posted, but an error came after the posting).
Detected DateTime, Scheduled DateTimeCopied from the queue entry.
Posting Start DateTime, Posting Finish DateTime, Duration (ms)When the posting ran and how long it took.
Transaction Count, Line Count1 for a document, or the number of transactions in a journal batch; and the number of lines posted.
Posting User IDThe user the posting ran as.

Goal: Read why a posting failed or was skipped.

Prerequisites:

  • The posting history is open.

Steps:

  1. Select the entry.
  2. Choose the value in Error Message.
  3. Choose OK after you read the message.

Expected result: A message shows the full text, which names the problem and the fix.

Goal: Open the document that a posting created.

Prerequisites:

  • An entry with Status Success.

Steps:

  1. Choose the value in Posted Document No.

Expected result: The posted document opens. A document of another company opens in a new browser tab.

Goal: List the postings that need attention.

Prerequisites:

  • The posting history is open.

Steps:

  1. Choose Failed Only.
  2. To show every status again, choose All.

Expected result: Failed Only shows only the entries with Status Validation Error or Posting Failure.

NotificationSubject, for exampleSent whenSetup field
Posting FailurePost Master: Posting Failure - (company) - Sales Invoice (number)A posting returns an error.Notify on Failure
Error after postingPost Master: Success - (company) - Sales Invoice (number)A document is posted, but code that runs after the posting returns an error.Notify on Failure
Validation ErrorPost Master: Validation Error - (company) - Sales Invoice (number)A check before posting fails, so nothing is posted.Notify on Validation Error
SuccessPost Master: Success - (company) - Sales Invoice (number)A transaction is posted.Notify on Success
Started, StoppedPost Master: Started - (admin company)Post Master is started or stopped.Notify on Start/Stop
Job Restarted, Job Failure, Stalled Posting Worker, Prerequisite WarningPost Master: Job Failure - (company)A Post Master job was restarted or failed, a posting job stopped responding, a job runs as another user than the main posting user, or a scheduled cost job cannot run.Notify on Failure
Registration Not ValidPost Master: Registration Not Valid - (admin company)The registration is not valid, and Post Master stops.Always sent
Test EmailPost Master: Test Email - (admin company)You choose Send Test Email.Always sent

For a journal, the subject names the batch. Each notification goes to the Global Recipients of Post Master Setup and, when it concerns a rule, to the rule’s Notification Recipients. An address that is in both lists gets one email.

Post Master writes each notification to the Notification Log with Status Pending, and a background task sends it, usually within a minute. When an attempt fails, Post Master tries again five minutes later. After the third failed attempt, Status is Failed, and Post Master does not try again until you resend it. The task sends the email as the user whose action created the notification: the main posting user for postings and job events, and the user who chose the action for Start Post Master, Stop Post Master, Send Test Email, and Resend.

Goal: See the notifications that Post Master created and whether they were sent.

Prerequisites:

  • The PMBC VIEW BLD Permission Set.

Steps:

  1. Open the search, enter Post Master Notification Log, and open the page.

Post Master Notification Log: Started and Stopped notifications with Status Failed, Attempts 3, and an Error Message that starts with Failed to send email.

Expected result: The newest notification is first.

FieldWhat it shows
StatusPending: waits to be sent or to be tried again. Sent: the email was sent. Failed: the email could not be sent after three attempts.
Recipients, SubjectThe addresses and the subject of the email.
Rule Code, Company NameThe rule and the company the notification concerns.
Sent DateTimeWhen the email was sent.
AttemptsHow many times Post Master tried to send the email.
Error MessageWhy the last attempt failed.

Goal: Find and fix the cause of a failed notification.

Prerequisites:

  • A notification with Status Failed.

Steps:

  1. Select the notification.
  2. Choose the value in Error Message.
  3. Choose OK after you read the message.

Expected result: A message shows the full error text.

ErrorWhat to do
The mailbox is either inactive, soft-deleted, or is hosted on-premise.The user who sent it has no mailbox. Give the main posting user a mailbox, or check the email account.
An address is not valid or was rejected.Correct Global Recipients or the rule’s Notification Recipients. The correction applies to later notifications; a resent notification goes to the addresses it was created with.
Another error from the email account.Check the account of the Post Master Notifications scenario, and send a test email.

Goal: See the email as the recipients see it.

Prerequisites:

  • The Notification Log is open.

Steps:

  1. Select the notification.
  2. Choose View Body.

Expected result: The Notification Body page shows the subject, recipients, status, and creation time, and the email: a table with the details, a link that opens the entry in Post Master Posting History or Post Master Setup, and a footer with the Post Master version, the environment, and the admin company.

Goal: Send failed notifications again after the cause is fixed.

Prerequisites:

  • The PMBC ADMIN BLD Permission Set.
  • The cause of the failure is fixed.

Steps:

  1. Select one or more notifications with Status Failed.
  2. Choose Resend.
  3. Choose OK in the message.

Expected result: The notifications are Pending again, with Attempts 0, and Post Master sends them, as you, with three new attempts. Only failed notifications are resent.

Sent and failed notifications are kept for the Activity Log Retention of Post Master Setup. Pending notifications are never deleted.

One Post Master posts in all companies of the environment.

  • All Post Master data is shared by the companies: the setup, the transaction types, the rules, the posting queue, the posting history, the Activity Log, and the Notification Log. Each entry that belongs to a company names it in Company Name.
  • The setup and the rules are changed only in the admin company. In another company the Post Master pages are read-only, and a notification says so.
  • Each rule posts in one company, its Company Name.
  • Post Master is started in the admin company. Its jobs run there and post the transactions of every rule’s company, as the main posting user.
  • There is one posting queue for all companies.

Show the entries of the current company or all companies

Section titled “Show the entries of the current company or all companies”

Goal: In a company other than the admin company, choose whether the Post Master lists show that company only or all companies.

Prerequisites:

  • The PMBC VIEW BLD Permission Set.
  • You work in a company other than the admin company.

Five pages follow one setting for your user: Post Master Auto Detect Rules, Post Master Posting Queue, Post Master Posting History, Post Master Activity Log, and Post Master Notification Log. The setting is kept the next time you sign in, and it is Show All Companies until you change it. In the admin company the five pages always show all companies. The Monitor and the Post Master Job Queue always show all companies.

Steps:

  1. Open one of the five pages, for example Post Master Posting History.
  2. Choose Current Company Only, or Show All Companies.

Post Master Posting History in company PMTEST-B after Current Company Only: the action bar shows Show All Companies, and the list shows the postings of PMTEST-B.

Expected result: The page, and the other four pages, show the current company only, or all companies. On the Activity Log and the Notification Log, Current Company Only also shows the entries that concern all companies.

Goal: Start posting in another company.

Prerequisites:

  • The PMBC RULES BLD Permission Set, and the main posting user to start Post Master.

A company takes part when an enabled rule names it. It needs no other Post Master setup.

Steps:

  1. Check that the main posting user can sign in to the company and has a license for the postings.
  2. Check that the main posting user has Permission Sets that allow the postings in that company.
  3. Check that the posting dates of the documents are allowed for the main posting user in User Setup and General Ledger Setup.
  4. Check that the number series of the posted documents have enough numbers left.
  5. In the admin company, create a rule with the company in Company Name (see “Create a rule”).
  6. Enable the rule.
  7. On Post Master Setup, choose Stop Post Master, and then Start Post Master.

Expected result: Post Master checks the main posting user’s permissions in the new company when it starts, and lists each table that the user cannot write to. When the check passes, the rule’s transactions are posted.

Goal: Find where a transaction stopped.

Prerequisites:

  • The PMBC VIEW BLD Permission Set.

Steps:

  1. Open Post Master Posting Queue, and look for the transaction. If it is there, Post Master found it: Queued with a Scheduled DateTime in the future means the rule’s posting delay is running, and In Process means a posting job posts it now. If it stays Queued after its Scheduled DateTime, check that Post Master is running.
  2. Open Post Master Posting History, choose All, and remove the date filter if the transaction is older than 30 days. Look for the transaction’s outcome.
  3. If the transaction is on neither page, open the rule that should select it, and choose Run Eligibility Check.
  4. If the transaction is not in Eligible Transactions, check the rule’s company and filters, Post Released Only and the document’s status, the approval, Max. Posting Date Formula and the posting date, and the MEM Entity Filter.
  5. If the transaction is in Eligible Transactions but is not queued, turn on Log Skipped Evaluations to see why the rule queued nothing (see the next task).

Expected result: You know whether the transaction waits, was posted, failed, was skipped, or is not selected.

The reasons why a rule queues nothing:

Reason in the Activity LogWhat it means
Outside schedule.The rule’s schedule does not include this time.
Transaction type (type) disabled.The transaction type is turned off on Post Master Transaction Types.
Queue at maximum: …The queue already holds Max. Queued Transactions entries of the rule.
No matches.The rule selects nothing.
No new matches: …Every match is already in the queue, or it failed within the Retry Period (Hours).
(type) batch (template) (batch) is not queued: …A journal batch that Post Master does not post, with the reason.

Detection does not run while Post Master is On Hold or during the posting pause.

Goal: Write the reason for every rule evaluation that queued nothing to the Activity Log.

Prerequisites:

  • The PMBC ADMIN BLD Permission Set, and the main posting user to start Post Master.

Steps:

  1. On Post Master Setup, choose Stop Post Master.
  2. Choose the Edit icon.
  3. On the Logging FastTab, set Logging Level to Verbose.
  4. Turn on Log Skipped Evaluations.
  5. Choose Start Post Master.
  6. After the next detection cycle, open the search, enter Post Master Activity Log, and open the page.
  7. Filter Event ID on PMBC0012.

Post Master Activity Log filtered on Event ID PMBC0012: a Rule Skipped entry with Activity Type Detection, Level Verbose, the rule code, and the message Rule disabled.

Expected result: Each Rule Skipped entry names the rule in Rule Code and the reason in Message.

Goal: Correct a transaction that failed the checks before posting.

Prerequisites:

  • A posting history entry with Status Validation Error.

Before it posts a transaction, Post Master checks it again. When a check fails, nothing is posted, the Activity Log gets event PMBC0022, and the Global Recipients get an email when Notify on Validation Error is on.

Steps:

  1. On Post Master Posting History, choose the value in Error Message of the entry.
  2. Read the problem and the fix.
  3. Correct the transaction or the rule, as the message says.

Expected result: After the Retry Period (Hours), detection queues the transaction again, and Post Master posts it.

Error Message starts withFix
Document is not releasedRelease the document, or turn off Post Released Only on the rule.
Approval workflow is not complete, Approval requiredComplete or send the approval, or change the rule or the workflow, as the message says.
Posting date is not within the allowed posting date rangeChange the posting date, or the allowed range in General Ledger Setup, in the User Setup of the main posting user, or on the journal template.
Document has no lines, Nothing to post for the posting optionAdd lines, or check the quantities to ship, receive, or invoice and the rule’s Posting Option.
Prepayment invoice not posted, Prepayment not paidPost or pay the prepayment first.
Batch out of balance, Batch contains lines that the rule does not select, Empty batchCorrect the journal batch.
Inventory reserved for other documents would be usedChange the quantity or the reservations.

Goal: Correct a transaction whose posting returned an error.

Prerequisites:

  • A posting history entry with Status Posting Failure.

A posting failure means the checks passed, but the standard posting stopped with an error, as it would for a user who chooses Post. Nothing is posted. The Activity Log gets event PMBC0023, and the Global Recipients get an email when Notify on Failure is on.

Steps:

  1. On Post Master Posting History, choose the value in Error Message of the entry.
  2. Fix the cause that the error names, as you would for a manual posting, for example a blocked customer.

Expected result: After the Retry Period (Hours), detection queues the transaction again, and Post Master posts it.

Lock conflicts are not posting failures. When another session holds the records, Post Master tries the posting three times, ten seconds apart, and then returns the transaction to the queue for a later cycle.

Posted, but an error came after the posting

Section titled “Posted, but an error came after the posting”

Business Central saves a posted sales, purchase, or service document first, and then runs more code, for example analysis view updates and the code of other apps that act after a posting. When that code returns an error, the document is already posted, and what that code did is undone.

Post Master recognizes this when the document no longer exists after the error. Posting History gets an entry with Status Success and an Error Message that starts with “Posted, but an error came after the posting” and ends with Business Central’s message. The Activity Log gets event PMBC0076, and the Global Recipients get an email when Notify on Failure is on. Post Master does not post the document again.

Steps:

  1. Find the posted document, for example on Posted Sales Invoices.
  2. Read the error in Error Message, and check what the code that failed should have done, for example an update in another app. Ask the publisher of that app if needed.

An order or return order that stays after posting (for example posted with Ship only), and a journal batch, still exist after the error. For them the error is a Posting Failure, even if part of the posting was saved. Check the posted documents before you post such a transaction by hand.

Goal: Post a corrected transaction before the retry period ends.

Prerequisites:

  • The cause of the failure is fixed.

There is no action to post a failed transaction again. After a validation error or a posting failure, detection does not queue the transaction again for the Retry Period (Hours). Run Detection Now does not shorten the period.

Steps:

  1. Open the document or journal in its company.
  2. Post it yourself.

Expected result: The transaction is posted. If the cause is not fixed, each attempt after the retry period fails again and sends the notification again.

Goal: Read everything Post Master recorded about an event.

Prerequisites:

  • The PMBC VIEW BLD Permission Set.

Steps:

  1. Open Post Master Activity Log.
  2. Select the entry.
  3. Choose View Detail.
  4. Choose OK after you read the message.

Expected result: The message shows the full Message, then the detail, one line for each value. For a posting failure the detail includes the queue entry, the transaction type, the duration, the error code, the attempt, and the error’s call stack.

FieldWhat it shows
Logged DateTimeWhen the event happened.
Company NameThe company the event belongs to.
Activity TypeService, Detection, Posting, Notification, Monitor, Maintenance, or Configuration.
LevelThe lowest Logging Level that records the event: Errors Only, Normal, or Verbose.
Event IDThe event, for example PMBC0023.
Rule CodeThe rule, when the event concerns one.
MessageWhat happened.
User IDThe user the event ran as.

The page opens with the last 30 days; change or remove that filter in the filter pane.

Goal: See how often postings waited for records that another session was changing.

Prerequisites:

  • Logging Level Normal or Verbose.
Event IDMeaning
PMBC0028Lock Conflict Retried: a later attempt posted the transaction.
PMBC0029Lock Conflict Returned to Queue: three attempts hit a lock conflict; the transaction is posted in a later cycle.
PMBC0074Temporary Error Returned to Queue: an attempt after a lock conflict failed with another error; the transaction is tried again later, at most three times.
PMBC0026Claim Lock Timeout: a posting job could not take the next queue entry, and tries again.

Steps:

  1. Open Post Master Activity Log.
  2. Filter Event ID on PMBC0028|PMBC0029|PMBC0074|PMBC0026.
  3. Filter Logged DateTime on the period.

Expected result: The list shows the conflicts of the period. The message names the transaction and the kind of conflict. When PMBC0029 repeats for the same journal batch, check which process changes the batch at the same time.

Do not add lines to a journal batch or a service invoice that an enabled rule selects while Post Master runs. Enter new lines in a batch that no rule selects.

  • Journal batches: when a line is added to a batch while Post Master posts it, Post Master keeps the new line in the batch, and a later cycle posts it. When a line was added after Post Master checked the batch and before the posting reached it, the line is posted with the standard checks only, and the Activity Log gets event PMBC0071 Journal Lines Not Checked. When another extension changes the standard posting so that Post Master cannot keep added lines, the Activity Log gets event PMBC0072 Keep Added Lines Not Applied.
  • Service invoices: when a line is added to a service invoice while Post Master posts it, the posting is canceled, the invoice keeps all its lines, and Post Master posts it in a later cycle. The Activity Log gets event PMBC0070 Service Invoice Deferred.

Goal: Collect the information Blue Dragonfly support needs.

Prerequisites:

  • The PMBC ADMIN BLD Permission Set.

The diagnostic file contains the setup, the transaction types and rules, record counts, posting statistics, the Activity Log entries of the last 30 days, and the status of the Post Master jobs. The Activity Log entries name documents and companies, so treat the file as company data.

Steps:

  1. Open Post Master Setup.
  2. Choose Actions, then Diagnostics, then Generate Diagnostic File.

Expected result: The browser downloads a file named PMBC_Diagnostics_(date)_(time).json.

Goal: Send the diagnostic file to Blue Dragonfly support by email.

Prerequisites:

  • The PMBC ADMIN BLD Permission Set.
  • A Support Email Address on Post Master Setup and a working email account.

Steps:

  1. Open Post Master Setup.
  2. Choose Actions, then Diagnostics, then Send Diagnostics to Support.

Expected result: A message confirms that the diagnostic file was sent to the support address. If the email cannot be sent, the message says why; then generate the file and send it yourself.

Restart Post Master after the main posting user changes

Section titled “Restart Post Master after the main posting user changes”

Goal: Get the Post Master jobs running again after the main posting user was disabled, lost a license, or lost a Permission Set, or after you choose a new main posting user.

Prerequisites:

  • The PMBC ADMIN BLD Permission Set.

Every Post Master job runs as the main posting user. When that user cannot run them, the jobs stop: the Post Master pages show the processing-stopped notification, and the Monitor shows red Last Runs times. When a Post Master job runs as another user, for example because someone restarted it on the Job Queue Entries page, the Activity Log gets event PMBC0060 Prerequisite Warning, and the Global Recipients get an email.

Steps:

  1. Fix the main posting user: enable the user, assign the license, or assign the Permission Sets again.
  2. Sign in as the main posting user.
  3. On Post Master Setup in the admin company, choose Stop Post Master.
  4. To choose a new main posting user, enter the user in Main Posting User ID, and sign in as that user.
  5. Choose Start Post Master.

Expected result: Post Master checks the prerequisites again, and its jobs run as the main posting user.

This part is for administrators and IT professionals. It needs the PMBC ADMIN BLD Permission Set. The settings can be changed only in the admin company while Post Master is On Hold.

Goal: See the Post Master job queue entries and the jobs and tasks that Post Master started.

Prerequisites:

  • The PMBC VIEW BLD Permission Set.

Steps:

  1. Open Post Master Setup.
  2. Choose Post Master, then Post Master Job Queue. The Monitor has the same action.

Post Master Job Queue: Job Queue Entries lists Post Master: Posting Parent, Maintenance, Detection, and Monitor with Status Ready; Jobs and Tasks lists a Worker job for Sales Invoice in PMTEST-B that posted 3 transactions, and Notification jobs.

Expected result: The page has two parts. Refresh reads both again.

Job Queue Entries lists the Post Master job queue entries of the company where Post Master was started, and the entries of the scheduled cost jobs:

EntryWhat it doesRuns
Post Master: DetectionRuns the enabled rules and queues their transactions.Every Polling Interval (Min.)
Post Master: Posting ParentStarts the posting jobs for the queued transactions.Every minute
Post Master: MonitorChecks the jobs, restarts a job that stopped, and reports problems.Every minute
Post Master: MaintenanceDeletes old entries and checks the number series.Once a day

Status is Ready while Post Master runs and On Hold after it is stopped. User ID is the user the jobs run as.

Jobs and Tasks lists, newest first, the jobs and tasks that Post Master started, in all companies:

FieldWhat it shows
Job TypeDetection, Parent, Monitor, and Maintenance are the recurring jobs. Worker is a posting job; Notification sends emails.
Company NameThe company the job runs in. A posting job runs in the company of the transactions it posts.
Transaction TypeThe transaction type a posting job posts.
StatusScheduled, Running, Finished, Failed, or Orphaned: the task ended without updating its status.
Created DateTime, Started DateTime, Finished DateTimeWhen the job was created, started, and finished.
Last Heartbeat DateTimeWhen a posting job last finished a posting attempt. The Monitor reports a posting job that has not updated it for 30 minutes.
Transactions PostedThe transactions the posting job posted.
Current Request Entry No.The queue entry the posting job posts now.

Goal: Restore the Post Master job queue entries after one was changed or deleted on the standard Job Queue Entries page.

Prerequisites:

  • You are signed in as the main posting user, in the company where Post Master was started (before the first start, the admin company).

Steps:

  1. Open the Post Master Job Queue page.
  2. Choose Recreate Jobs.
  3. Choose Yes in the question “Delete the four Post Master job queue entries and the scheduled cost job entries, and create them again? The new entries run as you.”

Expected result: The four Post Master job queue entries and the scheduled cost job entries are created again and run as you. While Post Master is On Hold, the new entries are on hold too.

When another user chooses Recreate Jobs, a message names the main posting user. Stopping and starting Post Master also makes the jobs run as the user who starts them.

Goal: Choose how long Post Master keeps its history and log entries.

Prerequisites:

  • Post Master is On Hold.
Field (Logging FastTab)Deletes
History RetentionPosting History entries.
Activity Log RetentionActivity Log entries, sent and failed notifications, and failed or orphaned entries in Jobs and Tasks.

Finished entries in Jobs and Tasks are deleted after 7 days. The posting queue and the notifications that wait to be sent are never deleted.

Steps:

  1. On Post Master Setup, choose the Edit icon.
  2. In History Retention or Activity Log Retention, enter a date formula of at least one day, for example 6M, 1Y, or 365D.

Expected result: The Maintenance job deletes older entries at its next daily run. A period shorter than one day is refused with a message on the field.

View the configuration changes in the Change Log

Section titled “View the configuration changes in the Change Log”

Goal: See who changed the Post Master setup, the rules, or the transaction types, and when.

Prerequisites:

  • Enable Change Tracking is on.
  • Permission to read the Change Log.

With Enable Change Tracking on, the Change Log of the admin company records every change to the Post Master setup, the auto detect rules, and the transaction types, with the old and new value. It does not record the fields that Post Master updates itself, such as the last run times.

Steps:

  1. In the admin company, open Post Master Setup.
  2. Choose Post Master, then Change Log. Change Log Entries opens with the changes to the Post Master setup, the auto detect rules, and the transaction types, the newest first.
  3. If the page opens in a small window, choose the expand icon at the top right to see more columns, including Field Caption and Old Value. Scroll right to see New Value.
  4. To see only one table, filter Table Caption, for example on Auto Detect Rule.

Change Log Entries opened from Post Master Setup, the newest first: changes to Activity Log Retention, Status, and the posting pause fields of Post Master Setup, each with the user, the time, the field, and the old value.

Expected result: The list shows each change with the user, the time, the field, and the old and new value.

Goal: Stop detection and posting every day for a period, for example while a nightly import or the inventory cost jobs run.

Prerequisites:

  • Post Master is On Hold.

During the pause, detection does not run, and Run Detection Now shows an error. No new posting job starts, and a running posting job finishes its current transaction and stops. Queued transactions wait and are posted after the pause.

Steps:

  1. On Post Master Setup, choose the Edit icon.
  2. Turn on Enable Posting Pause.
  3. In Posting Pause Start Time, enter the start of the pause, in the Post Master time zone.
  4. In Posting Pause End Time, enter the end of the pause.
  5. Choose Start Post Master.

Expected result: Every day between the two times, Post Master neither detects nor posts. An end time earlier than the start time makes a pause that continues past midnight.

To remove the pause, clear Posting Pause Start Time and Posting Pause End Time first, then turn off Enable Posting Pause. The times can be changed only while the pause is on.

Goal: Make the Post Master times mean your company’s local time.

Prerequisites:

  • Post Master is On Hold.

Time Zone ID sets the time zone of the rule schedules, the posting pause, the scheduled cost jobs, the “today” of Max. Posting Date Formula, and the time of the daily Maintenance job.

Steps:

  1. On Post Master Setup, choose the Edit icon.
  2. In Time Zone ID, choose the time zone in the lookup, or enter part of its ID, for example Pacific.
  3. Check the rule schedules, the posting pause, and the cost job start times.
  4. Choose Start Post Master.

Expected result: Time Zone shows the new time zone. The rule schedules, the posting pause, and the cost job start times keep their times, which now mean the new time zone.

Change the number of concurrent posting jobs

Section titled “Change the number of concurrent posting jobs”

Goal: Let several posting jobs run at the same time.

Prerequisites:

  • Post Master is On Hold.
  • A license that allows more than one posting job.

Max. Concurrent Posting Jobs cannot be more than Licensed Max. Concurrent Jobs. A higher value is refused with the message “Max. Concurrent Posting Jobs cannot be more than the licensed maximum of 1. More than one concurrent posting job requires a Post Master concurrency license.”

Steps:

  1. On Post Master Setup, choose Actions, then Registration, then Sync License, so Licensed Max. Concurrent Jobs shows the current license.
  2. Choose the Edit icon.
  3. In Max. Concurrent Posting Jobs, enter the number of posting jobs, at most the licensed maximum.
  4. In Max. Posting Jobs per Company, enter 1 or 2.

Expected result: After the next start, the Posting Parent starts at most that many posting jobs, and at most Max. Posting Jobs per Company in one company.

These changes in Post Master and Dynamics 365 Business Central can make posting faster. How much each one helps depends on your data, your installed apps, and your settings.

Set Posting Throttle Delay (Sec.) on Post Master Setup from 1 to 0. Each posting job waits this delay after every posting, so a posting job without the wait posts several times as many transactions in the same time. The posting jobs then run without a pause and use more of the environment while they post.

On No. Series, set Implementation to Sequence on the series lines of the unposted documents, for example the sales invoice numbers. When an import, an integration, or a group of users creates many documents of one type at the same time, the sessions no longer wait for each other for the next number. When the creation of a document fails, its number is lost, so unposted document numbers can have gaps. Posted document numbers are not affected.

Reserve number blocks for imports that need continuous numbers

Section titled “Reserve number blocks for imports that need continuous numbers”

When an import creates documents in several sessions and the unposted numbers must be continuous, let the import reserve a block of numbers for each session on a series line with Implementation Normal, and assign them itself. The sessions then do not wait for each other. The import needs code for it, and the unused end of a block is a gap unless the next run continues it.

When an import commits after each document instead of after a group, other sessions wait less for the records it holds. A failed document no longer undoes the documents before it.

Keep the posting and posted number series on Implementation Normal. Sequence on these series did not make posting reliably faster, and posted document numbers usually must be continuous.

Use a separate posted invoice series for sales orders

Section titled “Use a separate posted invoice series for sales orders”

When sales invoices and sales orders post at the same time with two posting jobs, they wait for each other for the next posted invoice number. A second posted invoice series for the invoices from sales orders, set in the Posting No. Series of each order, removes that wait. Keep Shipment on Invoice off in Sales & Receivables Setup. Your auditor must accept two posted invoice number ranges.

With a concurrency license, set Max. Concurrent Posting Jobs to 2 for one company, or up to 5 in total for several companies, with at most 2 in each company. Only one posting job runs for each company and transaction type, so a company that posts mainly one transaction type gains nothing. More than 2 posting jobs in one company did not post faster and caused failed postings, so Post Master allows at most 2.

Use a user only as the Post Master main posting user, with no other job queue entries or scheduled tasks. Dynamics 365 Business Central online runs a limited number of background tasks for each user at the same time. The Post Master jobs, the posting jobs, and the notification emails of the main posting user share that limit, so other tasks of the same user can delay posting.

Post large journal batches outside business hours

Section titled “Post large journal batches outside business hours”

While a journal batch posts, the general ledger, and for an item journal its items, are held until the whole batch is posted, and other postings wait. Use the journal rule’s schedule to post large batches when documents are not posting, or keep the batches small. The Activity Log records event PMBC0073 Long Journal Batch Posting when a batch takes longer than 20 seconds to post, with the batch, the number of lines, and the time.

Add imported journal lines to a separate batch

Section titled “Add imported journal lines to a separate batch”

Let imports and integrations add journal lines to a batch that no enabled rule posts while the import runs, or schedule the rule outside the import times. The import and the posting then do not wait for each other, and no added lines are left for the next cycle. A rule’s posting delay can also hold an imported batch in the queue until the import is finished; the delay counts from detection, so it must be longer than the import takes.

In Inventory Setup, set Automatic Cost Adjustment to Never, and schedule Adjust Cost - Item Entries in Scheduled Cost Jobs on Post Master Setup, for example every night. Item postings from several sessions then wait less for each other, and fewer of them fail with deadlocks. Item costs are adjusted when the job runs, not at each posting, so same-day cost of goods sold, profit, and margin reports can differ from the values after the adjustment. Run the job before period-end inventory valuation and financial reporting. Only Never moves the adjustment out of the posting.

Post inventory costs to the general ledger later

Section titled “Post inventory costs to the general ledger later”

In Inventory Setup, turn off Automatic Cost Posting, and schedule Post Inventory Cost to G/L in Scheduled Cost Jobs, for example every night when Post Master is not posting. Item postings then no longer write the inventory and cost of goods sold G/L entries, so an item journal batch no longer holds the general ledger. The inventory and cost of goods sold G/L accounts are not up to date until the job runs.

When a user posts a transaction that a rule has already queued, the queue entry ends as a Skip with “Document no longer exists”, after it used a place in the queue and a posting job’s time. Let the rules post the transactions they select.

  • Polling Interval (Min.): a shorter interval queues new transactions sooner. Each detection cycle reads every transaction that the rules match.
  • Retry Period (Hours): a shorter period posts corrected transactions sooner, and sends the failure email more often for transactions that are not corrected. Lock conflicts are retried by the posting job itself.
  • Logging Level Normal and Log Skipped Evaluations off write fewer Activity Log entries.
  • Number series: a posting or posted number series that reaches its last number stops every posting of that type. Watch the number series notification on Post Master Setup.
  • Postings with item lines take longer than postings with G/L account lines.
  • Other installed apps run during every posting.
  • Sales tax is calculated for each line of a document with a tax area code.
  • Application Method Apply to Oldest on a customer makes every invoice posting read the customer’s open entries.