Languages with - Error

I’m submitting a…

  • [ ] Regression (a behavior that stopped working in a new release)
  • [X] Bug report
  • [ ] Performance issue
  • [ ] Documentation issue or request

Environment

  • [ ] Self hosted with docker
  • [X] Self hosted with IIS
  • [ ] Self hosted with other version
  • [ ] Cloud version

Version: 3.3.0

Error Message:
SquidexException: Squidex Request failed: {“message”:“Query $filter clause not valid.”,“details”:[“Syntax error at position 12 in ‘data/url/de-CH eq ‘inhalte-mit-headless’’.”],“statusCode”:400}

Code:

var data = await _clientManager
.GetClient<BlogCategory, BlogCategoryData>(“blog-category”)
.GetAsync(new ODataQuery { OrderBy = $“data/name/{lang} asc” });

the ODataQuery string is data/name/de-CH asc
All Languages with - get a error.

From the docs: Languages with - Error

NOTE: Property names with dashes are not supported in OData. Use underscore instead.

oha…

sorry I did not know that.

Thanks for the helpful answer

Yes, it is a little bit hidden to be honest :smiley: