Unable to Update Sharepoint Document Properties : Required Fields are Empty.

Posted by Pari on Stack Overflow See other posts from Stack Overflow or by Pari
Published on 2010-03-10T11:02:37Z Indexed on 2010/03/22 6:21 UTC
Read the original article Hit count: 870

Filed under:
|

Hi,

I am updating Documents on Sharepoint using List.asmx web service.

But problem i am facing is:

  1. Fields are not getting Updated as some of required fields are not added. But to fill required fields i have to again Update.
  2. "ID" field is compulsary at the time of Update. Which we get only after uploading Document.( we get this id by "ows_id" attriute value)

Edit : As said by "Janis Veinbergs" We can't get this ID untill document is actualy saved. So how will i update document as ID field is must for Update.

If i don't Put ID Field :

Error : 0x8102000aInvalid URL Parameter The URL provided contains an invalid Command or Value. Please check the URL again.

If i put Null Value to it:

Error :0x81020016Item does not exist The page you selected contains an item that does not exist. It may have been deleted by another user.

Is there any way to set document properties at the time of uploaidng files on Sharepoint.

*Note : i am uploading file in Chunck.And Not using Microsoft.sharepoint.dll * Language : C#

I tried this code But here again properties are being set after uploading file.

© Stack Overflow or respective owner

Related posts about c#

Related posts about sharepoint2007