Managing data contracts | Qlik Cloud Help
Skip to main content Skip to complementary content

Managing data contracts

Last updated: 2026-12-04

A data contract is a formal agreement that defines quality checks for datasets in your organization. Data contracts establish rules helping teams rely on data quality before building applications or making business decisions.

High-quality data is essential for accurate analytics and reliable applications. Data contracts protect your organization by:

  • Reducing risk: Catch data quality issues before they impact business decisions or applications.
  • Increasing trust: Teams gain confidence in data when contracts ensure reliability over time.
  • Enabling observability: Contracts trigger alerts when data fails to meet quality checks.
  • Clarifying expectations: Contracts document what producers promise and what consumers need.
  • Speeding troubleshooting: When data breaks, contracts help identify and locate the problem quickly.

Core concepts

Understanding these key terms helps you work with data contracts:

  • Expectation: A specific check that verifies data or metadata compliance.
  • Score: The metric's value that indicates how well the data meets the defined quality check.
  • Error threshold: A numerical limit that defines acceptable behavior. An expectation fails when the score is below this threshold.
  • Warning range: A range of values that triggers a warning when data falls within it, indicating potential issues before reaching the error threshold.
  • Alert: An automated notification sent to specified users when a data breach occurs, enabling rapid response to quality issues.
  • Dimension: A metric from the Qlik Trust Score™.

Creating a data contract

  1. In Qlik Cloud, navigate to the Catalog section.
  2. Click the dataset for which you want to configure the data contract.
  3. Click the Data contract tab.
  4. Click Define data contract expectations.
  5. In the expectation selection modal, select the expectations to include. To select eligible expectations, click Suggest data contract.
  6. Click Apply to create the contract from the selected expectations. The modal closes and the contract appears.

Updating contract expectations

  1. Open the dataset's Data contract tab.
  2. Click Manage expectations in the right panel and update the expectations in the modal.
  3. Click OK to stage the changes.
  4. On the data contract page, click Apply changes to save staged changes.

For an existing contract, click an expectation tile > Activate expectation or Deactivate expectation to change its status. Click a tile to configure an expectation. Quality metric expectations support an error threshold and warning range; Data volume expectations support a record range. For details, see Defining the error threshold and warning range. Click Apply changes to save your changes.

When you want to deactivate all expectations, it is recommended to deactivate the data contract. This will stop the evaluation of all expectations and disable alerts for this contract. In the Data contract overview, click Deactivate data contract.

Qlik Trust Score™ dimension expectation details

Depending on the expectation, you can see more details for Qlik Trust Score™ dimensions, such as the schema, the number of fields, and the quality information for each field.

Editing contract documentation

You can document the data contract to help consumers use the dataset effectively. This can include details about the dataset's structure, the purpose of the data, any relevant business rules, and guidance on how to interpret the data.

  1. Open the dataset's Data contract tab.
  2. From the right panel, click Edit.
  3. In the Edit data contract modal, enter or edit the documentation in the rich-text editor.
  4. Click Save to stage your changes.
  5. On the data contract page, click Apply changes to save the staged documentation.

Defining the error threshold and warning range

For quality metric expectations, the error threshold establishes acceptable limits for data quality. The warning range lets you define a buffer zone where data quality is approaching the error threshold but the expectation has not yet failed. This helps teams address issues before they become critical.

  1. Select the expectation to configure.
  2. In the right panel, click the edit icon next to Error threshold.
  3. Enter the error threshold.
  4. Click Add warning range.
  5. Enter the maximum value.
  6. Click OK to validate the values. The Evaluation preview shows you the status if you apply the changes.

    Error threshold and warning range configuration

  7. Click Apply changes to update the data contract evaluation.

    If you have subscribed to notifications, one is sent when:

    • The score falls in the warning range. Only for quality metrics expectations.
    • The score is below the error threshold. Only for quality metrics expectations.
    • The row count is not in the record range. Only for Data volume expectation.

To remove the warning range, click Remove warning range next to the warning range value.

Status of the data contract

The status of the data contract is automatically updated when:

  • Expectations are activated or deactivated.
  • The error threshold or warning range is modified.
  • The record range is modified.
  • The Qlik Trust Score™ is updated.

From the dataset menu, you can quickly know whether the data contract has issues or not. An icon is displayed on the Data contract tab.

Data contract status icon

Setting up alerts

Configure alerts to notify your team when some events happen on your dataset. Alerts ensure that quality issues are discovered and addressed quickly, preventing unreliable data from being used in dashboards, applications, or business decisions.

Notification changes apply immediately and are separate from staged contract changes. You can edit notifications only when the dataset is in a shared or managed space and you have update rights.

  1. From the right panel in the Data contract tab, click Edit.
  2. Select the notification you want to configure.
  3. Click OK to save the changes.

For more information, see Managing your alerts.

Data contract visibility at the data product level

When a dataset with a data contract is part of a data product, the contract status is also surfaced at the data product level. For more information, see Viewing data contracts at the data product level.

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – please let us know!