I just found the mistake. The mistake was when I created a case through a team relation, I did something like this:
update :add_case do
require_atomic? false
argument :case, :map, allow_nil?: false
change manage_relationship(:case, type: :create)
end
Thus, it expects the case to be in the format %{case: case}, but when I updated the case I did it through the case resource which expects it as just a map with all the keys and values related to the attributes.
The error happened because there was a logic error in how I switched between these two formats. I don’t know if there is a smarter way of doing this, so I don’t have to switch between the two types of maps.
Thank you very much for your help and time! It’s really appreciated.






















