You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Error whenever I try to insert values to a table #2212
I get this error whenever I try to insert values to a table. This is the error: Error while saving the database file. This means that not all changes to the database were saved. You need to resolve the following error first. FOREIGN KEY constraint failed (RELEASE "RESTOREPOINT";) I am using SQLite version 3.11.2 on Windows 10.
What did you do?
I inserted values to the table. I then tried to write the changes. After clicking the write changes button, I got this error.
What did you expect to see?
I expect the values to be added and saved into the table as new records.
What did you see instead?
The values were not accepted as new records and I got the error.
Useful extra information
The info below often helps, please fill it out if you're able to. :)
changed the title [-]I get this error whenever I try to insert values to a table. This is the error:[/-][+]I get this error whenever I try to insert values to a table. This is the error: Error while saving the database file. This means that not all changes to the database were saved. You need to resolve the following error first. FOREIGN KEY constraint failed (RELEASE "RESTOREPOINT";)[/+]on Apr 24, 2020
changed the title [-]I get this error whenever I try to insert values to a table. This is the error: Error while saving the database file. This means that not all changes to the database were saved. You need to resolve the following error first. FOREIGN KEY constraint failed (RELEASE "RESTOREPOINT";)[/-][+]I get this error whenever I try to insert values to a table. This is the error: Error while saving the database file. This means that not all changes to the database were saved. You need to resolve the following error first. FOREIGN KEY constraint failed (RELEASE "RESTOREPOINT";) I am using SQLite version 3.11 on Windows 10.[/+]on Apr 24, 2020
changed the title [-]I get this error whenever I try to insert values to a table. This is the error: Error while saving the database file. This means that not all changes to the database were saved. You need to resolve the following error first. FOREIGN KEY constraint failed (RELEASE "RESTOREPOINT";) I am using SQLite version 3.11 on Windows 10.[/-][+]I get this error whenever I try to insert values to a table. This is the error: Error while saving the database file. This means that not all changes to the database were saved. You need to resolve the following error first. FOREIGN KEY constraint failed (RELEASE "RESTOREPOINT";) I am using SQLite version 3.11.2 on Windows 10.[/+]on Apr 24, 2020
changed the title [-]I get this error whenever I try to insert values to a table. This is the error: Error while saving the database file. This means that not all changes to the database were saved. You need to resolve the following error first. FOREIGN KEY constraint failed (RELEASE "RESTOREPOINT";) I am using SQLite version 3.11.2 on Windows 10.[/-][+]Error whenever I try to insert values to a table[/+]on Apr 24, 2020
There are 'rules' on the table, preventing you adding a new record. For example, table A holds data which references table B. Eg, a "country" value. Rather than stating the country as "United States", you simply use number 3, and another table holds "United States" in record #3.
However, you're trying to create a record referencing #4, but that record doesn't exist. There is no record #4.
Just ensure the data you're trying to insert is valid.
Insert the referencing data first.
On a side note, like an email, don't put the whole issue in the subject line - the subject (or title) is just meant to be a summary of the contents... Have a quick glance through the existing issues to get an idea of what I mean. :)
Thank you very much for the feedback. I will try to figure out where the problem lies base from your idea. It is my first time to post an issue here. It is my mistake. Please accept my humble apology for it. Rest assured that I will be more cautious and compliant with my future posts. Thank you very much again.
Rest assured that I will be more cautious and compliant with my future posts.
Its not a problem - just didn't know if you were aware or not.
If the data you're using isn't sensitive, feel free to provide some screenshots, and we can assist with more knowledge of whats going on.
Also, rather than just report an error when doing X, explain why you're doing this - sometimes, you're getting an error because you should be doing Y instead - there is no need to do X.
Good luck with your playing with DB4S, and thanks for taking the trouble to raise an issue. Don't be afraid to yell if you have any further issues.
Activity
[-]I get this error whenever I try to insert values to a table. This is the error:[/-][+]I get this error whenever I try to insert values to a table. This is the error: Error while saving the database file. This means that not all changes to the database were saved. You need to resolve the following error first. FOREIGN KEY constraint failed (RELEASE "RESTOREPOINT";)[/+][-]I get this error whenever I try to insert values to a table. This is the error: Error while saving the database file. This means that not all changes to the database were saved. You need to resolve the following error first. FOREIGN KEY constraint failed (RELEASE "RESTOREPOINT";)[/-][+]I get this error whenever I try to insert values to a table. This is the error: Error while saving the database file. This means that not all changes to the database were saved. You need to resolve the following error first. FOREIGN KEY constraint failed (RELEASE "RESTOREPOINT";) I am using SQLite version 3.11 on Windows 10.[/+][-]I get this error whenever I try to insert values to a table. This is the error: Error while saving the database file. This means that not all changes to the database were saved. You need to resolve the following error first. FOREIGN KEY constraint failed (RELEASE "RESTOREPOINT";) I am using SQLite version 3.11 on Windows 10.[/-][+]I get this error whenever I try to insert values to a table. This is the error: Error while saving the database file. This means that not all changes to the database were saved. You need to resolve the following error first. FOREIGN KEY constraint failed (RELEASE "RESTOREPOINT";) I am using SQLite version 3.11.2 on Windows 10.[/+][-]I get this error whenever I try to insert values to a table. This is the error: Error while saving the database file. This means that not all changes to the database were saved. You need to resolve the following error first. FOREIGN KEY constraint failed (RELEASE "RESTOREPOINT";) I am using SQLite version 3.11.2 on Windows 10.[/-][+]Error whenever I try to insert values to a table[/+]chrisjlocke commentedon Apr 24, 2020
There are 'rules' on the table, preventing you adding a new record. For example, table A holds data which references table B. Eg, a "country" value. Rather than stating the country as "United States", you simply use number 3, and another table holds "United States" in record #3.
However, you're trying to create a record referencing #4, but that record doesn't exist. There is no record #4.
Just ensure the data you're trying to insert is valid.
Insert the referencing data first.
On a side note, like an email, don't put the whole issue in the subject line - the subject (or title) is just meant to be a summary of the contents... Have a quick glance through the existing issues to get an idea of what I mean. :)
mandudeman commentedon Apr 24, 2020
Thank you very much for the feedback. I will try to figure out where the problem lies base from your idea. It is my first time to post an issue here. It is my mistake. Please accept my humble apology for it. Rest assured that I will be more cautious and compliant with my future posts. Thank you very much again.
chrisjlocke commentedon Apr 24, 2020
Its not a problem - just didn't know if you were aware or not.
If the data you're using isn't sensitive, feel free to provide some screenshots, and we can assist with more knowledge of whats going on.
Also, rather than just report an error when doing X, explain why you're doing this - sometimes, you're getting an error because you should be doing Y instead - there is no need to do X.
Good luck with your playing with DB4S, and thanks for taking the trouble to raise an issue. Don't be afraid to yell if you have any further issues.
chrisjlocke commentedon Apr 29, 2020
Closing this as the initial query has been addressed. Please feel free to comment further if you have continuing problems.
mandudeman commentedon Apr 29, 2020