When datatable. Compute () is used, the following error occurs: a single column parameter that requires a possible "child" qualifier ."

Source: Internet
Author: User
Compute method abstract // Summary: // calculates the given expression on the current row that is used to pass the filtering condition. //// Parameter: // expression: // The expression to be calculated. //// Filter: // filter of the rows to be computed in the expression. //// Return result: // system. Object, set as calculation result. Public object compute (string expression, string filter );

 

This error is often encountered when datatable. Compute () is used.

After query, it is found that child is computed using able. Compute () with a parent-child relationship, and data in my datatable has no parent-child relationship at all.

After many confusions, the following is a summary:

1. The column name in the expression parameter cannot start with a number. Otherwise, this error is reported. (This is hard to find out ...)

2. The data type of the field in the expression parameter. For example, sum (character type) will report this error.

 

Is this a Microsoft Bug? The same error is reported in both cases.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.