Changeset Bug When Updating Boolean

Boolean Update Bug After Bulk Edit in Retool Table Component

The Issue

When I perform a bulk update operation on a table and try to subsequently update a boolean value, the system fails to update the boolean correctly. Instead, it seems to be using the value from the last edited attribute before the boolean.

Steps to Reproduce

  1. Open a table (I'm using a bookingsTable component)
  2. Do a bulk edit operation on any field
  3. Click save to apply those changes
  4. Try to update a boolean field immediately after
  5. The update fails

Error Details

Looking at the console, I can see this error:

bulkEditBookings failed (0.884s): update "world_discovery"."bookings" set "is_vip" = $1, "updated_by" = $2 where "id" = $3 - invalid input syntax for type boolean: "booked"

It looks like it's trying to assign "booked" (which was likely the value I was just working with) to a boolean field instead of a proper boolean value.

The error happens in the bookingsTable save event handler, according to the logs.

Has anyone else run into this issue?

Thanks!

Welcome to the community, @Enes_Fejzoski! Thanks for reaching out. :slightly_smiling_face:

Please let us know if you notice any lingering issues, but this should now be fixed as of Cloud version 3.185.0.

1 Like