SSC-FDM-OR0014

Foreign key data type mismatch.

Important Notice: Migration of Documentation Website

Please be advised that our documentation website is currently undergoing a migration to a new platform. To ensure you have access to the most up-to-date information, we kindly request that you visit our new documentation website located at:

Official Snowflake Snowconvert Documentation

For any immediate assistance or if you encounter any issues, please contact our support team at [email protected].

Thank you for your understanding.

Description

This error happens when there is a mismatch in a foreign key data type.

Example Code

Input Code:

IN -> Oracle_01.sql
CREATE TABLE "MyDb"."MyTable"
(
    "COL1" NUMBER,
    CONSTRAINT "PK" PRIMARY KEY ("COL1")
);

CREATE TABLE "MyDb"."MyTable1"
(   
    "COL1" NUMBER(*,0),
    CONSTRAINT "FK1" FOREIGN KEY ("COL1") REFERENCES "MyDb"."MyTable" ("COL1")
);

Output Code:

Note that "MyDb"."MyTable1".COL1 and "MyDb"."MyTable".COL1 are of different types and the ERROR is displayed.

Recommendations

  • If there are cycles in the data hierarchy, you can review this article to deal with them.

  • If you need more support, you can email us at [email protected]

Last updated