X199: Illegal foreign key constraint.

A FOREIGN KEY cannot be referenced by another FOREIGN KEY. If you want A to reference B, and B to reference C, then instead have A reference C and B reference C.
Restriction: This topic applies to Windows environments only.