Skip to main content

Closing a month when trade accruals went wrong

Summary. At Quillmont Foods, a fictional grocery distributor, the accounting manager has to sign off October's trade-deal accruals before the general ledger team closes the month. October went wrong in four ordinary ways: a new item group with no posting profile row, an accrual batch job left on hold overnight, one journal whose cost center was suspended, and one whose period closed before it posted. This story follows the close from the morning check to an auditor's review, and ends with every accrual in the ledger and a saved reconciliation with no unexplained variance. It uses the Accrual event queue, Earmark execution exceptions, Earmark posting profile, the Unaccrued transaction sweep, Correct held journal, Deal balances and Accrual reconciliation. Read it if you are an accounting manager, an accountant or an auditor who works with Earmark at a period end.

The situation​

Quillmont Foods sells packaged, chilled and, since late October, frozen groceries to independent stores. It runs one legal entity in US dollars. Its customer deals accrue the money Quillmont owes its store customers as goods ship, and every deal takes its accounts from the company posting profile (Account source Posting profile).

The posting profile is set up by item group, because Quillmont reports trade-deal expense by product line:

Posting typeItem codeItem relationAccount codeMain account
AccrualGroupDRYAll21450 Accrued trade deals
Accrual offsetGroupDRYAll61210 Trade deal expense, packaged
AccrualGroupCHILLEDAll21450 Accrued trade deals
Accrual offsetGroupCHILLEDAll61220 Trade deal expense, chilled
Claim, Claim offsetAllAllthe claim accounts

There is deliberately no All items row for the accrual posting types: an item in a new product line should fail loudly rather than post its expense to the wrong line. Post automatically is off for every movement type, as Earmark ships, so every Earmark journal waits for an accountant to review and post it. Quillmont raises claims quarterly, so October has no claim movements.

PersonJobRole in Dynamics 365
Maren OkaforAssistant controller, signs off the trade accrualsAccounting manager
Devin CastellanosSenior accountant, reviews and posts Earmark journalsAccountant
Priya LindqvistERP administrator, owns the batch jobsSystem administrator
Ines HalloranInternal auditorEarmark auditor

What went wrong in October, as it stood on the morning of November 2:

What happenedWhenWhat it left behind
Finance created item group FROZEN and expense account 61230 for the new frozen line, but nobody added Earmark posting profile rows for itFirst shipments the evening of October 299 accrual events failing, 214 Accrual movement rows on the workbench, $4,365.00 not accrued
Priya held the Accrual event processor job for a platform update and released every other jobEvening of October 3037 accrual events still Queued, $8,315.00 not accrued
Finance suspended cost center 340 when two sales regions merged into 330October 28Fernhollow Co-op's October 27 accrual journal ($1,240.00) refused by the ledger
Devin reversed what was left on Tarnwood Markets' summer display deal on its last day, and the journal waited for reviewDated September 30; September put on hold October 6A $2,600.00 release that can no longer post on its date

No packing slip failed, nothing went to a suspense account, and none of the missing money was lost. Every posted document had queued its accrual. The diagram shows where each one was waiting:

Why it matters​

If October had closed that morning, the ledger would have been short $13,920.00 of trade-deal expense and accrued liability ($4,365.00 + $8,315.00 + $1,240.00), and it would still have carried $2,600.00 of liability that should have been released. Earmark had posted nothing wrong. It had posted nothing at all for these documents, and it said so on the queue and the workbench.

Order matters here. A queued accrual posts on its document's own date. If the general ledger team puts October on hold before those events process, each one is refused as a verdict and never retried, and someone has to post it by hand (see What could have gone differently). So Maren's first message of the day asks the general ledger team to keep October open until she signs off.

Before they start​

  • Access. Maren holds Accounting manager (setup, retry and dismiss, balance rebuild, Save run). Devin holds Accountant (posting general journals, Correct held journal, reading the workbench). The Accounting manager role opens general journals read-only, so Devin does all the posting.
  • Ledger periods. October is open; September is on hold.
  • Batch jobs. The Accrual event processor recurs every 30 minutes and the Unaccrued transaction sweep runs at 5:00 AM. Event sweep cadence (Accrual processing tab of Earmark > Setup > Earmark parameters) is set to 30 minutes to match: it ships at 15, and a processor job that recurs less often than the cadence keeps the Accrual event processor not scheduled setup gap open. I want to schedule the accrual event processor.
  • Audit. Field-level audit is enabled, so changes to the posting profile reach the standard database log.
  • Dimensions. Quillmont's accrual dimension rule for the Accrual movement type takes the cost center from the customer record (Source Counterparty master, Side Offset), so it lands on the expense side.

1. Run the daily accrual check​

At 8:05 AM Maren runs the team's daily check, Check that accruals flowed today. Devin runs steps 2 and 3 on most mornings; step 1 is Maren's, because the Earmark configuration workspace opens for the Accounting manager and the Earmark auditor, not for the Accountant.

To run it yourself:

  1. Open Earmark > Workspaces > Earmark configuration. If the Accrual event processor not scheduled tile is there, this company has no live recurring processor job that runs at least as often as Event sweep cadence. A job on Withhold counts as none.
  2. Open Earmark > Workspaces > Deal control and read Accrual execution exceptions, Accruals pending posting and Journals pending review.
  3. Open Earmark > Inquiries and reports > Accrual event queue. Set Status to Queued, then to Processing, and read Source document number, Attempts, Flagged for reclaim and Last message.

Maren finds:

  • Accrual event processor not scheduled is on the Earmark configuration workspace.
  • Accrual execution exceptions reads 214. Accruals pending posting and Journals pending review read 2 each (the Fernhollow and Tarnwood journals).
  • 37 Queued events from packing slips posted on October 30 and 31, with Attempts 0.
  • 9 Processing events for frozen items, each with Flagged for reclaim selected and Attempts between 22 and 27. Their Last message reads: "The accrual movement for event 5637213904 could not be posted. The Accrual movement on accrual instance AI-0040213 could not be posted because an account could not be resolved: No Earmark posting profile row for Accrual, item FZ-2201 / item group FROZEN / all items, customer C-2040 / customer group RETAIL / all accounts. This is a configuration gap and not a data problem. Nothing has been posted, nothing has been posted to a suspense account…"

The 214 workbench rows all belong to those nine events. A failed event stays in Processing; each time the processor reclaims and retries it, it fails again and raises another row. Here, Attempts on each event matches the number of rows raised for its accrual instance.

The Posting profile incomplete tile is not on either workspace, and Maren knows why: that check only asks whether each posting type has at least one row, and Quillmont's profile has rows for all of them. A gap for one item group shows up where it happened, on the queue and the workbench.

The 5:00 AM sweep's log agrees. "Unaccrued transaction sweep finished: 46 commitment(s) found whose goods have moved with nothing accrued, of which 0 were put back on the accrual event queue." The sweep counts commitments, not events, and each of the 46 delayed events was the first shipment on its own order line, so forty-six is 37 plus 9. None went back on the queue because every one already had an event waiting, so the posting hooks missed nothing. The problem is downstream.

Maren calls Priya, who opens System administration > Inquiries > Batch jobs, finds the processor job (its batch task's class is MGCEarmarkAccrualEventProcessorController) on Withhold, and sets it back to Waiting at 8:30. It runs at 9:00, and its log reads "9 abandoned accrual events returned to the queue." and "37 accrual events processed." The 37 now have journals waiting for review. The nine frozen events fail once more, so the workbench reaches 223 rows.

Maren does not use Process now on the queue for this. It runs only the selected events the processor has already claimed, and reports a Queued one as untouched ("Event … was not processed: it is Queued, and only an event that has been claimed for processing can be run. Wait for the sweep, or run the event processor."). To catch up without waiting for the job, run Earmark > Periodic tasks > Accrual event processor once instead (Accountant or Accounting manager).

2. Fix the posting profile gap and retry the failed rows​

The gap text names every rung the account walk tried: the item, the item group FROZEN, then all items. Maren could add an All items row and be done, but that would send any future product line's expense to whatever account the row names. She adds rows for FROZEN instead. The liability stays 21450, and the expense goes to 61230, which finance created with the item group.

To fix a gap like this:

  1. Open Earmark > Setup > Earmark posting profile and add a row: Posting type Accrual, Item code Group, Item relation FROZEN, Account code All, Main account 21450.
  2. Add a second row: Posting type Accrual offset, the same item and account fields, Main account 61230. Add both at once: the walk stops at the first side it cannot resolve, so the message names only one.
  3. Select Test account resolution. Set Module Customer, Posting type Accrual, Item number FZ-2201 and Account C-2040, and select Test. Resolved is selected and Account shows 21450. Repeat with Accrual offset and read 61230.
  4. Open Earmark > Inquiries and reports > Earmark execution exceptions. Filter Operation on Accrual movement and Exception status on Open, select every row, and select Retry selected.

At 9:40 the result reads "Retried 223 of 223 selected execution exceptions. 0 could not be completed and remain open." The first row for each event posts its accrual. The other rows find the event already finished and close without doing anything, which is why a retry can never post twice. Nine Accrual movements now read Journal pending, and Journals pending review reads 48 (2 + 37 + 9).

Had Maren waited instead, the first processor run after the staleness window (60 minutes as shipped) had passed since the 9:00 run claimed the nine events would have reclaimed and posted them itself, and Retry selected would only have closed the rows. Either order ends in the same place.

Devin can read every one of these rows but cannot retry or dismiss them. That act belongs to the Accounting manager, the Accounts receivable manager and the Accounts payable manager.

3. Run the unaccrued transaction sweep​

With the queue drained, Maren runs the sweep by hand to prove that nothing is left behind.

  1. Open Earmark > Periodic tasks > Unaccrued transaction sweep and select OK.
  2. Read both numbers in the message. Found counts commitments whose goods have passed their accrual point with nothing accrued. Put back counts the ones that had no event waiting and were queued again.

It now reads "Unaccrued transaction sweep finished: 0 commitment(s) found whose goods have moved with nothing accrued, of which 0 were put back on the accrual event queue." The queue, filtered on Queued and on Processing, is empty.

How to read the pair: a high found with 0 put back (as at 5:00 AM) means the events exist and are stuck, so look at the queue and the workbench. A high put back means a hook missed documents, and the next processor run accrues them. Zero found is a clean month.

4. Correct the two held journals​

An unposted Earmark journal cannot be edited: its date, accounts and amounts are frozen so that the ledger and Earmark's own record cannot drift apart. Correct held journal changes the journal line and the accrual transaction together, and never posts.

Fernhollow Co-op, cost center 340. The October 27 journal's expense side carries 61220-340, and cost center 340 is suspended. October is open, so only the offset account needs to change.

  1. Open Earmark > Inquiries and reports > Accrual transactions and select accrual transaction AT-0091356.
  2. In the Movement group, select Correct held journal. Under Current journal, Journal shows 00873, Current date October 27, Current account 21450 and Current offset account 61220-340.
  3. Under Correction, leave Post on and Account as they are and set Offset account to 61220-330.
  4. Select Correct. The message reads "Journal 00873 and accrual transaction AT-0091356 were corrected and now post on 10/27/2026. Post the journal, or select Retry on its Journal post exception."

The main account must stay 61220; only its dimension values can change. Every correction, even one that changes only a dimension, must leave the journal dated in an open period.

Tarnwood Markets, dated September 30. The general ledger team will not reopen September for $2,600.00, and September has already been reported. Maren agrees with Devin to release it in October and to say so in the sign-off memo.

  1. Select accrual transaction AT-0089410 and select Correct held journal. Current date reads September 30.
  2. Set Post on to October 31 and leave both accounts as they are.
  3. Select Correct. The journal and the movement now both post on October 31. The amount and exchange rate do not change.

Here both corrections were allowed. Accounts are the side with limits: the accounts of an adjustment, a return reversal or a claim approval reversal come from the transaction they derive from, and a movement that another movement was already made from keeps its accounts too. Their date can still be corrected.

5. Post the journals​

Devin posts all 48 journals: the 37 from the held batch, the nine frozen accruals and the two he corrected.

  1. On Deal control, select Journals pending review. Accrual transactions opens on the movements whose journal is waiting.
  2. Select a movement and select Open journal (Related information group). The general journal page opens on that one journal, and its Earmark accruals FactBox shows the accrual instance behind it.
  3. Select Lines and check the line. Each Earmark journal has one line.
  4. Post it as you post any general journal. Earmark marks the movement Posted when the journal posts.

By 11:30 Journals pending review and Accruals pending posting read 0, and Earmark execution exceptions shows no Open row for Quillmont.

6. Reconcile deal balances and the ledger​

Deal balances first. Maren rebuilds the three deals the incidents touched: D-01187 (Kestrel Bay Grocers' frozen launch), D-01102 (Fernhollow Co-op's fall feature) and D-00977 (Tarnwood Markets' summer display).

  1. On Deal control, open Deal balances and select the deal.
  2. Select Rebuild balances. The message reports the maintained net accrued amount, the recomputed amount and the difference.
  3. Read Rebuild variance on the row.

All three report a difference of 0.00, and Accrued, journal pending reads 0.00 on each. Balances move inside the same transaction as the movement, so a failure that posted nothing left nothing to repair.

Then the ledger. Maren ties out the accrual liability account for October.

  1. Open Earmark > Inquiries and reports > Accrual reconciliation and select Run reconciliation.
  2. Enter Period from 10/1/2026, Period to 10/31/2026 and Main account 21450, and select OK.
  3. Read the result: "Period 10/1/2026 to 10/31/2026. General ledger -182,800.00, accrual sub-ledger -182,800.00." and "Explained by pending journals 0.00, unaccrued transactions 0.00, open exceptions 0.00, proposals outstanding 0.00." No warning about unaccrued commitments or open execution exceptions appears.
  4. Select Save run. "Reconciliation run RC-000118 saved. Variance 0.00, unexplained variance 0.00. …"

Know what each side counts before you read the variance. Main account narrows only the general ledger side. The accrual sub-ledger side always sums every Earmark movement dated in the period, whatever its type or accounts, journal pending included. Scoping to 21450 works for Quillmont's October because every October movement was an accrual or a release, and each of those posts its liability side to 21450; there were no claim movements. In a month with claims, the sub-ledger side also carries the claim movements, so the 21450 figure alone no longer compares like with like. An unscoped run is worse: its ledger side adds the expense accounts too, where each journal's expense debit cancels its liability credit, so the ledger side nets to about zero and the variance never reaches zero.

The October figures, with a credit to the liability shown as negative:

Movements dated in OctoberAmount
Accruals posted during the month-171,480.00
The 37 events from the held batch-8,315.00
The nine frozen events-4,365.00
Fernhollow Co-op, corrected-1,240.00
Tarnwood Markets release, moved to October 312,600.00
Ledger balance and Subledger balance on 21450-182,800.00

7. Sign off​

At 3:00 PM Maren writes the sign-off memo, with one line of evidence for each claim it makes:

CheckEvidenceReading
Every shipped commitment accruedUnaccrued transaction sweep, 11:05 AM0 found, 0 put back
Nothing waiting to accrueAccrual event queue, Queued and ProcessingEmpty
No failure leftEarmark execution exceptions, Quillmont223 Resolved, none Open
Every journal postedJournals pending review, Accruals pending posting0 and 0
Balances agree with transactionsRebuild balances on D-01187, D-01102, D-00977Difference 0.00
Ledger agrees with EarmarkSaved run RC-000118, October, main account 21450Variance 0.00, unexplained 0.00

The memo also lists the two corrections with the before and after values from the dialog, and the two posting profile rows added at 9:32 AM. Earmark writes no timeline row for a correction, so the memo is where that decision is recorded. Only then does Maren tell the general ledger team they can put October on hold.

8. Show the auditor the trail​

On November 4 Ines asks to see how a frozen shipment went from packing slip to ledger. As an Earmark auditor you can follow the same trail; nothing on it can be changed from your role.

  1. Accrual event queue: filter Source document number on packing slip PS-104882. The row reads Posted, Attempts 27, Last message "Movement posted." and Resulting movement AT-0091402.
  2. Earmark execution exceptions: filter Source document on the accrual instance, AI-0040213. There are 27 rows, one per failed attempt, each Resolved with Retries 1 and Last attempt November 2 at 9:40 AM. Each row's Message still reads the failure it recorded: a retry does not rewrite it, so the queue row (step 1) is where the final outcome shows.
  3. Accrual transactions: filter Accrual transaction on AT-0091402 and read Posting status, Journal and Voucher. Open chain shows the whole chain the movement belongs to.
  4. Earmark timeline (Earmark > Inquiries and reports): set Document type to Accrual transaction and Document to AT-0091402. An Accrual journal posted row shows when Devin's post landed.
  5. Accrual reconciliation: run RC-000118 shows Run by, Run date and time, the scope and every bucket.
  6. The setup change: the Database Log, which Priya opens for you, shows Maren inserting the two FROZEN rows. The corrections: ask for an export of Earmark accrual transactions (this role has no Data management access) and read PostingDate, LedgerAccount and OffsetLedgerAccount for AT-0091356 and AT-0089410 against the memo.

The packing slip itself was never touched. The accrual is a separate Earmark journal posted after the queue was processed, never part of the packing slip's voucher.

What they ended up with​

  • All 46 delayed accruals posted in October on their packing slips' own dates, with the frozen line's expense on 61230.
  • Two journals corrected rather than re-keyed, so the ledger and Earmark's record still agree.
  • 223 workbench rows Resolved and none dismissed.
  • Deal balances that agree with their transactions, and a saved reconciliation of the liability account that explains every cent.
  • A memo the auditor could check against the system line by line.

What could have gone differently​

  • October closed before the queue drained. Had the general ledger team put October on hold first, each of the 46 events would still have accrued, but on the day the processor reached it, in November, with its queue row saying so ("Document … is dated …, which falls in a closed or on-hold ledger period, so its accrual … was posted on the processing date … instead"). October's accrual would have been short by those amounts, and Maren would have needed to reopen October, reverse the November movements and post manual accruals dated in October if her close procedure required them there. I want to post a manual accrual.
  • Maren reconciled before fixing anything. The same run on 21450 at 8:00 AM would have read General ledger -171,480.00 and accrual sub-ledger -172,720.00, with $1,240.00 explained by pending journals and an unexplained variance of 0.00. It would also have warned that 46 commitments had passed their accrual point with nothing accrued, and that 214 execution exceptions were open. A clean residue is not a clean month: those warnings are the $12,680.00 that neither side had seen yet. I want to reconcile accruals against the general ledger.
  • The rows were dismissed instead of fixed. Dismiss closes a row with a reason and changes nothing else. The nine events would have stayed in Processing, the processor would have gone on retrying them, and new rows would have kept arriving. I want to retry or dismiss a failed Earmark operation.
  • Accrual journals posted automatically. With Post automatically on for Accrual, the Fernhollow journal would have been refused at its automatic post and raised a Journal post row ("Journal … was sent for automatic posting but is still not posted…"). After the correction, Retry selected on that row would have posted it. Retry never posts a journal that was created to be held for review. I want to know which journals post on their own.