## TL;DR
Fix this in SpendHQ by acting on the exact problem first: in SpendHQ, exclude the intercompany general ledger accounts and internal trading partners from the unmanaged spend report definition, because the buying entity and the selling entity both post the same transaction, rebuild the report, and confirm the total now matches the external spend total in the ledger. Do not rerun the same operation unchanged, because the same inputs produce the same failure. Prove the fix on one entity pair or report period first, then rerun the full scope and reconcile the results.

```text
SpendHQ error unmanaged spend report double counts intercompany transactions
```

## Use this when
- The operation in SpendHQ fails with this exact problem: SpendHQ error unmanaged spend report double counts intercompany transactions.
- The same failure repeats on retry with unchanged inputs.
- Work described as an unmanaged spend review or a consolidation opportunity sizing is blocked until this is resolved.

## Not for this skill when
- The notice is a platform outage from the vendor. Resolve that first, then return here if this problem remains.
- The operation completes and you only disagree with an analytic or policy judgement in the result. That is an owner decision, not this failure.

## Steps
1. Reproduce the failure on one entity pair or report period in SpendHQ and record the full problem text plus the record, group or period involved. Verify: the failure is reproduced on demand on a named scope, not only seen in a log.
2. Apply the specific fix for this problem: in SpendHQ, exclude the intercompany general ledger accounts and internal trading partners from the unmanaged spend report definition, because the buying entity and the selling entity both post the same transaction, rebuild the report, and confirm the total now matches the external spend total in the ledger. Verify: the single failing scope now behaves as the fix predicts, or the corrected value is visible on the record.
3. Check neighbouring items, meaning entity pairs sharing the same intercompany accounts, because this class of failure rarely affects only one scope. Verify: the neighbouring items are listed and each is marked affected or clear.
4. Rerun the original operation in SpendHQ on the previously failing scope, watching for the same problem rather than assuming success from a quiet log. Verify: the operation completes and the original problem does not appear.
5. Compare the result against the source of truth, the general ledger, the intercompany elimination entries and the source invoice register, so a silent partial success is caught. Verify: values match the source or every difference is named and explained.
6. Record the fix, the triggering input and the verification result on the run log so the next occurrence is recognised immediately. Verify: the record names the problem, the fix applied and the evidence of success.

## Variant phrasings

### SpendHQ error unmanaged spend report double counts intercompany transactions
The verbatim form searchers paste from the console, report or run log. Treat it identically: same fix, same single scope proof, then the full rerun.

### How to fix - SpendHQ error unmanaged spend report double counts intercompany transactions
The how to phrasing for the same failure in SpendHQ. The steps above apply unchanged; start at the reproduction step rather than skipping to the rerun.

### SpendHQ troubleshooting for this failure
The symptom first phrasing used when the console hides the full problem. Surface the full problem first, confirm it matches the text block above, then follow the steps.

## Why it happens
Intercompany trade is posted twice by design, once as a purchase in one entity and once as a sale in the other, and a report that reads both postings without an elimination filter counts the same money twice.

## Edge cases
- The underlying data, mapping or rules changed after the failing run started. Refresh the current state and reapply the fix against the current values, not the values from the failed run.
- The single scope proof passes but the full rerun still fails on other scopes. Treat each remaining failure as its own scope, because a shared rule, filter or schedule can hide more than one cause.
- The source systems disagree on the correct value. The source of truth for this check is the general ledger, the intercompany elimination entries and the source invoice register; record which source won and why.

Compatibility: SpendHQ at current versions, plus the ERP, card feed or procurement system the query names; no extra tooling beyond access to the source records needed to verify results.

## Provenance

Resolved from the public thread: https://vectle.com/posts/pst_X5953aOscXw8Qv5mwxJZGg
