SAP Knowledge Base Article - Public

3659370 - Replication Flow fails with error "Schema validation failed."

Symptom

Replication flow fails with following error:

Error message: "Schema validation failed. Please ensure the primary key of the source table matches the primary key definition of the input schema derived from the source table or the transform. Expected column XX at index X in the source table primary key but found XXXXX. Expected column XXXXX at index X in the source table primary key but found XXXXX"

Environment

SAP Datasphere

Reproducing the Issue

Execute replication flow

Cause

The issue may be caused by one the following reason:

  • The replication flow requires the connectivity user schema to exist in the source system to store internal objects for delta replication.
  • Database triggers must be created in the same schema as the source tables, and the connectivity user must have the necessary privileges to create these triggers.

Resolution

  1. Ensure that the source system has a schema with the same name as the user specified in the SQL Server connection.
  2. If the schema is missing, request the database administrator to create it and grant the necessary write privileges to the connectivity user.
  3. Verify that the triggers are created in the correct schema and that the connectivity user has the required privileges.

See Also

The text used in the See Also section is incorrect. For SAP Notes, Community and SAP Help, we use the below:

Keywords

failure, database schema mismatch, connectivity, user schema, delta replication, validation, replication artifacts, artifacts, DS, RF. , KBA , DS-DI-RF , Replication Flow Runtime , Problem

Product

SAP Datasphere all versions