The value that you specify for a column is not applied when you use the "put document" method to upload a document to a document library in Windows SharePoint Services (916638)



The information in this article applies to:

  • Microsoft Windows SharePoint Services

SYMPTOMS

Consider the following scenario. You run a custom program to upload a Microsoft Office document to a document library in a Microsoft Windows SharePoint Services Web site. The custom program uses the put document method of the remote procedure call (RPC) protocol in FrontPage Server Extensions 2002 from Microsoft.

The put document method uploads the document and also adds a value that you specify to a column in the document library. However, when you view the document in the document library, the value that you specified for the column is not applied to the document. Instead, the column is blank.

CAUSE

This behavior occurs when you use the put document method to overwrite an existing document with a new document that has the same name.

In Windows SharePoint Services, the properties of a document that is being saved to the server take precedence over the properties of an existing document. Additionally, these properties take precedence over the properties that are specified in meta-information by the put document method.

When a new document overwrites an existing document, the properties of the document are not saved to the server. Therefore, the properties of the new document that you upload are cleared, and the value of the column is blank.

WORKAROUND

To work around this behavior, use one of the following methods:
  • Use the put document method of the FrontPage Server Extensions RPC protocol to upload the document again and to specify the value of the column. After you do this, the value of the column is applied to the document.
  • Use the setDocsMetainfo method of the FrontPage Server Extensions RPC protocol to update the value of the column.

MORE INFORMATION

For more information about the FrontPage Server Extensions RPC protocol and Windows SharePoint Services, visit the following Microsoft Web site:For more information about the put document method, the setDocsMetainfo method, and other methods of the FrontPage Server Extensions RPC protocol, visit the following Microsoft Web site:

Modification Type:MajorLast Reviewed:5/9/2006
Keywords:kbnofix kbBug kbExpertiseInter kbtshoot KB916638 kbAudEndUser