AttestwireRule referenceATW-PROFILE-UNKNOWN

ATW-PROFILE-UNKNOWN The profile must be one this library knows

noun · Attestwire · fatal · BT-24

For a sample invoice, the library reports: profile is the text "zz", which is not a profile this library knows. It decides which rule set applies and which document the generators write.

Business term
BT-24
Severity
fatal

The fix

Set profile to one of en16931, xrechnung-ubl, xrechnung-cii, facturx-en16931, peppol-bis-3.

What the library returns

The full error returned by @attestwire/en16931. It includes the rule ID, affected field and suggested correction. Developers can use this object in their application:

TeachingError
{
  "rule": "ATW-PROFILE-UNKNOWN",
  "field": "BT-24",
  "severity": "fatal",
  "message": "profile is the text \"zz\", which is not a profile this library knows. It decides which rule set applies and which document the generators write.",
  "fix": "Set profile to one of en16931, xrechnung-ubl, xrechnung-cii, facturx-en16931, peppol-bis-3.",
  "docsUrl": "https://github.com/attestwire/en16931#not-implemented-yet"
}