An AVP in the request carried a value the peer doesn't accept (DIAMETER_INVALID_AVP_VALUE) -- not a roaming decision.
In the Result-Code or Experimental-Result-Code AVP of a Diameter answer (S6a, S6d, Gx, Gy, Cx…).
Careful: 5004 also means DIAMETER_ERROR_ROAMING_NOT_ALLOWED. In Diameter the base protocol (Result-Code) and 3GPP applications (Experimental-Result-Code) reuse the same numbers, so read the name, not just the number.
Got a trace with Diameter 5004 DIAMETER_INVALID_AVP_VALUE? Drop it in the analyzer: it finds the step that really failed first, which node sent the code and what to ask the other side. Captures, test-system PDFs and vendor exports. 5 free analyses a month, no sign-up.
Analyze a trace free