Boris,
Thank you for pointing out the blog. It is exactly the same call where it fails and I see now how to rewrite our code.
Old code:
object[,] parameters = new object[3, 3];
parameters[0, 0] = "@UserID";
parameters[0, 1] = userId;
parameters[1, 0] = "@Points";
parameters[1, 1] = points;
parameters[2, 0] = "@Type";
parameters[2, 1] = Convert.ToInt32(type);
// Update user counts and add activity points
GeneralConnection conn = ConnectionHelper.GetConnection();
conn.ExecuteQuery("cms.user.UpdateUserCounts", parameters);
New code:
QueryDataParameters parameters = new QueryDataParameters();
parameters.Add("@UserID", userId);
parameters.Add("@Points", points);
parameters.Add("@Type", Convert.ToInt32(type));
// Update user counts and add activity points
ConnectionHelper.ExecuteQuery("cms.user.UpdateUserCounts", parameters);
Thanks again,
Vlado