Index and length must refer to a location within the string. Parameter Name: length (mscorlib)

Source: Internet
Author: User
Tags mscorlib ssis

Today, I used SSIS to create a small Excel extraction program. The following error occurs during the preview Excel Data:

 

There was an error displayingthe preview.Additional information:

Index and length must refer Toa location within the string. Parameter Name: length (mscorlib)

 

 

 

The reason for this error is that the Excel sheet name is incorrect. The solution is to modify the Excel sheet name. Therefore, when using SSIS to parse the Excel Sheet Name, follow the following rules:

 

1. Make sure that the Excel sheet name is not too long.

 

2. Do not enter spaces before or after the name

 

3. Do not include special characters such as "&" % ".

 

After the Excel sheet name is modified, the data can be properly preview.

 

 

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.