When using a getList method in Ektron 9.10, you may get an error: The parameter data type of UInt32 is invalid. This error occurs by passing a long value directly to a criteria object. For example:
criteria.AddFilter(TaxonomyProperty.Id, CriteriaFilterOperator.EqualTo, 2147484121);
This value is passed into a new SqlParameter call, which causes the error.
The root cause is a Microsoft .Net 4.5 issue, which was reported to Microsoft for review.
Use a variable to declare the Id before passing the value in. If you do, SqlParameter does not generate an error. For example:
long id = 2147484121;
criteria.AddFilter(TaxonomyProperty.Id, CriteriaFilterOperator.EqualTo, id);
Please sign in to leave a comment.