I'm working on an IoT project that involves storing data in a database.
Hi everyone,
I'm working on an IoT project that involves storing data in a database. While writing the SQL code, I encountered the following error:
"violated - parent key not found"
I search everywhere, Has anyone else encountered this issue, or can anyone provide guidance on how to fix
I'm working on an IoT project that involves storing data in a database. While writing the SQL code, I encountered the following error:
"violated - parent key not found"
I search everywhere, Has anyone else encountered this issue, or can anyone provide guidance on how to fix

Solution
Thank you @jjbitnic
, actually i found that one of the FOREIGN KEY values in the REFERENCE Table does not exist in the Parent Table. I just Ensure that the ID value matches in both tables. 