The first time someone hands you a MOCA trace file, it feels like being handed a phone book and told the answer is in there somewhere. Forty thousand lines, no obvious start, no obvious end, and the one line that actually explains why an order got stuck is indistinguishable — at a glance — from the 39,999 lines around it that don't matter at all.

This is normal. It's not a sign you're missing some trick everyone else knows. MOCA traces are verbose by design, because the person who eventually reads them usually doesn't know in advance which piece of the system will turn out to be the problem. So the trace records everything, and the reading is left to you.

Here's the process that actually works, in the order it actually works in.

Start with the trace level you asked for, not the one you got

Before anything else, check what was actually traced. MOCA's trace levels are a set of independent flags, not a single "verbosity" dial:

  • W — application flow messages
  • S — SQL calls
  • X — server flow messages
  • A — server arguments
  • M — connection manager flow
  • R — performance statistics
  • P — process ID printed in each line
  • C — command profiling

A trace taken with only W enabled will never show you a SQL error, no matter how carefully you read it — the SQL calls simply aren't in the file. Half the "I can't find anything wrong" moments trace back to this: someone spent twenty minutes reading a trace that structurally could not contain the answer. Check the levels first. If S isn't in there and the symptom smells like a data problem, stop reading and retrace with it on.

Don't start at line 1

The instinct is to start at the top and read down, the way you'd read anything else. Don't. A trace file is a timeline of everything the session did, and the incident you care about is usually a small window inside a much longer, much more boring session.

Instead, anchor on something you already know: an order number, a timestamp from a support ticket, a LPN, a status code. Search for that string first. Once you've found where it appears, you have a line number — and now you're reading a much smaller trace than the one you were handed.

Errors and rollbacks are not evenly distributed

Two patterns are worth grep-ing for by habit, before you read anything else line by line:

  • Explicit error markers — MOCA surfaces these consistently enough that a search for ERROR or the relevant status-code family gets you most of the way there.
  • Rollback markers. A rollback almost always means something upstream of it failed a condition it needed to pass — and the rollback line itself tells you where in the transaction that happened, which narrows the search dramatically even before you know why.

Neither of these alone tells you the root cause. But they tell you which twenty lines out of forty thousand are worth reading closely, and that's most of the value right there.

Read the argument values, not just the command names

A trace with the A flag enabled includes the actual arguments passed to each command — not just that find file was called, but what it was called with. This is where most root causes actually live. A command failing isn't informative on its own; a command failing because it was called with a null whs_id or an order that had already been shipped is informative. If your trace doesn't have argument-level detail, that's usually the next thing worth re-tracing for.

What we built this for

This is the exact process — find the relevant window, isolate errors and rollbacks, read arguments, follow the chain backward — that WMSDiag's Trace Interpreter automates. It parses a trace deterministically (no guessing at what a line means), pulls out the errors and rollbacks with their arguments, and produces a structured result: likely cause, confidence, the specific evidence lines behind that conclusion.

The point isn't to replace reading traces — it's to skip the twenty minutes of scrolling before you get to read the right five lines. The AI interpretation is grounded in the evidence the deterministic parser already extracted, not a free-form guess at what "usually" causes this kind of error. You can always go verify the evidence lines yourself, because they're right there, cited.

If you've been doing this by hand with Ctrl+F and a lot of patience — that instinct is correct. We just automated the tedious 90% of it.