Strange Data Insertion exception: the incoming table format data stream (TDS) Remote Procedure Call (RPC) protocol stream is incorrect.

Source: Internet
Author: User

The day before yesterday finished the work at hand, the manager gave me a bug let me see, I took a look at the bug information, is never seen the exception, but according to the exception information prompts and very easy to determine the reason for the exception.

Exception information: the incoming table format data stream (TDS) Remote Procedure Call (RPC) protocol stream is incorrect. Parameter 7 ("@ExchangeRate"): The supplied value is not a valid instance of the data type float. Please check for invalid values in the source data. For example, data of a numeric type with a decimal number greater than the precision is an invalid value.

From the informational hints, I judged the data type overflow because the program uses a double type to correspond to the float type of the database , which may cause the insertion to overflow. But the experiment several times, did not reproduce that anomaly, therefore is very strange. After Google, there was little information about the anomaly, and there were no relevant solutions. The MSDN Web site has an incoming tabular data stream (TDS) Remote Procedure Call (RPC) protocol stream is incorrect. article, but it doesn't seem to have anything to do with me. The article said that this exception was caused by the JDBC driver version, and my program didn't use JDBC. To this end I posted in the MSDN community, a day passed, browsing a lot of people, but not a message, may have not encountered it. Who saw me this article of the cattle people have encountered this situation, I hope to discuss and solve this problem together. If I had solved the problem first, I would have posted the solution here.

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.