1,Error :Invalid data has been used to update the list item. The field you are trying to update may be read only.

    SharePoint: 使用客户端模型往List添加数据时遇到的问题

原因: list 的ID属性是不能赋值的 ,newItem["ID"] =“” 这样是不允许的。

 

2.This field cannot be updated. 

 

原因: 类似上个问题但是错误不一样, 最后删掉FileRef 和 FileDirRef 的赋值就OK了。

相关文章:

  • 2021-06-29
  • 2021-10-31
  • 2021-08-14
  • 2021-08-18
  • 2022-12-23
  • 2022-01-09
  • 2021-12-25
  • 2022-01-24
猜你喜欢
  • 2022-12-23
  • 2021-07-25
  • 2022-12-23
  • 2022-01-17
  • 2021-12-24
  • 2021-11-23
  • 2021-07-28
相关资源
相似解决方案