# 7. Workspace synchronization & validation

Before generating synthetic data, Syntho performs [automated checks](https://docs.syntho.ai/configure-a-data-generation-job/generation-and-validation/validate-and-synchronize-workspace) to ensure your workspace aligns with the schemas of your **source** and **destination** databases. This ensures compatibility, preserves referential integrity, and prevents generation failures.

***

### Interactive guide: How to validate a workspace

Follow the interactive guide below to validate a workspace

{% embed url="<https://www.guidejar.com/guides/8547be69-4ff3-49ca-b60a-4f1718463fe2>" %}

## [Source schema validation](https://docs.syntho.ai/configure-a-data-generation-job/generation-and-validation/validate-and-synchronize-workspace#source-schema-validation)

Your source database schema may evolve over time—tables may be added, columns removed, or data types changed. Syntho automatically detects such changes during generation and warns you if your workspace is out of sync.

#### [**Automatically detected changes**](https://docs.syntho.ai/configure-a-data-generation-job/generation-and-validation/validate-and-synchronize-workspace#source-schema-synchronization)

Syntho will detect and synchronize:

* **Table-level changes**: primary key updates, constraint modifications, table removal
* **Column-level changes**: type changes, nullable status, constraints, or key assignments

Unresolved schema mismatches may result in job failure, so it’s best practice to sync regularly.

***

## [Destination schema validation](https://docs.syntho.ai/configure-a-data-generation-job/generation-and-validation/validate-and-synchronize-workspace#destination-schema-validation)

Syntho also validates your destination schema to ensure it is ready to receive the generated synthetic data. Issues here can block the generation process or result in incorrect output.

### [**Table-level issues (blocking)**](https://docs.syntho.ai/configure-a-data-generation-job/generation-and-validation/validate-and-synchronize-workspace#table-issues)

* Table does not exist
* Primary or foreign key mismatch with source

#### **Resolution**

Ensure table structure matches the source schema. Remove or align keys as needed.

### [**Table-level warnings (non-blocking)**](https://docs.syntho.ai/configure-a-data-generation-job/generation-and-validation/validate-and-synchronize-workspace#table-warnings)

* Table already contains data\
  → Truncate the table in the destination
* Table is part of a circular reference\
  → Disable foreign key constraints temporarily

### [**Column-level issues (blocking)**](https://docs.syntho.ai/configure-a-data-generation-job/generation-and-validation/validate-and-synchronize-workspace#column-issues)

* Missing columns
* Extra non-nullable columns without defaults
* Not-nullable columns not present in the source

#### **Resolution**

Adjust column definitions to match source schema exactly.

### [**Column-level warnings (non-blocking)**](https://docs.syntho.ai/configure-a-data-generation-job/generation-and-validation/validate-and-synchronize-workspace#column-warnings)

* Data type mismatches
* Unexpected uniqueness or check constraints
* Missing default values
* Column length or max value is lower than source

#### **Resolution**

Align data types, constraints, and value limits between source and destination columns.

***

## Final step: generate

After resolving all validation issues and confirming schema synchronization, you can safely proceed to generate synthetic data.
