Go deep into SharePoint-Batch import data

Source: Internet
Author: User

String batchReturn = web. ProcessBatchData (batch );

<Results> <Result ID = "0" Code = "-2147217900"> <ErrorText> The operation failed because an unexpected error occurred. (Result Code: 0x80040e14) </ErrorText> </Result> </Results>

 

Cause:

When defining the schema. xml file,

For attributes of multi-line text, ColName should be defined as ntext2 rather than nvarchar3.

The correct syntax is as follows:

<Field Type = "Note" DisplayName = "Address" Required = "FALSE" NumLines = "4" RichText = "FALSE" RichTextMode = "Compatible" IsolateStyles = "FALSE" Sortable =" FALSE "Group =" C0370A "ID =" {region} "StaticName =" C0370A_VPPI_Address "Name =" C0370A_VPPI_Address "ColName =" ntext2 "AllowHyperlink =" TRUE "AppendOnly =" FALSE "/>

Cause 2: The ColName of multiple fields has the same name. You should specify different names for different fields.

Correct syntax:

<Field Type = "Text" DisplayName = "First Name" Required = "FALSE" MaxLength = "255" Group = "C0370A" ID = "{region}" StaticName = "C0370A_VPPI_FirstName" name = "C0370A_VPPI_FirstName" mizmization = "" ColName = "nvarchar6"/>
<Field Type = "Text" DisplayName = "Phone Number" Required = "FALSE" MaxLength = "255" Group = "C0370A" ID = "{region}" StaticName = "C0370A_VPPI_PhoneNum" name = "C0370A_VPPI_PhoneNum" mizmization = "" ColName = "nvarchar6"/>

 

Principle Analysis: The ColName attribute defines the ing between a field and its physical storage name. This must be a valid name in the basic database and must be the same name as in the database table. If not specified, the Server generates a column name, which does not conflict with any existing column name and only contains characters allowed by Microsoft SQL Server.

 

Therefore, we recommend that you do not add non-essential attribute settings to reduce unnecessary troubles.

Related Article

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.