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.
How Post Master works
Section titled “How Post Master works”| Term | Meaning |
|---|---|
| Transaction | One unit that Post Master posts: one document, for example a sales invoice, or one journal batch. |
| Auto detect rule | A 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 cycle | One 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 queue | The detected transactions that wait to be posted. Page Post Master Posting Queue. |
| Posting job | A background session that posts the queued transactions of one company and one transaction type. |
| Main posting user | The 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 company | The company where Post Master is set up and the rules are entered. It holds no business data. |
How a transaction is posted
Section titled “How a transaction is posted”- The main posting user starts Post Master in the admin company.
- 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.
- 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.
- Each posting job checks each transaction, posts it, and writes the outcome to the posting history.
- Post Master sends an email notification for the outcomes and events selected on the Post Master Setup page.
- 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.
Outcomes
Section titled “Outcomes”Each posting attempt ends with one of four outcomes in the posting history:
| Outcome | Meaning |
|---|---|
| Success | The transaction was posted. |
| Validation Error | A check before the posting found a problem, for example a posting date outside the allowed range. Post Master did not try to post. |
| Posting Failure | Post Master ran the standard posting, and the posting returned an error. |
| Skip | Nothing was posted, for a reason that is recorded, for example a queued document that a user posted or deleted before Post Master reached it. |
Supported transaction types
Section titled “Supported transaction types”| Area | Transaction types |
|---|---|
| Journals | General Journal, Item Journal, Project Journal |
| Purchases | Purchase Invoice, Purchase Order, Purchase Credit Memo, Purchase Return Order |
| Sales | Sales Invoice, Sales Order, Sales Credit Memo, Sales Return Order |
| Service | Service 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.
Get started
Section titled “Get started”Install and register Post Master
Section titled “Install and register Post Master”Goal: Install Post Master and register it, so it can run.
Prerequisites:
- Permission to install apps in the environment.
Steps:
- Install Post Master from Microsoft AppSource. Blue Dragonfly Registration is installed with it, because Post Master needs it.
- Open the search, enter Post Master Setup, and open the page.
- In the notification “Post Master is not registered, or its license is not valid”, choose Register.
- Complete the Blue Dragonfly Registration wizard.
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.
Assign Post Master Permission Sets
Section titled “Assign Post Master Permission Sets”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 Set | Name | Allows |
|---|---|---|
| Post Master View | PMBC VIEW BLD | Open every Post Master page, read-only. |
| Post Master Rules | PMBC RULES BLD | Everything in Post Master View, and create, change, copy, enable, disable, and delete rules. |
| Post Master Admin | PMBC ADMIN BLD | Everything 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:
- Open the search, enter Users, and open the page.
- Open the user’s card.
- In User Permission Sets, choose the first empty line.
- In Permission Set, enter PMBC VIEW BLD, PMBC RULES BLD, or PMBC ADMIN BLD.
- 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.
Choose the main posting user
Section titled “Choose the main posting 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:
- Create the user, or choose an existing one.
- Assign PMBC ADMIN BLD and the Permission Sets that the user needs to post in each company.
- 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.
Create the admin company
Section titled “Create the admin company”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:
- Open Post Master Setup.
- In the notification about the admin company, choose Create company.
- In the company creation wizard, choose the setup type that creates a company with no data, and finish the wizard.
- Switch to the new company.
- Open Post Master Setup, and choose the Edit icon.
- In Admin Company Name, choose the new company.
Expected result: Admin Company Name shows the admin company, and Rule Nos. shows the number series that gives new rules their codes.
Set up an email account
Section titled “Set up an email account”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:
- In the admin company, open the search, enter Email Scenario Assignment, and open the page.
- Select the email account.
- Choose Assign scenarios.
- Select Post Master Notifications.
- Choose OK.
Expected result: Post Master notifications are sent from the selected account.
Set up Post Master
Section titled “Set up Post Master”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.
Open Post Master Setup
Section titled “Open Post Master Setup”Goal: Open the Post Master settings for editing.
Prerequisites:
- The PMBC ADMIN BLD Permission Set.
- Post Master is On Hold.
Steps:
- In the admin company, open the search, enter Post Master Setup, and open the page.
- Choose the Edit icon.
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.
Set up the General FastTab
Section titled “Set up the General FastTab”Goal: Set the admin company, the main posting user, and the time zone.
Prerequisites:
- Post Master Setup is open for editing.
| Field | What it does |
|---|---|
| Status | Running or On Hold. Only Start Post Master and Stop Post Master change it. |
| Host Company Name | The company that holds the Post Master job queue entries. Set when Post Master starts. |
| Admin Company Name | The admin company. Select it while you work in that company. |
| Main Posting User ID | The user who starts Post Master. Every Post Master job, including posting, runs as this user. |
| Time Zone ID | The 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 Zone | The 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:
- In Main Posting User ID, choose the main posting user.
- 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.
Set up detection and posting
Section titled “Set up detection and posting”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:
- Enter the Polling Interval (Min.).
- Enter the posting values on the Posting FastTab.
- Enter the Retry Period (Hours).
Expected result: The values are saved. Post Master uses them the next time it starts.
Set up notifications and logging
Section titled “Set up notifications and logging”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:
- In Global Recipients, enter the addresses that receive notifications.
- Turn on the notifications you want.
- 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:
- In MEM Entity Dimension Code, choose the entity dimension, or leave the field blank.
- 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.
Send a test email
Section titled “Send a test email”Goal: Check that Post Master can send notifications.
Prerequisites:
- At least one address in Global Recipients.
- The PMBC ADMIN BLD Permission Set.
Steps:
- On Post Master Setup, choose Send Test Email.
- Choose OK in the message.
- After about a minute, open the search, enter Post Master Notification Log, and open the page.
Expected result: The newest entry is the test email, with Status Sent. If Status is Failed, Error Message shows why.
Enable or disable transaction types
Section titled “Enable or disable transaction types”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:
- Open the search, enter Post Master Transaction Types, and open the page.
- Choose Edit List.
- Select or clear Enabled on each line.
Expected result: Only the enabled transaction types can be selected on rules.
Set up scheduled cost jobs
Section titled “Set up scheduled cost jobs”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:
- On Post Master Setup, expand Scheduled Cost Jobs.
- On a new line, choose the Company Name.
- In Job, choose the report.
- In Start Time, enter the time, in the Post Master time zone.
- Turn on the days, from Run on Mondays to Run on Sundays.
- 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.
- 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.
Respond to the number series notification
Section titled “Respond to the number series notification”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:
- In the notification, choose Show details to read the full text.
- Switch to the company named in the notification.
- Open the search, enter No. Series, and open the page.
- 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.
Create and manage rules
Section titled “Create and manage rules”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.
Create a rule
Section titled “Create a rule”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:
- Open the search, enter Post Master Auto Detect Rules, and open the page.
- Choose New.
- Leave Code blank, so Post Master takes the next code from the rule number series.
- In Description, enter a description, for example Released sales invoices.
- Choose OK.
- On the rule card, in Company Name, choose the company whose transactions the rule posts.
- In Transaction Type, choose the transaction type.
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.
Edit the filters of a rule
Section titled “Edit the filters of a rule”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:
- On the rule card, choose Edit Filters.
- Choose + Filter….
- Enter the field name, for example External Document No., and choose the field.
- Enter the filter value.
- Choose OK.
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.
Set the document options of a rule
Section titled “Set the document options of a rule”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.
| Field | What it does |
|---|---|
| Post Released Only | Only documents with status Released are posted. |
| Require Approval Workflow | A document is posted only when an approval workflow applies to it and it is approved. |
| Posting Option | What 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 type | Posting options | Blank means |
|---|---|---|
| Sales Order, Purchase Return Order | Ship, Invoice, Ship and Invoice | Ship and Invoice |
| Purchase Order, Sales Return Order | Receive, Invoice, Receive and Invoice | Receive and Invoice |
| Invoices and credit memos | Blank only | The document is posted |
Steps:
- Turn Post Released Only on or off.
- Turn Require Approval Workflow on or off.
- 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.
| Field | What it does |
|---|---|
| Max. Posting Date Formula | The 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 Transactions | The 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:
- In Max. Posting Date Formula, enter a date formula, for example 0D.
- 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.
Set the schedule of a rule
Section titled “Set the schedule of a rule”Goal: Choose the days and hours when the rule detects transactions.
Prerequisites:
- The rule is disabled.
Steps:
- Expand the Schedule FastTab.
- Turn off Run 24x7. All Days, the days, and the times appear.
- 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.
- In Start Time, enter the start of the window.
- In End Time, enter the end of the window.
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.
| Field | What it does |
|---|---|
| Posting Delay Hours, Posting Delay Minutes | How long after detection a transaction is posted. 0 posts at the next Posting Parent run. |
| Priority | 0 to 10. When transactions of several rules wait, those with the higher number are posted first. |
Steps:
- On the General FastTab, enter the Priority.
- 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.
Add notification recipients to a rule
Section titled “Add notification recipients to a rule”Goal: Send the notifications about a rule’s transactions to more people.
Prerequisites:
- The rule is disabled.
Steps:
- Expand the Notifications FastTab.
- 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.
Check which transactions a rule selects
Section titled “Check which transactions a rule selects”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:
- On the rule card, choose Run Eligibility Check.
- Expand the Eligible Transactions FastTab.
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.
Enable or disable a rule
Section titled “Enable or disable a rule”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:
- 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.
Copy a rule
Section titled “Copy a rule”Goal: Create a similar rule, for example for another company, or give a rule another code.
Prerequisites:
- The PMBC RULES BLD Permission Set.
Steps:
- Open the rule card, or select the rule on Post Master Auto Detect Rules.
- 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.
Delete a rule
Section titled “Delete a rule”Goal: Remove a rule that is no longer needed.
Prerequisites:
- The rule is disabled.
- The posting queue holds no transactions of the rule.
Steps:
- On the rule card, choose Actions, then Delete.
- 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.
| Field | What it shows |
|---|---|
| Last Run DateTime | When detection last evaluated the rule. |
| Last Run Status | Success when the evaluation queued transactions, Skip when it queued none. |
| Last Scheduled Run Date | The last date on which detection evaluated the rule inside its schedule. |
Steps:
- Open the rule card.
- Choose Refresh Activity.
- 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 and the entity filter
Section titled “Journal rules and the entity filter”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.
Run Post Master
Section titled “Run Post Master”Start Post Master
Section titled “Start Post Master”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:
- Open Post Master Setup.
- Choose Start Post Master.
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.
Run detection now
Section titled “Run detection now”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:
- 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.
- 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.
Change the setup while Post Master runs
Section titled “Change the setup while Post Master runs”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:
- On Post Master Setup, choose Stop Post Master.
- Choose the Edit icon, and change the setting.
- Choose Start Post Master.
Expected result: Post Master runs with the new setting.
Stop Post Master
Section titled “Stop Post Master”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:
- Open Post Master Setup.
- 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.
Monitor posting
Section titled “Monitor posting”Watch Post Master on the Monitor
Section titled “Watch Post Master on the Monitor”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:
- Open the search, enter Post Master Monitor, and open the page. On Post Master Setup, Open Monitor opens it too.
Expected result: The Monitor shows the current state, and refreshes itself at the Monitor Refresh (Sec.) interval.
| Field | What it shows |
|---|---|
| Post Master Status | Running or On Hold. |
| Last Detection Scan | When the last detection cycle ran. |
| Currently Posting | The transaction being posted now, or the number of posting jobs when several run. Blank when nothing is posted. |
| Queue Count | The transactions in the posting queue, in all companies. |
| Failed Today Count | The posting attempts today that ended with a validation error or a posting failure, in all companies. |
| Detection, Posting Parent, Monitor, Maintenance | When each Post Master job last started. |
| Last Posting | When the latest posting attempt finished. |
| Pending Transactions | The 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”.
View the transaction being posted
Section titled “View the transaction being posted”Goal: See which posting jobs run now.
Prerequisites:
- Post Master is posting.
Steps:
- 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.
Pause the automatic refresh
Section titled “Pause the automatic refresh”Goal: Read the Monitor without it changing.
Prerequisites:
- The Monitor is open.
Steps:
- Choose Pause Auto-Refresh.
- To read the data once while the refresh is paused, choose Refresh.
- 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:
- In the notification, choose Open Post Master Monitor, and look for the red Last Runs times.
- Check that the main posting user is enabled, has a license, and has the PMBC ADMIN BLD Permission Set.
- Sign in as the main posting user.
- On Post Master Setup, choose Stop Post Master.
- Choose Start Post Master.
Expected result: The Last Runs times are current again, and the notification no longer appears.
View the posting queue
Section titled “View the posting queue”Goal: See the transactions that wait to be posted.
Prerequisites:
- The PMBC VIEW BLD Permission Set.
Steps:
- Open the search, enter Post Master Posting Queue, and open the page.
Expected result: The list shows the queued transactions, highest Priority first.
| Field | What it shows |
|---|---|
| Priority | Copied from the rule at detection. Higher numbers are posted first; within a priority, the oldest entry is posted first. |
| Rule Code | The 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, Amount | The customer or vendor name or the batch description, the posting date, and the amount. |
| Status | Queued: waits to be posted. In Process: a posting job is posting it now. |
| Detected DateTime | When detection added the transaction to the queue. |
| Scheduled DateTime | The 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 ID | The 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:
- Select the transaction.
- 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.
Remove a transaction from the queue
Section titled “Remove a transaction from the queue”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:
- Open Post Master Posting Queue.
- Select the transactions.
- Choose Remove from Queue.
- Choose Yes.
Expected result: The transactions leave the queue. Each one gets a Skip entry in the posting history.
View the posting history
Section titled “View the posting history”Goal: See the outcome of every posting attempt.
Prerequisites:
- The PMBC VIEW BLD Permission Set.
Steps:
- Open the search, enter Post Master Posting History, and open the page.
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.
| Field | What it shows |
|---|---|
| Status | Success, 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 Message | Why 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 DateTime | Copied from the queue entry. |
| Posting Start DateTime, Posting Finish DateTime, Duration (ms) | When the posting ran and how long it took. |
| Transaction Count, Line Count | 1 for a document, or the number of transactions in a journal batch; and the number of lines posted. |
| Posting User ID | The user the posting ran as. |
Read the full error message
Section titled “Read the full error message”Goal: Read why a posting failed or was skipped.
Prerequisites:
- The posting history is open.
Steps:
- Select the entry.
- Choose the value in Error Message.
- Choose OK after you read the message.
Expected result: A message shows the full text, which names the problem and the fix.
Open a posted document
Section titled “Open a posted document”Goal: Open the document that a posting created.
Prerequisites:
- An entry with Status Success.
Steps:
- Choose the value in Posted Document No.
Expected result: The posted document opens. A document of another company opens in a new browser tab.
Show only failed postings
Section titled “Show only failed postings”Goal: List the postings that need attention.
Prerequisites:
- The posting history is open.
Steps:
- Choose Failed Only.
- To show every status again, choose All.
Expected result: Failed Only shows only the entries with Status Validation Error or Posting Failure.
Notifications
Section titled “Notifications”What Post Master sends
Section titled “What Post Master sends”| Notification | Subject, for example | Sent when | Setup field |
|---|---|---|---|
| Posting Failure | Post Master: Posting Failure - (company) - Sales Invoice (number) | A posting returns an error. | Notify on Failure |
| Error after posting | Post Master: Success - (company) - Sales Invoice (number) | A document is posted, but code that runs after the posting returns an error. | Notify on Failure |
| Validation Error | Post Master: Validation Error - (company) - Sales Invoice (number) | A check before posting fails, so nothing is posted. | Notify on Validation Error |
| Success | Post Master: Success - (company) - Sales Invoice (number) | A transaction is posted. | Notify on Success |
| Started, Stopped | Post Master: Started - (admin company) | Post Master is started or stopped. | Notify on Start/Stop |
| Job Restarted, Job Failure, Stalled Posting Worker, Prerequisite Warning | Post 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 Valid | Post Master: Registration Not Valid - (admin company) | The registration is not valid, and Post Master stops. | Always sent |
| Test Email | Post 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.
Open the Notification Log
Section titled “Open the Notification Log”Goal: See the notifications that Post Master created and whether they were sent.
Prerequisites:
- The PMBC VIEW BLD Permission Set.
Steps:
- Open the search, enter Post Master Notification Log, and open the page.
Expected result: The newest notification is first.
| Field | What it shows |
|---|---|
| Status | Pending: 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, Subject | The addresses and the subject of the email. |
| Rule Code, Company Name | The rule and the company the notification concerns. |
| Sent DateTime | When the email was sent. |
| Attempts | How many times Post Master tried to send the email. |
| Error Message | Why the last attempt failed. |
Read why a notification failed
Section titled “Read why a notification failed”Goal: Find and fix the cause of a failed notification.
Prerequisites:
- A notification with Status Failed.
Steps:
- Select the notification.
- Choose the value in Error Message.
- Choose OK after you read the message.
Expected result: A message shows the full error text.
| Error | What 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. |
View the body of a notification
Section titled “View the body of a notification”Goal: See the email as the recipients see it.
Prerequisites:
- The Notification Log is open.
Steps:
- Select the notification.
- 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.
Resend a failed notification
Section titled “Resend a failed notification”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:
- Select one or more notifications with Status Failed.
- Choose Resend.
- 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.
Work with several companies
Section titled “Work with several companies”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:
- Open one of the five pages, for example Post Master Posting History.
- Choose Current Company Only, or Show All Companies.
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.
Add a company to Post Master
Section titled “Add a company to Post Master”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:
- Check that the main posting user can sign in to the company and has a license for the postings.
- Check that the main posting user has Permission Sets that allow the postings in that company.
- Check that the posting dates of the documents are allowed for the main posting user in User Setup and General Ledger Setup.
- Check that the number series of the posted documents have enough numbers left.
- In the admin company, create a rule with the company in Company Name (see “Create a rule”).
- Enable the rule.
- 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.
Troubleshooting
Section titled “Troubleshooting”Find out why a transaction is not posted
Section titled “Find out why a transaction is not posted”Goal: Find where a transaction stopped.
Prerequisites:
- The PMBC VIEW BLD Permission Set.
Steps:
- 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.
- 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.
- If the transaction is on neither page, open the rule that should select it, and choose Run Eligibility Check.
- 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.
- 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 Log | What 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.
Record why a rule queued nothing
Section titled “Record why a rule queued nothing”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:
- On Post Master Setup, choose Stop Post Master.
- Choose the Edit icon.
- On the Logging FastTab, set Logging Level to Verbose.
- Turn on Log Skipped Evaluations.
- Choose Start Post Master.
- After the next detection cycle, open the search, enter Post Master Activity Log, and open the page.
- Filter Event ID on PMBC0012.
Expected result: Each Rule Skipped entry names the rule in Rule Code and the reason in Message.
Fix a validation error
Section titled “Fix a validation error”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:
- On Post Master Posting History, choose the value in Error Message of the entry.
- Read the problem and the fix.
- 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 with | Fix |
|---|---|
| Document is not released | Release the document, or turn off Post Released Only on the rule. |
| Approval workflow is not complete, Approval required | Complete or send the approval, or change the rule or the workflow, as the message says. |
| Posting date is not within the allowed posting date range | Change 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 option | Add lines, or check the quantities to ship, receive, or invoice and the rule’s Posting Option. |
| Prepayment invoice not posted, Prepayment not paid | Post or pay the prepayment first. |
| Batch out of balance, Batch contains lines that the rule does not select, Empty batch | Correct the journal batch. |
| Inventory reserved for other documents would be used | Change the quantity or the reservations. |
Fix a posting failure
Section titled “Fix a posting failure”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:
- On Post Master Posting History, choose the value in Error Message of the entry.
- 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:
- Find the posted document, for example on Posted Sales Invoices.
- 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.
Post a failed transaction sooner
Section titled “Post a failed transaction sooner”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:
- Open the document or journal in its company.
- 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.
View the detail of an Activity Log entry
Section titled “View the detail of an Activity Log entry”Goal: Read everything Post Master recorded about an event.
Prerequisites:
- The PMBC VIEW BLD Permission Set.
Steps:
- Open Post Master Activity Log.
- Select the entry.
- Choose View Detail.
- 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.
| Field | What it shows |
|---|---|
| Logged DateTime | When the event happened. |
| Company Name | The company the event belongs to. |
| Activity Type | Service, Detection, Posting, Notification, Monitor, Maintenance, or Configuration. |
| Level | The lowest Logging Level that records the event: Errors Only, Normal, or Verbose. |
| Event ID | The event, for example PMBC0023. |
| Rule Code | The rule, when the event concerns one. |
| Message | What happened. |
| User ID | The user the event ran as. |
The page opens with the last 30 days; change or remove that filter in the filter pane.
Find the lock conflicts of a period
Section titled “Find the lock conflicts of a period”Goal: See how often postings waited for records that another session was changing.
Prerequisites:
- Logging Level Normal or Verbose.
| Event ID | Meaning |
|---|---|
| PMBC0028 | Lock Conflict Retried: a later attempt posted the transaction. |
| PMBC0029 | Lock Conflict Returned to Queue: three attempts hit a lock conflict; the transaction is posted in a later cycle. |
| PMBC0074 | Temporary Error Returned to Queue: an attempt after a lock conflict failed with another error; the transaction is tried again later, at most three times. |
| PMBC0026 | Claim Lock Timeout: a posting job could not take the next queue entry, and tries again. |
Steps:
- Open Post Master Activity Log.
- Filter Event ID on PMBC0028|PMBC0029|PMBC0074|PMBC0026.
- 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.
Lines added while a transaction is posted
Section titled “Lines added while a transaction is posted”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.
Generate a diagnostic file
Section titled “Generate a diagnostic file”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:
- Open Post Master Setup.
- Choose Actions, then Diagnostics, then Generate Diagnostic File.
Expected result: The browser downloads a file named PMBC_Diagnostics_(date)_(time).json.
Send diagnostics to support
Section titled “Send diagnostics to support”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:
- Open Post Master Setup.
- 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:
- Fix the main posting user: enable the user, assign the license, or assign the Permission Sets again.
- Sign in as the main posting user.
- On Post Master Setup in the admin company, choose Stop Post Master.
- To choose a new main posting user, enter the user in Main Posting User ID, and sign in as that user.
- Choose Start Post Master.
Expected result: Post Master checks the prerequisites again, and its jobs run as the main posting user.
Administration
Section titled “Administration”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.
Open the Post Master job queue
Section titled “Open the Post Master job queue”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:
- Open Post Master Setup.
- Choose Post Master, then Post Master Job Queue. The Monitor has the same action.
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:
| Entry | What it does | Runs |
|---|---|---|
| Post Master: Detection | Runs the enabled rules and queues their transactions. | Every Polling Interval (Min.) |
| Post Master: Posting Parent | Starts the posting jobs for the queued transactions. | Every minute |
| Post Master: Monitor | Checks the jobs, restarts a job that stopped, and reports problems. | Every minute |
| Post Master: Maintenance | Deletes 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:
| Field | What it shows |
|---|---|
| Job Type | Detection, Parent, Monitor, and Maintenance are the recurring jobs. Worker is a posting job; Notification sends emails. |
| Company Name | The company the job runs in. A posting job runs in the company of the transactions it posts. |
| Transaction Type | The transaction type a posting job posts. |
| Status | Scheduled, Running, Finished, Failed, or Orphaned: the task ended without updating its status. |
| Created DateTime, Started DateTime, Finished DateTime | When the job was created, started, and finished. |
| Last Heartbeat DateTime | When a posting job last finished a posting attempt. The Monitor reports a posting job that has not updated it for 30 minutes. |
| Transactions Posted | The transactions the posting job posted. |
| Current Request Entry No. | The queue entry the posting job posts now. |
Recreate the Post Master jobs
Section titled “Recreate the Post Master jobs”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:
- Open the Post Master Job Queue page.
- Choose Recreate Jobs.
- 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.
Change the retention periods
Section titled “Change the retention periods”Goal: Choose how long Post Master keeps its history and log entries.
Prerequisites:
- Post Master is On Hold.
| Field (Logging FastTab) | Deletes |
|---|---|
| History Retention | Posting History entries. |
| Activity Log Retention | Activity 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:
- On Post Master Setup, choose the Edit icon.
- 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:
- In the admin company, open Post Master Setup.
- 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.
- 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.
- To see only one table, filter Table Caption, for example on Auto Detect Rule.
Expected result: The list shows each change with the user, the time, the field, and the old and new value.
Change the posting pause window
Section titled “Change the posting pause window”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:
- On Post Master Setup, choose the Edit icon.
- Turn on Enable Posting Pause.
- In Posting Pause Start Time, enter the start of the pause, in the Post Master time zone.
- In Posting Pause End Time, enter the end of the pause.
- 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.
Change the time zone
Section titled “Change the time zone”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:
- On Post Master Setup, choose the Edit icon.
- In Time Zone ID, choose the time zone in the lookup, or enter part of its ID, for example Pacific.
- Check the rule schedules, the posting pause, and the cost job start times.
- 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:
- On Post Master Setup, choose Actions, then Registration, then Sync License, so Licensed Max. Concurrent Jobs shows the current license.
- Choose the Edit icon.
- In Max. Concurrent Posting Jobs, enter the number of posting jobs, at most the licensed maximum.
- 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.
Posting performance
Section titled “Posting performance”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.
Lower the posting throttle delay
Section titled “Lower the posting throttle delay”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.
Allow gaps in unposted document numbers
Section titled “Allow gaps in unposted document numbers”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.
Commit imports after each document
Section titled “Commit imports after each document”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 posted document numbers on Normal
Section titled “Keep posted document numbers on Normal”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.
Run two posting jobs in each company
Section titled “Run two posting jobs in each company”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 dedicated main posting user
Section titled “Use a dedicated main posting user”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.
Set Automatic Cost Adjustment to Never
Section titled “Set Automatic Cost Adjustment to Never”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.
Do not post by hand what a rule posts
Section titled “Do not post by hand what a rule posts”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.
Other settings
Section titled “Other settings”- 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.
Other factors that affect posting time
Section titled “Other factors that affect posting time”- 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.

















