--- alias: user-guide-add-resource-to-container tags: - resource - container - business data description: "Associate resources with containers for organized tracking and streamlined processing within a system" --- # Add Resource to Container :lock: Container.**AddResource** ## Overview This operation associates a **Resource** to a **Container** at a given **Container** position. It is used when organizing or grouping multiple **Resources** for easier tracking or processing. ## Setup A **Container** must be available with at least 1 unused position, and the Position Unit Type must be set to **Resource**. ## Preconditions For the **Container**: - The Universal State is Active, not a template or on hold. - The System State is Available. - Has at least 1 free position. For the **Resource** and **Container** location: - Both the **Resource** and **Container** are in the same facility. - The **Resource** is not already associated with a **Container** (if it is, see [[user-guide-transfer-resource-between-containers]]). A valid position must be available: - If the **Container** is set to Auto Generate Position (`IsAutoGeneratePositionEnabled = True`), the system will assign the next available position starting from 1. - If Auto Generate is disabled, you must supply a free position manually. A valid relationship between the **Container** Type and the **Resource** Type must exist in the [[containerresourcerelation-gt]] generic table. !!! warning If the Container has Allow Mixed Types set to `False`, all of the Resources inside the Container must be of the same type. Meaning that, if the Container already holds a Resource, the new one must match its type. ## Sequence of Steps 1. Navigate to the **Resource** that will be associated with the **Container**, and check that it meets all the preconditions 2. On the top ribbon, select **Add Container**. 3. Select the **Container** to add the **Resource** to. 4. If the **Container** does not have the property Is Auto Generate Position Enabled set to `True`, you must supply an unused **Container** position for the **Resource**. 5. Optionally, enter a Comment. 6. Select **Add** to complete the operation. !!! note For bulk operations, all of the Resources must go into the same Container. ![add_resource_to_container][add_resource_to_container] [add_resource_to_container]: images/add_resource_to_container.png ## Troubleshooting If you can't find the **Container** you wish to use in the wizard, consider that: - The **Container** might not be active. - The **Container** might not be in the same area as the **Resource**. - The **Container** may be on hold because of maintenance. - The **Container** may not have the Position Unit Type set to `Resource`. !!! note Other configurations or system conditions may also affect Container visibility.