Adding a listitem using Lists.asmx for Windows Sharepoint Services

Sometimes you'd just whish for all data in the world to automatically describe itself properly. I just spent the weekend contemplating whether I'm a complete retard or not, after not beeing able to add a listitem through the WSS Web Services. I was using the UpdateListItems method and trying out every possible combination of attributes for the Batch and Method elements.

Finally Google came to the rescue with a newsgroup posting solving my problem. So I you're recieveing this error when calling UpdateListItems:

<ErrorCode>0x80004005</ErrorCode>

<ErrorText>Cannot complete this action.Please try again.</ErrorText>

And you've tried everything else.. chances are that you're trying to update or create a URL field and the Hyperlink type in Sharepoint must be on the format

[ValidUrl][Comma][WhiteSpace][Desctiptiontext]

For example: http://localhost, My local webserver

 

1 Comment

Comments have been disabled for this content.