Sharepoint UpdateListItems 列表未更新
我向 UpdateListItems 提交更新。它返回成功,但列表项尚未更新。关于如何找出问题所在有什么建议吗?
下面是正在生成的 XML:
<Batch OnError='Continue' ListVersion='1' ViewName=''>
<Method ID='1' Cmd='Update'>
<Field Name='ID'>11707</Field>
<Field Name='Business_x0020_Area'>Consumer</Field>
<Field Name='Team'>6;#IT Support</Field>
<Field Name='Job_x0020_Number'>TEMP</Field>
<Field Name='Media_x0020_Outlet2'>13;#BBC Parliament</Field>
<Field Name='Publication_x0020_Date'>2009-09-01 14:40:10</Field>
<Field Name='Narrative2'></Field>
<Field Name='Page_x0020_Number'>1</Field>
<Field Name='Media_x0020_Value'></Field>
<Field Name='Information_x0020_Only'>0</Field>
<Field Name='Date_x0020_Added'></Field>
</Method>
</Batch>
更新
我在 U2U 中遇到的错误是
0x81020014 一种或多种字段类型未正确安装。进入列表设置页面删除这些字段。
I submit an update to UpdateListItems. It returns success but the list item ahs not updated. Any advice on how I would track down what is going wrong?
Below is the XML being generated:
<Batch OnError='Continue' ListVersion='1' ViewName=''>
<Method ID='1' Cmd='Update'>
<Field Name='ID'>11707</Field>
<Field Name='Business_x0020_Area'>Consumer</Field>
<Field Name='Team'>6;#IT Support</Field>
<Field Name='Job_x0020_Number'>TEMP</Field>
<Field Name='Media_x0020_Outlet2'>13;#BBC Parliament</Field>
<Field Name='Publication_x0020_Date'>2009-09-01 14:40:10</Field>
<Field Name='Narrative2'></Field>
<Field Name='Page_x0020_Number'>1</Field>
<Field Name='Media_x0020_Value'></Field>
<Field Name='Information_x0020_Only'>0</Field>
<Field Name='Date_x0020_Added'></Field>
</Method>
</Batch>
Update
The error I am getting in U2U is
0x81020014 One or more field types are not installed properly. Go to the list settings page to delete these fields.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
我在 CAML 中有一个不在数据库中的内部字段。这导致它绊倒。
I had an internal field in the CAML that was not in the database. This was causing it to trip up.
我的第一个建议是保留字段名称,例如“Business Area”而不是“Business_x0020_Area”。我知道当您查找列表 xml 文件时,字段名称会像这样显示。第二个建议是关于您的日期字段。确保您的日期构建正确。日期字段格式为 YYYY-MM-DDTHH:MM:SSZ。 T 和 Z 很重要。我希望它有帮助。
My first suggestion is keeping field names as they are such as 'Business Area' instead of 'Business_x0020_Area'. I know when when you look up the list xml file, field names are shown like that. The second suggestion is about your date field. Make sure your date is constructed properly. The date field format is YYYY-MM-DDTHH:MM:SSZ. The T and Z are important. I hope it helps.
401 表示您尚未登录,或者您登录的用户没有该列表的权限。验证“执行”批处理脚本的用户是否可以登录站点并对列表进行更改。
The 401 is indicating that you are not logged in, or the user who you are logged in as does not have permissions on that list. Verify that the user 'executing' the batch script can log in to the site and make changes to the list.
我在日期
和代码中做了类似的事情
I've made something like this for the date
and in the code