Error page when editing a rule that has a condition that contains reference to a deleted tag.
I got error page when I clicked to the edit link for some rules.
Sorry, due to an error, we are unable to fulfill your request at the moment. You may want to contact your administrator or service provider with more details about what action you were performing when this occurred.
Expected one Tag but found 0
After an investigation it turned out that the rule has a tag condition Contact Has/Does Not Have Tag(s)
and the tag that was added to this condition has been deleted later. It caused the error page and it made the rule update impossible on the GUI. For a workaround we updated the condition in the db with sql query for an existing id. After this step, the edit screen loaded without error, so that we were able to fix the condition.
Is it possible to resolve this issue without updating the database with sql or API calls?