Skip to content

Business Requests ​

When you save an invoice, the accounting entry behind it is not written while you wait. Nama takes the save, hands you the screen back, and raises a business request — a small instruction to itself, saying "this document needs its accounting effect". A moment later a background worker picks that instruction up and writes the entry.

The point of the arrangement is that saving stays instant however heavy the consequences are, and that a consequence which goes wrong can be looked at and run again without touching the document. The cost is that a document can be saved and correct while its effects are missing — and when that happens, this is the screen that tells you why.

Where to find it

Administration → Settings → Business Requests. The neighbouring entry, Saved Business Requests, is part of the same machinery and is covered further down.

The two kinds you will actually see ​

The Business Requests list

Every document that has consequences raises one or both of these:

  • an accounting request, which writes the document's entry into the ledger, and
  • an inventory request, which moves quantities and costs in the stores.

A sales invoice normally raises both. A journal entry raises only the first. A stock transfer raises only the second.

There is no third kind to learn. The Request Name column tells you which one a row is, and the Request Type column says whether the request was raised by creating the document, updating it, or deleting it. Deleting a committed document raises a request too: the effects have to be unwound, and that unwinding can fail exactly as the original could.

Reading the Processing Status ​

This is the column everything else hangs off.

StatusWhat it means
Waiting ProcessingRaised, not yet picked up. Normal for a few seconds.
Retry ProcessingQueued for another attempt after somebody asked for one.
ProcessingBeing worked on right now. Only inventory costing sits here for any length of time.
ProcessedDone. Whatever the document had to write is written — a document whose term writes nothing (every account side empty) is Processed with no entry. See When a Document Has No Accounting Effect.
Processing FailedThe system understood the work and refused it — a closed period, a missing account, a rule that said no.
Failed By ExceptionThe work broke unexpectedly. Usually a configuration gap rather than a business rule, sometimes a passing database lock.

The difference between the last two matters when you are triaging. Processing Failed almost always names its own cause in the Error Message column and is fixable by an implementer: open the period, set the missing account, correct the term. Failed By Exception is more often something structurally wrong, and the detail you need is in Error Description, which carries the full technical text rather than the one-line summary. Its Error Message can even be empty: it is filled only when the failure carries a readable reason. An empty message is the cue to open Error Description — and when that text speaks of a deadlock, a lock or a timeout, nothing is wrong with the data and a plain Reprocess normally goes through.

Nothing retries a failed request on its own

There is no attempt counter, no maximum, no backoff, no eventual give-up. The worker only ever looks for requests that are waiting or have been explicitly queued for retry, so the moment a request lands on Processing Failed it stops being anybody's business but yours. It will sit there, unchanged, for as long as the database exists.

This is the single most important thing to know about the screen. A quiet system is not evidence that nothing failed — it is only evidence that nothing is asking. Filter by status and look.

Finding what went wrong ​

Filter Processing Status to the two failed values and sort by Value Date. That is the whole triage.

One failed request, filtered out of nineteen thousand

What you get back is one row per broken effect, each carrying the document number, the document type, the fiscal year and period, and the error text.

Two columns are worth knowing about because they answer the question "when did this break, and has anyone touched it since": Origin Last Update Date is when the document itself last changed, and Value Date is the date the effect belongs to. A request whose document was updated after the failure usually means somebody has already tried to fix the cause and simply never re-ran the request.

The Initiator column names the operation that raised the request, which is how you tell an effect raised by a user saving a document from one raised by a scheduled job or a bulk tool.

You can get to the same rows from a dimension

Every legal entity, sector, branch, department and analysis set has a System Tables tab, and three of the lists on it are the accounting requests, the inventory requests and their statuses, already narrowed to that dimension. It is a quicker route when you know the problem is confined to one company.

The two things you can do about it ​

Select the rows and open the More menu. Two of its entries belong to this screen — the rest are the generic ones every list has — and choosing between those two is the whole skill.

Reprocess ​

Reprocess puts the request back in the queue. It changes nothing about the document and nothing about the request except its status, and the worker picks it up within about a second.

This is what you want when the request failed for a reason that has since been fixed and the document itself was always right — the period was closed and is now open, the exchange rate was absent and has been entered. The request is re-run exactly as it was first raised, and that is what decides whether a fixed account is picked up:

  • An inventory request reads the warehouse, item and party accounts again when it runs, so an account slot filled on one of those records is picked up by Reprocess.
  • An accounting request already holds its lines with the accounts chosen when the document was saved. Filling a missing account slot on a party does not reach those lines; Reprocess fails the same way, and the answer is Recommit. Only a change to the Account record itself — its type, its subsidiary types, its "without subsidiary" option — is read again at processing time.
  • Neither kind picks up a change to the document term: the request keeps the term's account sides as they were at save time. That too needs Recommit.

The full decision table, by what you changed, is on Fixing a Failed Business Request.

Recommit ​

Recommit is heavier. It goes back to the source document and commits it again from scratch, which discards the existing request and raises a fresh one from the document's current contents.

Use it when the document has changed since the request was raised, or when you suspect the request itself was built wrongly rather than merely executed at a bad moment. Because it re-commits real documents, it runs every rule and validation the document has, and it can fail for reasons that have nothing to do with the original problem.

Who can Reprocess and Recommit

Both actions need the Edit After Commit level on the Configuration Group screen in the user's security profile; this list belongs to that screen. Recommit additionally needs Allow Record Recommitting, a switch that is on by default but hidden from the security profile screen. The button stays visible either way; a user without the switch who presses it is refused with Current User {0} Cannot Recommit Records, Please Review Security Profile Options — «المستخدم الحالي {0} لا يستطيع إعادة حفظ الملفات برجاء مراجعة اختيارات ملف الصلاحيات». Recommit also refuses a draft: only a document that has been committed can be committed again.

Try Reprocess first

Reprocess is the smaller, safer instrument, and when the underlying cause has genuinely been fixed it is usually enough. Recommit is the answer when Reprocess has been tried and the request fails the same way, which tells you the request itself — not its timing — is the problem.

Saved Business Requests ​

The neighbouring screen shows the same information for requests at an earlier stage. When a document commits, the request is first written down in full, and only when the worker picks it up is it turned into the live request you see on the main screen — at which point the written-down copy is removed.

So on a healthy system this screen is empty, or nearly so. Rows appearing and vanishing within seconds are the machinery working. Rows that sit there and accumulate mean the worker is not running at all, which is a different and more serious problem than any individual failure: it is a server-level issue, not a document-level one.

There are no actions on this screen. It is there to be looked at.

When the work actually happens ​

Each kind of request has its own worker, and each worker runs on its own, one request at a time. Left alone it wakes on a timer; but every save nudges it, so on a busy system requests are picked up within a second or so of being raised, and the timer only matters on a quiet one.

Nothing processes for the first few minutes after a restart

The workers deliberately hold back for several minutes after the server starts, so that a restarting system is not immediately hit with a backlog while it is still warming up. A pile of Waiting Processing rows straight after a restart is expected and clears itself.

One case is worth recognising because it looks like a failure and is not. An accounting request that cannot be written because the period it belongs to has a closing entry over it stays at Waiting Processing — it is never marked failed, because nothing went wrong; the work simply cannot be done yet. Requests that have been waiting far longer than a restart would explain are usually this.

In practice ​

  • A clean list is the normal state. Across Nama installations, most companies never have a failed request; about 1 in 10 ever see one, and the typical company that does has only a handful.
  • Roughly nine in ten failures are inventory requests, all raised by stock documents — Stock Transfer, Stock Issue, Stock Receipt and Cost Revaluation. A sales or purchase invoice's stock failure is among them, under the Stock Issue or Stock Receipt the invoice generated.
  • The rest are accounting requests, mostly from payment vouchers, journal entries, fixed-asset purchases and salary documents.

Common errors

  • Error while creating account of {0} side for subsidiary {1} - source type {2} - entity type {3} - account type {4} {5} {6} — more than half of all failures. A warehouse (often a transfer's to-warehouse), item or party has an empty account slot that the document term reads. Fill it, then Reprocess.
  • A Failed By Exception row with an empty Error Message — read Error Description; a lock clears with Reprocess.
  • The account {0} must have a subsidiary and its two relatives about the account's type and subsidiary types — accounting requests, which keep their accounts, so fixing a party's slot needs Recommit.

Each message, with its fix, is on Fixing a Failed Business Request.

See also ​