Save New Row in Form on Postgres Data Source #16534
-
|
Checklist
Similar issue here but much earlier version: Hosting
Describe the bug { with the following Response Payload: {"status":500,"validationErrors":{"apTaxMapID":["can't be blank"]}} When I check my Postgres table to see if apTaxMapID is not nullable it only shows that the applicantID column is not nullable, it doesn't show anything about apTaxMapID. This was working previously and nothing was changed on my side. Expected behavior Desktop (please complete the following information):
Additional context |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 18 replies
-
|
Hey @jhill-mindex, Is this set as required within the Budibase table UI itself?
If yes, toggle off it being required and it should resolve your issue. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
Hey @jhill-mindex, Yes, even if it's not included in the form. If it's required at the table level, the request will still fail as the field can't be left blank for that table because it is required. Can you check the base table in the data area and see if the field |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
Hey @jhill-mindex, Have you made any changes to your database? Was this field not nullable at one point, and then was it changed? If it's auto-detected as required, that likely means it's required/not nullable at the database level. Do you have your Postgres schema? Please send across an example so I can have a look. I'm going to convert this to a discussion as it's very likely to be schema-related. |
Beta Was this translation helpful? Give feedback.
-
|
Hello @jhill-mindex, Are you using pgadmin in accessing your postgres db or only in terminal? if you are using terminal, can you connect on it and type "\d tablename" (table name which has a column of apTaxMapID)? Here is an example if you type it in the terminal You can check if there other nullable column in that table. |
Beta Was this translation helpful? Give feedback.












Hey @jhill-mindex,
My mistake, I didn't get a notification. I can see your app export now. Thank you for uploading the app export.
I understand why it's required in the Budibase UI. This field is marked as the primary display column. These columns are necessary for Budibase as they are the identifiers used when setting up your relationship columns within Budibase. Due to this they are required by default.
If you switch the primary display to another field that is already required in your database, you should then be able to toggle off the required flag for that specific field.
Screenshot showing the use as display column option
Switch to a different column can toggle it off, so it's no l…