AshPhoenix.Form fails to submit with Ash.Error.Query.InvalidFilterValue error
Hey there, I'm not sure exactly what is happenig, but I have a embedded resource that was inserted into my resource, when I try to update it via AshPhoenix, by first calling
AshPhoenix.Form.remove_form
AshPhoenix.Form.remove_form
and then
AshPhoenix.Form.submit
AshPhoenix.Form.submit
, I get this error:
[warning] Unhandled error in form submission for Marketplace.Markets.Property.updateThis error was unhandled because it did not implement the `AshPhoenix.FormData.Error` protocol.** (Ash.Error.Query.InvalidFilterValue) Invalid filter value `nil` supplied in `#Ecto.Changeset<action: nil, changes: %{updated_at: ~U[2023-09-19 00:18:43.738483Z], off_market: nil, processing_status: :running}, errors: [], data: #Marketplace.Markets.Property<>, valid?: true>`
[warning] Unhandled error in form submission for Marketplace.Markets.Property.updateThis error was unhandled because it did not implement the `AshPhoenix.FormData.Error` protocol.** (Ash.Error.Query.InvalidFilterValue) Invalid filter value `nil` supplied in `#Ecto.Changeset<action: nil, changes: %{updated_at: ~U[2023-09-19 00:18:43.738483Z], off_market: nil, processing_status: :running}, errors: [], data: #Marketplace.Markets.Property<>, valid?: true>`
Any idea on what can be the issue here? I'm trying to create a small example that triggers this but without too much success.
The Elixir backend framework for unparalleled productivity. Declarative tools that let you stop wasting time. Use with Phoenix LiveView or build APIs in minutes for your front-end of choice.