Monday 21 May 2012

Cannot access a closed stream Updatelistitem WebService in SharePoint

This is a quick tip. If you get this error when you try to update list item using Updatelistitem WebService you would be not using Item Id to specify which item you need to update.

So to fix it you should do something like below -

                 <Batch OnError='Continue'> \
                    <Method ID='1' Cmd='Update'> \
                     <Field Name='ID'>itemID</Field> \                     <Field Name='Title'>Test Title</Field> \
                    </Method> \
                   </Batch> \
that's it!

No comments:

Post a Comment