Code Comments
Programming Forum and web based access to our favorite programming groups.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
Post Follow-up to this messageStop 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>
Post Follow-up to this messageThank 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.
Post Follow-up to this messageThis 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> > > > >
Post Follow-up to this messageThe 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 > > > >
Post Follow-up to this messageGreatly 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.
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.