Skip to main content
Employee
Nov 27, 2026 5:42 AM UTC

KB-2451 Data Store Entity Constants Lose Their Entity Mappings After Data Store Deployment

Symptoms

1. Data Store Entity constants that reference entities in a deployed data store have their entity unselected after the deployment.

2. The issue does not always affect every constant referencing the data store. Only a subset may lose their mappings.

3. The constants' modified dates do not change when the mapping is lost, and the deployment completes without errors.

4. Processes or rules using the constant fail with the error:

a!queryEntity: The data store entity does not exist, has been deleted, or you do not have sufficient privileges to access its data

Cause

Any change to a data store, including adding a new entity, can clear constant-to-entity mappings for that data store. This is expected behavior based on how data stores are initialized in environments: the data store context is rebuilt and validated in the target environment, and the mappings cannot be preserved.

Action

1. Re-select the entity mappings for the affected Data Store Entity constants in the target environment.

2. Check all Data Store Entity constants that reference the deployed data store after each deployment, and retry any failed processes.

Workaround

To avoid re-mapping after every deployment, place entities that should not need re-mapping in their own data stores, or group related entities together. If a constant is blank after a failed deployment and later deployments show it as Not Changed, use Force Update on that constant.

Affected Versions

This article applies to all versions of Appian.

Last Reviewed: November 2026