• Moss2007 UpdateListItems方法报错 ErrorCode 0x81020014


    我在使用UpdateListItems方法更新List或者新增List数据时报错。

    下面是MSDN对UpdateListItems的介绍:

    Lists.UpdateListItems Method

    来源:http://msdn.microsoft.com/en-us/library/lists.lists.updatelistitems.aspx

    更新List Item:

    <Batch OnError="Continue" ListVersion="1" 
    ViewName="270C0508-A54F-4387-8AD0-49686D685EB2">
       <Method ID="1" Cmd="Update">
          <Field Name="ID">4<Field>
          <Field Name="Field_Name">Value</Field>
       </Method>
       <Method ID="2" Cmd="Update">
          <Field Name="ID" >6</Field>
          <Field Name="Field_Name">Value</Field>
       </Method>
    </Batch>



    新增List Item:

    <Batch OnError="Continue" ListVersion="1" 
    ViewName="270C0508-A54F-4387-8AD0-49686D685EB2">
       <Method ID="1" Cmd="New">
          <Field Name='ID'>New</Field>
          <Field Name="Title">Value</Field>
          <Field Name="Date_Column">2007-3-25</Field>
          <Field Name="Date_Time_Column">
             2006-1-11T09:15:30Z</Field>
       </Method>
    </Batch>



    我在新增的时候老报错:

    <ErrorCode>0x81020014</ErrorCode>

    <ErrorText>One or more field types are not installed properly. Go to the list settings page to delete these fields.</ErrorText>




    后来找到一篇文章:
    http://www.cnblogs.com/awpatp/archive/2010/05/18/1738671.html

    看了才明白原来是引用field的时候要用internal name

    我把自定义List默认的Title属性更改了名称,但是internal name仍然是Title,所以一直不能新增成功。

    大家可以看看上面的那篇文章,写的很详细,我在这里就不复制了。


  • 相关阅读:
    mysql binlog日志
    安装源码包(这里主要写了redis,其他都一样的操作)
    hashMap异常:java.util.ConcurrentModificationException
    谷歌post url “net::ERR_INCOMPLETE_CHUNKED_ENCODING”
    itextpdf结合jfinal模版生成pdf文件
    springboot项目jar冲突问题解决
    map遍历
    el和jstl表达式问题==0的问题
    fastJSON 解析转换包含下划线属性的问题
    CentOS 7 64位
  • 原文地址:https://www.cnblogs.com/bmib/p/1977159.html
Copyright © 2020-2023  润新知