更新日历项目 [英] Updation of calendar items

查看:109
本文介绍了更新日历项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我正在尝试更新日历项目的主题,发送到服务器的SOAP请求如下,


Hi,

i am trying to update the subject of a calendar item and the SOAP request sent to the server is as below,

<UpdateItem SendMeetingInvitationsOrCancellations="SendToAllAndSaveCopy" ConflictResolution="AlwaysOverwrite" xmlns="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:typ="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <ItemChanges>
    <typ:ItemChange>
      <typ:ItemId Id="AAMkADc5MmI0YWEAA=" ChangeKey="DwAAABYAAADPkYbjaDMFQa9cRtMP3qQqAAQvQkq3"/>
      <typ:Updates>
        <typ:SetItemField>
          <typ:Path FieldURI="item:Subject" xsi:type="typ:PathToUnindexedFieldType"/>
          <typ:CalendarItem>
            <typ:Subject>Update Subject</typ:Subject>
          </typ:CalendarItem>
        </typ:SetItemField>
      </typ:Updates>
    </typ:ItemChange>
  </ItemChanges>
</UpdateItem>


注意:itemId已被截断以提高可读性

但我收到内部服务器错误(500)作为响应。当我们检查交换服务器时,我们能够在事件记录器中看到以下错误,

事件类型:错误
事件来源:MSExchange Common
事件类别:General
日期:11/10/2009
时间:11:22:06 AM用户:N / A
电脑:ABC
说明:
Watson报告将发送到dw20.exe进程ID:4868,参数:E12IIS,c-RTL-AMD64,08.02.0176.002,WS,MEServices,MESCDShape.TryGetPropertyInformation,System.ArgumentNullException, c1b8,08.02.0176.002。 ErrorReportingEnabled:False

有关详细信息,请参阅http://go.microsoft.com/fwlink/events.asp上的"帮助和支持中心"。

事件类型:错误<事件来源:MSExchange Web Services
事件类别:核心
事件ID:3
日期:11/10/2009
时间:上午11:22:06
用户:不适用
计算机:ABC
说明:
发生内部服务器错误。未处理的异常是:System.Web.Services.Protocols.SoapException:服务器无法处理请求。 ---> System.ArgumentNullException:Value不能为null。
参数名称:key
at System.ThrowHelper.ThrowArgumentNullException(ExceptionArgument argument)
at System.Collections.Generic.Dictionary`2.FindEntry(TKey key )在System.Collections.Generic.Dictionary`2.TryGetValue(TKey key,TValue& value)
在Microsoft.Exchange.Services.Core.DataConverter.Shape.TryGetPropertyInformation(Shape shape,PropertyPath propertyPath, PropertyInformation& propertyInformation)
在Microsoft.Exchange.Services.Core.DataConverter.Shape.TryGetPropertyInformation(PropertyPath propertyPath,PropertyInformation& propertyInformation)
在Microsoft.Exchange.Services.Core.DataConverter.UpdatePropertyList.CreatePropertyList()
在Microsoft.Exchange.Services.Core.DataConverter.XsoDataConverter.UpdateProperties(StoreObject storeObject,PropertyUpdate [] propertyUpdates)
在Microsoft.Exchange.Services.Core.ServiceCommandBase.UpdatePr operties(StoreObject storeObject,PropertyUpdate [] propertyUpdates)
在Microsoft.Exchange.Services.Core.UpdateItem.UpdateItemFromXml(ItemChange itemChange,ServiceError&警告)
在Microsoft.Exchange.Services.Core.UpdateItem.UpdateItemFromRequest(Int32 itemIndex)
在Microsoft.Exchange.Services.Core.ExceptionHandler`1.ExecuteInLoop(CreateServiceResult createServiceResult,ServiceResult`1 []& ; serviceResults)
在Microsoft.Exchange.Services.Core.UpdateItem.Execute(BaseRequest request)
在Microsoft.Exchange.Services.Core.ServiceCommandBase.InternalExecute(BaseRequest request)
在Microsoft。 Exchange.Services.Core.Types.BaseRequest。<> c__DisplayClass1。<执行> b__0()
在Microsoft.Exchange.Common.IL.ILUtil.DoTryFilterCatch(TryDelegate tryDelegate,FilterDelegate filterDelegate,CatchDelegate catchDelegate)< Microsoft.Exchange.Diagnostics.ExWatson.SendReportOnUnhandledException(MethodDelegate methodDelegate,IsExceptionInteresting exceptionInteresting,Boolean terminateing)
在Microsoft.Exchange.Services.Core.ServiceDiagnostics.SendWatsonReportOnUnhandledException(Met) hodDelegate methodDelegate)
在Microsoft.Exchange.Services.Core.Types.BaseRequest.Execute(CallContext callContext)
在Microsoft.Exchange.Services.ExchangeService.UpdateItem(UpdateItemRequest request)
---内部异常堆栈跟踪结束---

有人可以告诉我您是否遇到类似错误以及如何绕过它。

谢谢,
Vivek

note: The itemId has been truncated to improve readability

But i get an internal server error(500) as response. When we check the exchange server, we were able to see the below error in event logger,

Event Type:    Error
Event Source:    MSExchange Common
Event Category:    General
Event ID:    4999
Date:        11/10/2009
Time:        11:22:06 AM
User:        N/A
Computer:    ABC
Description:
Watson report about to be sent to dw20.exe for process id: 4868, with parameters: E12IIS, c-RTL-AMD64, 08.02.0176.002, WS, M.E.Services, M.E.S.C.D.Shape.TryGetPropertyInformation, System.ArgumentNullException, c1b8, 08.02.0176.002.  ErrorReportingEnabled: False

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

Event Type:    Error
Event Source:    MSExchange Web Services
Event Category:    Core
Event ID:    3
Date:        11/10/2009
Time:        11:22:06 AM
User:        N/A
Computer:    ABC
Description:
An internal server error occurred. The unhandled exception was: System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.ArgumentNullException: Value cannot be null.
Parameter name: key
   at System.ThrowHelper.ThrowArgumentNullException(ExceptionArgument argument)
   at System.Collections.Generic.Dictionary`2.FindEntry(TKey key)
   at System.Collections.Generic.Dictionary`2.TryGetValue(TKey key, TValue& value)
   at Microsoft.Exchange.Services.Core.DataConverter.Shape.TryGetPropertyInformation(Shape shape, PropertyPath propertyPath, PropertyInformation& propertyInformation)
   at Microsoft.Exchange.Services.Core.DataConverter.Shape.TryGetPropertyInformation(PropertyPath propertyPath, PropertyInformation& propertyInformation)
   at Microsoft.Exchange.Services.Core.DataConverter.UpdatePropertyList.CreatePropertyList()
   at Microsoft.Exchange.Services.Core.DataConverter.XsoDataConverter.UpdateProperties(StoreObject storeObject, PropertyUpdate[] propertyUpdates)
   at Microsoft.Exchange.Services.Core.ServiceCommandBase.UpdateProperties(StoreObject storeObject, PropertyUpdate[] propertyUpdates)
   at Microsoft.Exchange.Services.Core.UpdateItem.UpdateItemFromXml(ItemChange itemChange, ServiceError& warning)
   at Microsoft.Exchange.Services.Core.UpdateItem.UpdateItemFromRequest(Int32 itemIndex)
   at Microsoft.Exchange.Services.Core.ExceptionHandler`1.ExecuteInLoop(CreateServiceResult createServiceResult, ServiceResult`1[]& serviceResults)
   at Microsoft.Exchange.Services.Core.UpdateItem.Execute(BaseRequest request)
   at Microsoft.Exchange.Services.Core.ServiceCommandBase.InternalExecute(BaseRequest request)
   at Microsoft.Exchange.Services.Core.Types.BaseRequest.<>c__DisplayClass1.<Execute>b__0()
   at Microsoft.Exchange.Common.IL.ILUtil.DoTryFilterCatch(TryDelegate tryDelegate, FilterDelegate filterDelegate, CatchDelegate catchDelegate)
   at Microsoft.Exchange.Diagnostics.ExWatson.SendReportOnUnhandledException(MethodDelegate methodDelegate, IsExceptionInteresting exceptionInteresting, Boolean terminating)
   at Microsoft.Exchange.Services.Core.ServiceDiagnostics.SendWatsonReportOnUnhandledException(MethodDelegate methodDelegate)
   at Microsoft.Exchange.Services.Core.Types.BaseRequest.Execute(CallContext callContext)
   at Microsoft.Exchange.Services.ExchangeService.UpdateItem(UpdateItemRequest request)
   --- End of inner exception stack trace ---

Could someone tell me if you have encountered similar error and how to get around it.

Thanks,
Vivek

推荐答案

你好Vivek,

我遇到了完全一样的错误。几个月前你写这个问题时,我想知道你是否找到了解决方案?

最好的问候,

Nils
Hi Vivek,

I'm experiencing exactly the same error. As you wrote this question a few months ago, I was wondering whether you found a solution to this?

Best regards,

Nils


这篇关于更新日历项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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