系统升级后,System.Collections.Generic.KeyNotFoundException列出项目 [英] System.Collections.Generic.KeyNotFoundException on a lists items after system upgrade

查看:565
本文介绍了系统升级后,System.Collections.Generic.KeyNotFoundException列出项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们最近更新了sharepoint 2013服务器场,似乎一切正常,但是其中一个列表无法运行工作流程活动分配任务流程".当我通过URL查询列表时,它将返回列表信息 但是当我尝试查询单个项目时,我得到System.Collections.Generic.KeyNotFoundException给定的键在词典中不存在.

We recently updated our sharepoint 2013 farm and everything seemed to be going well, but one of the lists was unable to run workflow activities "assign a task process". When I query the list through the URL it returns list information but when I try to query a individual item I get System.Collections.Generic.KeyNotFoundException "the given key was not present in the dictionary.

查询返回错误的示例:

Example of  query returning error : http://sitename.com/_vti_bin/client.svc/web/lists/getbyid(guid'57866BBC-9E66-4B88-8D96-DA6252F13EF8')/Items(3507

如果我放下/Items(3507),它的确会返回列表本身的查询,因此我知道列表的向导是正确的.

If I drop the /Items(3507) it does return a query of the list itself so I know the list guid is correct.

我可以在门户网站上查询其他所有列表项,而不会出现任何问题.

I am able to query every other lists items on the portal without issue.

谢谢

推荐答案

请在下面进行查询,以返回列表中的所有项目,并检查ID是否等于"3507":

Please do a query with below return the all items from list and check if there is a ID equals '3507':

http://sitename.com/_vti_bin/client.svc/web/lists/getbyid(guid'57866BBC-9E66-4B88-8D96-DA6252F13EF8')/项目

http://sitename.com/_vti_bin/client.svc/web/lists/getbyid(guid'57866BBC-9E66-4B88-8D96-DA6252F13EF8')/Items

并使用"Ctrl + F"搜索ID;并输入3507进行搜索以确认Items Collection中的ID有效.

And search the ID with "Ctrl + F" and input 3507 for a search to confirm the Id in the Items Collection is valid.

如果有任何更新,请回发信息.

Please post back with the information if there is anything updates. 

谢谢

最好的问候


这篇关于系统升级后,System.Collections.Generic.KeyNotFoundException列出项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆