plz check your data type that both the refering column and reffered column in foreign key constraint . for eg . plz check both data type are varchar, not null or any other same data type if they r of different data type then this error will display