none
Showstopper: Problem with EWS request UploadItems in Office365/ExchangeOnline: An internal server error occurred RRS feed

  • Question

  • Hi guys,

    we use EWS requests ExportItems / UploadItems.
    Until recent time (2-3 days ago) all was OK but now we started getting EWS response on UploadItems:

    <m:UploadItemsResponseMessage xsi:type="m:UploadItemsResponseMessageType" ResponseClass="Error">
      <m:MessageText>An internal server error occurred. The operation failed., Unable to get the item's parent ID.</m:MessageText>
      <m:ResponseCode>ErrorInternalServerError</m:ResponseCode>....

    I created test app which just calls ExportItems request and at once UploadItems with received data from ExportItems.
    Here is my logged requests / responses (IDs are shortened with ...)

    ExportItems request:
    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages"
    xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types">
    <soap:Header>
      <t:RequestServerVersion Version="Exchange2010_SP1"/>
      <t:ExchangeImpersonation>
        <t:ConnectingSID><t:PrimarySmtpAddress>olx@olx365test.onmicrosoft.com</t:PrimarySmtpAddress></t:ConnectingSID>
      </t:ExchangeImpersonation>
    </soap:Header>
    <soap:Body>
      <m:ExportItems>
        <m:ItemIds><t:ItemId Id="AQMkA...."/></m:ItemIds>
      </m:ExportItems>
    </soap:Body>
    </soap:Envelope>

    ExportItems response:
    <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
    <s:Header>
      <h:ServerVersionInfo MajorVersion="15" MinorVersion="20" MajorBuildNumber="1059" MinorBuildNumber="24" Version="V2018_01_08"
    xmlns:h="http://schemas.microsoft.com/exchange/services/2006/types"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
    </s:Header>
    <s:Body>
      <m:ExportItemsResponse
    xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types">
        <m:ResponseMessages>
          <m:ExportItemsResponseMessage ResponseClass="Success">
            <m:ResponseCode>NoError</m:ResponseCode>
            <m:ItemId Id="AQMkA..." ChangeKey="CQAAAA=="/>
            <m:Data>AQAAAAg...</m:Data>
          </m:ExportItemsResponseMessage>
        </m:ResponseMessages>
      </m:ExportItemsResponse></s:Body></s:Envelope>

    UploadItems request:
    <soap:Envelope
    xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages"
    xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types">
    <soap:Header>
      <t:RequestServerVersion Version="Exchange2010_SP1"/>
      <t:ExchangeImpersonation>
        <t:ConnectingSID><t:PrimarySmtpAddress>olx@olx365test.onmicrosoft.com</t:PrimarySmtpAddress></t:ConnectingSID>
      </t:ExchangeImpersonation>
    </soap:Header>
    <soap:Body>
      <m:UploadItems>
        <m:Items>
          <t:Item CreateAction="Update" IsAssociated="false">
            <t:ParentFolderId Id="AQbGR..."/>
            <t:ItemId Id="AQMkA..."/>
            <t:Data>AQAAAAg...</t:Data>
          </t:Item>
        </m:Items>
      </m:UploadItems>
    </soap:Body>
    </soap:Envelope>

    UploadItems response:
    <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
    <s:Header>
      <h:ServerVersionInfo MajorVersion="15" MinorVersion="20" MajorBuildNumber="1059" MinorBuildNumber="24" Version="V2018_01_08"
    xmlns:h="http://schemas.microsoft.com/exchange/services/2006/types"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
    </s:Header>
    <s:Body>
      <m:UploadItemsResponse
    xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types">
        <m:ResponseMessages>
          <m:UploadItemsResponseMessage xsi:type="m:UploadItemsResponseMessageType" ResponseClass="Error">
            <m:MessageText>An internal server error occurred. The operation failed., Unable to get the item's parent ID.</m:MessageText>
            <m:ResponseCode>ErrorInternalServerError</m:ResponseCode>
            <m:DescriptiveLinkKey>0</m:DescriptiveLinkKey>
          </m:UploadItemsResponseMessage>
        </m:ResponseMessages>
      </m:UploadItemsResponse>
    </s:Body>
    </s:Envelope>

    so questions are
    1) what does it mean, what was changed in Office365/ExchangeOnline?
    2) how to workaround?

    Any help highly appreciated.
    Wednesday, August 22, 2018 6:17 AM