We have a table called “Case” with a smart field on it called “note” that on the “set” method of this field it updates a different table called note.
Observed behavior
Last week (it worked before) we started to get an error when we try to save new data on this field.
When we are in the Summary tab we click on the “edit” button, inserting new data and click on “Save” we get “The Cases record you are trying to update is invalid.”.
Another weird thing is that when we go over to the “details” tab and go back to the “summary” tab we are able to update this field.
Expected behavior
Ability to edit this smart field as it worked a week ago
Failure Logs
we dont get any log just the error message in the UI
Context
Project name: Empathy
Team name: All team( foe example: Engineering)
Environment name: All (production, dev, etc )
Agent (forest package) name & version: forest-express-sequelize: 8.4.8
So sorry to hear that. I’m contacting the team to investigate on this and see if something has introduced the issue recently.
And thanks you for your detailed Observed behavior, for sure it will help the team to understand.
We will get back to you if we need more information or if we find the issue.
You got absolutely no error log in your browser console ?
This error happens when you got a validation error in your form, so meaning one of your field is missing while it should be field or is having a bad data.
We did release a fix on that part last week, validation on id field where totally ignored.
If your field is visible and has validation, it must pass this validation.
You should have an input in an error state (in red) with a description of why.
Hi @vince
thanks for your response
I dont get any error and I dont have any validation on this field, its a simple smart field and when I add logs to the set callback it doesnt even go there.
Im attaching a screenshot
Hi, my team started seeing this same issue this week. We get the error “The Applicant record you are trying to update is invalid” when we edit fields in our Applicants table (called “application” in our database). If we go to the Details tab and then return to the Summary tab to try editing, the error does not occur.
I don’t think there is any validation on the Applicants table fields. Though, I am not sure if I understand what you mean by validation. If you could provide documentation on how validation is set up, I could check that better.
I see no error in my Google Chrome console when this happens, and I also do not see a new entry in my Network tab. (When I successfully edit an Applicant, a new entry in the Network tab appears with a name matching the applicationId, but no such entry appears when the error occurs.)