Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

RE: Updating metadata using web services
On a whim, I changed <Field Name="ID">15</Field> to <Field
Name="ID">abcdef.txt</Field>.  So I gave the name of the document instead of
it's ID number.

I did not get the "Invalid text value" error.  Instead I got this error

<Results xmlns="http://schemas.microsoft.com/sharepoint/soap/"><Result
ID="1,Delete"><ErrorCode>0x8102000a</ErrorCode><ErrorText>Invalid URL
Parameter

The URL provided contains an invalid Command or Value. Please check the URL
again.</ErrorText></Result></Results>


But I know that the SQL Server is, in fact, running.

This may not have any impact on things, but I did think it was interesting
that my original error went away.

I will submit the issue to Microsoft using our companies normal support
channel.
Thank you.




"Wei-Dong XU [MSFT]" wrote:

> Hi Steven,
>
> My previous post should be replied at your latest one. Sorry for my mistak
e
> on the replying point!
>
> After your modification to the original code, if the error remains, please
> raise one incident to Microsoft local PSS. For bug, it will be free.
>
> Please feel free to let me know if you have any question.
>
> Best Regards,
> Wei-Dong XU (WD.XU)
> Microsoft Product Support Services
> Get Secure! - www.microsoft.com/security
> This posting is provided "AS IS" with no warranties, and confers no rights

Report this thread to moderator Post Follow-up to this message
Old Post
Steven Hughes
01-25-05 02:03 AM


RE: Updating metadata using web services
Stop the press!!  I've figured it out...

Looking back at the SDK once more, I noticed that my XML was missing a few
<Field> tags compared to the example (because I purposefully left them out
thinking I didn't need them).  I could not find anywhere in the SDK where it
states which fields must be present for the particular Cmd I am using
(Update), but it definitely needs the <Field Name="FileRef"> element.

So here's what my XML looks like now and it works just fine (the Title is
updated):
<Batch OnError="Continue">
<Method ID="1" Cmd="Update">
<Field Name="ID">15</Field>
<Field
Name="FileRef">http://spsdev1/sites/StevesSandbox/MyDocs/abcdef.txt</Field>
<Field Name="Title">My NewTitle</Field>
</Method>
</Batch>





Report this thread to moderator Post Follow-up to this message
Old Post
Steven Hughes
01-25-05 02:03 AM


RE: Updating metadata using web services
Thank you for sharing the resolution to the community! Have a nice day!

Best Regards,
Wei-Dong XU (WD.XU)
Microsoft Product Support Services
Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

Report this thread to moderator Post Follow-up to this message
Old Post
Wei-Dong XU [MSFT]
01-25-05 02:03 AM


Re: Updating metadata using web services
This example from the SDK doesn't require the FileRef element:
http://msdn.microsoft.com/library/d...datingItems.asp

Perhaps FileRef is only required for document libraries?

<Todd />

"Steven Hughes" <shughes@noemail.nospam> wrote in message
news:133DBE82-6B30-4C5F-8020-B7C2515F08D7@microsoft.com...
> Stop the press!!  I've figured it out...
>
> Looking back at the SDK once more, I noticed that my XML was missing a few
> <Field> tags compared to the example (because I purposefully left them out
> thinking I didn't need them).  I could not find anywhere in the SDK where
it
> states which fields must be present for the particular Cmd I am using
> (Update), but it definitely needs the <Field Name="FileRef"> element.
>
> So here's what my XML looks like now and it works just fine (the Title is
> updated):
> <Batch OnError="Continue">
>     <Method ID="1" Cmd="Update">
>         <Field Name="ID">15</Field>
>         <Field
>
Name="FileRef">http://spsdev1/sites/StevesSandbox/MyDocs/abcdef.txt</Field>
>         <Field Name="Title">My NewTitle</Field>
>     </Method>
> </Batch>
>
>
>
>



Report this thread to moderator Post Follow-up to this message
Old Post

01-25-05 02:03 AM


Re: Updating metadata using web services
The example from the SDK I'm using doesn't say it's required either, but doe
s
show it being used:
http://msdn.microsoft.com/library/e...ems.asp


Scroll down to the "Update documents" section to see what I mean.



"<Todd />" wrote:

> This example from the SDK doesn't require the FileRef element:
> http://msdn.microsoft.com/library/d...datingItems.asp
>
> Perhaps FileRef is only required for document libraries?
>
> <Todd />
>
> "Steven Hughes" <shughes@noemail.nospam> wrote in message
> news:133DBE82-6B30-4C5F-8020-B7C2515F08D7@microsoft.com... 
> it 
> Name="FileRef">http://spsdev1/sites/StevesSandbox/MyDocs/abcdef.txt</Field
> 
>
>
>

Report this thread to moderator Post Follow-up to this message
Old Post
Steven Hughes
01-25-05 02:03 AM


Re: Updating metadata using web services
Greatly appreciate you all on this issue!  This is definitely one bug of
the sdk sample code. I have reported this in the internal bug database.
Adding the FileRef field will fix this error.

Thanks once more!

Best Regards,
Wei-Dong XU (WD.XU)
Microsoft Product Support Services
Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

Report this thread to moderator Post Follow-up to this message
Old Post
Wei-Dong XU [MSFT]
01-25-05 02:03 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Sharepoint Windows Services Development archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 05:11 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.