Failed to update alert criteria with HTTP 400 error in AAI 24.4.0
search cancel

Failed to update alert criteria with HTTP 400 error in AAI 24.4.0

book

Article ID: 447909

calendar_today

Updated On:

Products

Automation Analytics & Intelligence

Issue/Introduction

Users of Automation Analytics & Intelligence (AAI) version 24.4.0 may encounter an error when attempting to enable or modify alert criteria for a newly created JobStream.

  • Error Message: The UI displays a toast notification: Failed to update alert criteria.
  • Technical Error: The browser network trace shows a PUT request to /aai/api/jobstreams/{id} returning an HTTP 400 Bad Request.
  • Server Logs: The jaws.log or server.log records the following exception: jakarta.ws.rs.BadRequestException: Only one default JobStreamSLA can be defined.

Environment

  • Product: Automation Analytics & Intelligence (AAI)
  • Version: 24.4.0
  • Component: Web UI / JobStream Configuration

Cause

A defect in the JobStream creation logic (addNewJobStream) causes an orphaned "default SLA" record to be persisted in the database while the in-memory cache remains empty. When a user subsequently saves a deadline (e.g., a User-Defined End Time), a second default SLA is created.

The Alerts dialog attempts to submit the entire JobStream object, including both default SLA records. This triggers a server-side validation check that prevents more than one default SLA from existing, resulting in the HTTP 400 error.

Resolution

Resolution

This issue is a known defect (DE203672) and is targeted to be fixed in AAI version 24.4.2.

Workaround

To resolve the state for an affected JobStream without a database restart:

  1. Navigate to the Deadlines & Rules tab for the impacted JobStream.
  2. Expand the Late Criterion or Deadline section.
  3. Make a trivial change (e.g., toggle the deadline type or change a time value by one minute).
  4. Click the Save button at the bottom of the main JobStream configuration page.
    • Note: Do not use the Save button inside the Alerts (bell icon) dialog for this step.
  5. Saving the main JobStream page refreshes the SLA collection and removes the duplicate record.
  6. You can now return to the Alerts dialog to configure and save your notification settings successfully.