> For the complete documentation index, see [llms.txt](https://kb.theloops.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kb.theloops.io/agentstudio/skills-library/engineering-product-lifecycle-and-quality/flag-shop-order-quality-analysis-exception.md). Agents can also search and read this documentation through its [MCP server](https://kb.theloops.io/~gitbook/mcp).

# Flag Shop Order Quality Analysis Exception

Resolves one shop order quality analysis, reads header and data points, and returns a deterministic OK/INCOMPLETE/INCONSISTENT verdict. Read-only.

| Business area                               | Action type |
| ------------------------------------------- | ----------- |
| Engineering, Product Lifecycle, and Quality | Read-only   |

## Overview

In IFS Cloud a shop-order analysis (ShopOrderAnalysis, based on the Analysis LU, table ANALYSIS\_TAB) is created from a manufacturing control plan for a shop order. Each analysis owns data points (AnalysisNorm) that must be measured, and the header carries calculated result statuses for variable, attribute, categorical and acceptance-sampling data.

The IFS Cloud integration reads shop order analyses and data points to flag exceptions.

## How it works

{% stepper %}
{% step %}
Find Shop Order Analysis by AnalysisNo or shop order keys.
{% endstep %}

{% step %}
Get Shop Order Analysis Header.
{% endstep %}

{% step %}
List Analysis Data Points.
{% endstep %}

{% step %}
Optionally Get Data Point Sample Values (max 5 per run).
{% endstep %}

{% step %}
Evaluate Analysis Exception locally.
{% endstep %}
{% endstepper %}

## Key capabilities

* Resolve one shop-order analysis by AnalysisNo or by shop order keys (OrderNo, ReleaseNo, SequenceNo).
* Read header status (Objstate: Planned, Confirmed, Cancelled) and calculated result statuses (VariableResultStatus, AttributeResultStatus, CategoryResultStatus, AcceptanceSamplingStatus).
* Detect missing results: uncompleted data points (AnalysisNotComplete, data point Objstate='Uncompleted', ResultRegistered='FALSE').
* Detect inconsistency: confirmed analysis with out-of-specification, nonconforming or rejected results, cancelled data points. Result status NotCalculated after confirmation.
* Drill into sample values of a suspicious data point (variable samples).
* Note whether the shop order control plan was modified after analysis creation (ModifiedDb, ShopOrderModified).
* Return verdict OK | INCOMPLETE | INCONSISTENT, evidence table and next permissible step.
* Read only, never confirms, cancels or edits data.

## Requirements

The following IFS Cloud components and projections must be available, with permission sets that grant access to each projection.

| Component                   | Projection                |
| --------------------------- | ------------------------- |
| QUAMAN (SHOP ORDER ANALYSIS | ShopOrderAnalysesHandling |
| ANALYSIS RESULTS)           | AnalysisResultHandling    |

## Version compatibility

| Projection                | Supported IFS Cloud releases |
| ------------------------- | ---------------------------- |
| ShopOrderAnalysesHandling | 24R2, 25R1, 25R2, 26R1, 26R2 |
| AnalysisResultHandling    | 24R2, 25R1, 25R2, 26R1, 26R2 |

## Known limitations

* Read-only: does not create, update, or delete IFS Cloud data.
