Wepart Property Invalid SQL query in property

SOS Childrensvillages asked on December 4, 2018 11:12

Hi,
I have a property that throw's an error "Invalid SQL query in property" when I try to access it via ValidationHelper.GetString(GetValue("OrderBy"), string.Empty);. I've tried changing the control type to textbox (it was originally a drop down list) but to no avail.
Using the validation helper works for all other properties. I also tried deleting and recreating the webpart. There are no macros or similar in action on the webpart (has depending field, etc).

Has anyone else ever seen this before?

Kentico v11.0.33 btw

Edit: Turns out there was a bad value in the drop down list. However, I didn't expect ValidationHelper.GetString to parse for valid sql.

   Please, sign in to be able to submit a new answer.