Foreign key constraint issue when inserting a UserId using GetUserId


I am trying to reuse the User table from the Systems, even though User table is having data but it is not showing in the core (Blank) module, but the data in the User table is being shown in the UI module which is referencing the core (blank) module. Please find the screen shots for better clarification.

And Hence i am not able to insert the record into DB even though GetUserId() method is returning the valid integer value


Hi Praveenkumar,

Are all the modules with the same User Provider? You can check this by selecting the module:

Best regards,

João Nobre


Hi João Nobre,

Thanks for the advice i am able to resolve it.