--- alias: user-guide-post-data-to-data-collection tags: - data collection description: "Submit data to a data collection instance for analysis and reporting purposes" --- # Post Data to Data Collection Instance :lock: DataCollectionInstance.**Post** :lock: DataCollectionInstance.**PostDataForInspection** ## Overview This operation is used to post data to an existing long-running **Data Collection Instance**. Data can be posted multiple times until the **Data Collection Instance** is Closed. !!! info A Data Point (the smallest unit which can be posted) represents a complete Sample. ## Setup No special setup is required other than to meet the preconditions of the transaction. ## Preconditions * The **Data Collection Instance** is Open. ## Sequence of Steps 1. From a **Material** associated to the **Data Collection** or directly on the **Data Collection** instance, select **Post** on the top ribbon. 2. Provide the data as described by the **Data Collection** definition. It is important to understand that: * Mandatory readings of mandatory samples of mandatory **Parameters** are pre-filled with the default values, if defined. * The cells with the red asterisk refer to mandatory values. * In case that there are limits defined (not possible for Ad-hoc **Data Collections**), they are shown on the top-right corner of the **Parameter** and the color of the cell will change accordingly. If multiple sample limits are defined, they will be displayed according to the sample ID. * Depending on the type of user interface you have selected, entering the data can be done in separate text areas corresponding to different fields or they can be entered in grid form. For more information, see [[create-data-collection#user-interfaces-classic-vs-modern|User Interfaces: Classic vs Modern]]. 3. Select **Post** to complete the operation. !!! info The **Data Collection** parameters may have validation ranges that have to be followed in order for the values to be accepted. !!! note Validation ranges are always checked when data is posted. Warning and error limit evaluation depends on both limit checking settings configured in the **Data Collection**: * Data Collection - On Post: warning and error limits are evaluated during posting, and any configured protocols can be opened at that time. * Data Collection - On Close: warning and error limits are not evaluated during posting; they are evaluated only when the **Data Collection Instance** is closed. * Data Collection parameter - Individual Value: limits are evaluated against each posted value. * Data Collection parameter - Calculated Value: limits are evaluated against the calculated value defined by the parameter calculation and grouping mode. === "Classic" ![classic](../images/post_data_to_data_collection.png) === "Modern" ![modern](../images/post_data_to_data_collection_modern.png)| A **Data Collection** may be configured to send data to SPC, in which case one or more SPC Charts will appear. The context exchanged with SPC may include the parameters in the table below. | Parameter | Description | |-----------------------|----------------------------------------------------------------------------------------------------------------------------| | **Facility** | **Facility** associated with the selected **Material** | | **Material** | The selected **Material** | | **MaterialType** | Type of **Material** | | **Step** | Current Step associated with the selected **Material** | | **Resource** | Resource associated with the **Material** | | **Product** | Product related to the selected **Material** | | **ProductType** | Type of Product related to the **Material** | | **ProductGroup** | ProductGroup of the Product of the selected **Material** | | **Flow** | Flow of the selected the **Material** | | **FlowPath** | Flow path of the selected the **Material** | | **LogicalFlowPath** | Logical flow path associated with the **Material** | | **ProcessStep** | Process Step of the **Material** (determined by the Track In of the last **Step** with a Processing Type of `Process`) | | **ProcessResource** | Process Resource for the **Material** (determined by the Track In of the last **Step** with a Processing Type of `Process`)| | **SampleId** | Id of the **Material** | Table - Possible SPC parameters !!! note When the **Data Collection** is configured to be used in the context of an **Inspection Plan**, the DataCollectionInstance.**PostDataForInspection** security feature is used.