claudiaurbanski
Process Pupil

Create List item using Web Request error Specified value has invalid Control characters. Parameter

I keep getting the following error when using Web request to create an item in a subsite list.

Error:

Specified value has invalid Control characters.
Parameter name: value

 

My configuration is :

 

SOAP 1.1

SOAP action  http://schemas.microsoft.com/sharepoint/soap/UpdateListItems‌

Body:

<?xml version="1.0" encoding="utf-8"?>

<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">

<soap:Body>

<UpdateListItems xmlns="http://schemas.microsoft.com/sharepoint/soap/">

<listName>Projects</listName>

<updates>

<Batch OnError="Return">

<Method ID="1" Cmd="New">

<Field Name="ID">New</Field>

<Field Name="Title">new project</Field>

</Method>

</Batch>

</updates>

</UpdateListItems>

</soap:Body>

</soap:Envelope>

 

Hoping someone can help me out.

0 Kudos
Reply
1 Reply
philipplucas
Automation Master
Automation Master

Re: Create List item using Web Request error Specified value has invalid Control characters. Parame

Not sure but I dont think you should provide a value for "ID" column on item creation. "ID" is populated by SharePoint automatically?!

0 Kudos
Reply