电源外壳错误 [英] Power Shell Error
问题描述
Hi Team,
我收到以下错误: -
I am getting below error :-
异常调用" GetListItems"用"7"表示"7"。参数:"抛出类型'Microsoft.SharePoint.SoapServer.SoapServerException'的异常。
重点是我为列表调用相同的代码值为以下代码: -
The important point is that i am calling the same code for the list values the below code :-
$ uri =" https://<> / sites /<> /<> /_vti_bin/lists.asmx?WSDL\" ;
$uri = "https://<>/sites/<>/<>/_vti_bin/lists.asmx?WSDL"
foreach($ listName中的$ list){
foreach ($list in $listName) {
$ list1 = $ service.GetListItems($ list,"",$ query,$ viewFields,$ rowLimit,$ queryOptions,"")
$list1 = $service.GetListItems($list, "", $query, $viewFields, $rowLimit, $queryOptions, "")
}
推荐答案
Hi Mohit,
Hi Mohit,
在PowerShell脚本中上面,我建议首先检查
In the PowerShell script above, I would suggest to firstly check if
服务是否有效,你可以直接在PowerShell ISE中检查这个:
service is valid, you could check this in PowerShell ISE directly like this:
如果显示上述数据,则表示已调用Web服务实例正确,然后请仔细检查传入服务的参数是否有效,因为你说一个字段发生了错误,你可以检查这个
字段是否有一些特殊。
If it shows data like above, this means web service instance has been called correctly, then please double check the parameter passed into the service is valid as you said the error happening for one field, you could check if there are some special for this field.
谢谢
最好的问候
这篇关于电源外壳错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!