Skip to content

Error G422

Paulo Gomes da Cruz Junior edited this page Apr 10, 2026 · 1 revision

Error G422 - Unprocessable Entity

What This Means

The information you entered is formatted correctly, but it doesn't make logical sense or violates business rules in the NR Waste Plus application. While each individual piece of data might be valid on its own, when combined or considered together, there's a logical problem. Think of it like writing a check where the numerical amount and written amount don't match - both are correctly formatted, but they contradict each other.

Why This Happens

This error occurs when:

  • Dates don't make sense: End date is before start date, or dates are in impossible ranges
  • Numbers don't add up: Totals don't match details, or calculations are inconsistent
  • Conflicting information: Two fields have values that contradict each other
  • Business rule violation: The data breaks a company policy or workflow rule
  • Invalid for current status: The action doesn't make sense for the item's current state (e.g., trying to close something that's already closed)
  • Missing dependencies: You're referencing something that doesn't exist (e.g., selecting a district that's not in the system)
  • Impossible combinations: Selecting options that can't be used together

What You Can Do

  1. Read the error messages carefully: The application should tell you exactly what's wrong and which fields are problematic
  2. Check date ranges:
    • Make sure end dates come after start dates
    • Verify dates are within reasonable ranges
    • Confirm dates make sense for the context (not too far in past or future)
  3. Verify calculations: If entering numbers that should total or match:
    • Double-check your math
    • Ensure totals equal the sum of line items
    • Verify percentages add up to 100 if required
  4. Review related fields: Check if fields that depend on each other have compatible values
  5. Check the item's status: Make sure the action you're taking is appropriate for the current state
  6. Verify references: Ensure any selected items (districts, clients, categories) actually exist and are valid
  7. Follow the workflow: Make sure you're not skipping required steps or doing things out of order

Common Examples

  • Date problems: Inspection end date is before start date
  • Quantity issues: Shipping more items than are available
  • Status conflicts: Trying to approve something that's already rejected
  • Reference errors: Selecting a location that's been deactivated
  • Calculation errors: Individual amounts don't add up to the total

When to Contact Support

You should reach out to the support team if:

  • The error message doesn't clearly explain what's wrong
  • You believe your data is correct but it's still being rejected
  • The business rules seem incorrect or too restrictive
  • You're unsure how to fix the logical inconsistency
  • The validation rules have changed and you're not aware of the new requirements
  • You need an exception to a business rule for legitimate reasons

When contacting support, please provide:

  • The complete error message
  • The values you entered in all related fields
  • What you're trying to accomplish
  • Why you believe your data should be accepted
  • Screenshots of the form with the data you entered
  • Whether this combination of data worked previously

Waste Plus Wiki

Home

Architecture

Codes

Decisions

Knowledge Base

Development

Changes

Clone this wiki locally