I have been facing this duplicate error for over a week. I tried to tackle it in multiple ways, but no effort was fruitful. Then, I deleted the record with the ID “2147483647” and tried adding a new record. It still gave me the same error, even though there was no record in my MySQL database with this ID. I even tried to add a record without any ID, as shown in the attached screenshot. I didn’t set anything in the ID field in the “Additional Column,” yet it still gave me the same error
No, I haven’t hit the limit. I literally have 36 records in the database, and secondly, it is giving me an error even when I try to insert an empty ID.
When you create a column in the Glide Data Editor, Glide assigns a “native” column name which is different from the name that you assign. The native name is static and will not change even if you rename the column. The native column name is shown in the action log. If you check the API usage on the table, you will see which actual column that maps to.
Anyway, the point is that the log shows that the action is writing the value 2 into the selected column. So again, is that what you are expecting?
Can you show me the configuration of that Set Column Values action?
Here is the configuration of the set column values , which indeed sets the value to 2 in the user table rather than the P table. This occurs after the form submission, as seen in the previous screenshot where I did not add anything in the “ID field” of the additional columns in the form container for the P table.
Previously, I tried different approaches to manually add the “ID field,” but each attempt resulted in the same error. I also attempted to add a unique identifier, but the same error occurred. In one of my previous posts, you mentioned that using a Form Container (or any type of add form) will add a new row when it is submitted.
Presumably that’s because of the error shown in your very first screen shot.
I’d expect that error is coming from MySQL, and it looks like a duplicate key violation.
As I mentioned in my earlier reply, the number shown in the error message is a “special” number in the sense that it’s the highest number that can be represented with 32 bits. I’m sure that’s a clue, but I’m not sure where to go with that.
Do your MySQL logs provide any clues?
Also, this thread was escalated to Glide Support - have you heard anything from them?
If not, you might want to reach out via the chat in the Glide Builder.