none
Unable to add/update contacts via EWS - ErrorInternalServerError RRS feed

  • Question

  • We've implemented a service (c#, EWS Managed API 2.2) which is syncing contacts from a crm application to Exchange Server (2013_SP1). This service is running on a lot of machines without any problem.

    But one of the services throws an exception when trying to add/update a contact in the personal address book of a user mailbox.

    The request looks like this:

    <Trace Tag="EwsRequest" Tid="10" Time="2015-11-17 16:58:24Z" Version="15.00.0913.015">
      <?xml version="1.0" encoding="utf-8"?>
      <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
        <soap:Header>
          <t:RequestServerVersion Version="Exchange2013_SP1" />
        </soap:Header>
        <soap:Body>
          <m:UpdateItem MessageDisposition="SaveOnly" ConflictResolution="AutoResolve">
            <m:ItemChanges>
              <t:ItemChange>
                <t:ItemId Id="AAMkADVmYzQ0MGI4LWY1YTEtNGZkYS1hZWY3LTcyNTgxMzM2ZTBiNQBGAAAAAADwSIgPBaKcRJKzDFZNoWvLBwDbF70RMfgITIMztSRIszRdAAAAAAEOAADbF70RMfgITIMztSRIszRdAAAAy5ncAAA=" ChangeKey="EQAAABYAAADbF70RMfgITIMztSRIszRdAAAAy5/H" />
                <t:Updates>
                  <t:SetItemField>
                    <t:FieldURI FieldURI="contacts:GivenName" />
                    <t:Contact>
                      <t:GivenName>new name</t:GivenName>
                    </t:Contact>
                  </t:SetItemField>
                </t:Updates>
              </t:ItemChange>
            </m:ItemChanges>
          </m:UpdateItem>
        </soap:Body>
      </soap:Envelope>
    </Trace>

    and the response is this:

    <Trace Tag="EwsResponse" Tid="10" Time="2015-11-17 16:58:24Z" Version="15.00.0913.015">
      <?xml version="1.0" encoding="utf-8"?>
      <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
        <s:Body>
          <s:Fault>
            <faultcode xmlns:a="http://schemas.microsoft.com/exchange/services/2006/types">a:ErrorInternalServerError</faultcode>
            <faultstring xml:lang="de-DE">An internal server error occurred. The operation failed.</faultstring>
            <detail>
              <e:ResponseCode xmlns:e="http://schemas.microsoft.com/exchange/services/2006/errors">ErrorInternalServerError</e:ResponseCode>
              <e:Message xmlns:e="http://schemas.microsoft.com/exchange/services/2006/errors">An internal server error occurred. The operation failed.</e:Message>
            </detail>
          </s:Fault>
        </s:Body>
      </s:Envelope>
    </Trace>

    I can modify tasks in the same mailbox without any problems and via OWA it is also no problem to edit the contact. Any ideas?

    Would be nice to get fast feedback ;-)


    Tuesday, November 17, 2015 5:02 PM

Answers

  • Hi Glen,

    thanks for you offer to help me here.

    The problem solved isself over night. Today all works fine and the exchange admin told me he did not change anything.

    This is not the best solution - cause I don't know what the problem was - but better than nothing.

    Cheers 

    Michael

    • Marked as answer by MicMartin Wednesday, November 18, 2015 2:42 PM
    Wednesday, November 18, 2015 2:42 PM

All replies

  • Can you update other properties on the contact ? What rollup version is running on the server that is working vs the Service that isn't. The other thing to do would be look at the EWS log on the CAS server to see if there is anything additional logged for the request that is failing.

    Cheers
    Glen

    Wednesday, November 18, 2015 3:46 AM
  • Hi Glen,

    thanks for you offer to help me here.

    The problem solved isself over night. Today all works fine and the exchange admin told me he did not change anything.

    This is not the best solution - cause I don't know what the problem was - but better than nothing.

    Cheers 

    Michael

    • Marked as answer by MicMartin Wednesday, November 18, 2015 2:42 PM
    Wednesday, November 18, 2015 2:42 PM