EWS - Create a message with extended property return internal server error RRS feed

  • Question

  • I want to try to create a message with a mime content. and I add extended property tag so the message not flagged as a draft. This the example xml request

    <?xml version="1.0"?>
      <soap:Envelope xmlns:soap="" xmlns:t="" xmlns:xsi="" xmlns:xsd="">
            <t:RequestServerVersion Version="Exchange2013_SP1"/>
            <CreateItem xmlns="" MessageDisposition="SaveOnly">
                    <t:FolderId Id="AAMkAGE1YTU3MjkyLWFmMjItNGYyZC05Y2ZiLTIwMWY4MjJhMTVlNAA`enter code here`uAAAAAAChtMCk52J3RLzcG5WcyzUkAQCsm0+9jDPcQakVSrf3fxOXAAAAAAEMAAA="/>
                        #-- Mime content goes here --#
                            <t:ExtendedFieldURI PropertyTag="3591" PropertyType="Integer">

    after I submit, I got the internal server error.

    <?xml version="1.0" encoding="utf-8"?>
    <s:Envelope xmlns:s="">
            <Action s:mustUnderstand="1" xmlns="">*
                <faultcode xmlns:a="">
                <faultstring xml:lang="en-US">
                    An internal server error occurred. The operation failed.    
                    <e:ResponseCode xmlns:e="">
                    <e:Message xmlns:e="">
                        An internal server error occurred. The operation failed.

    When I try to remove the extended property tag it works fine. but the message flagged as a draft.

    Please advice me how to send the xml request properly.

    Wednesday, February 8, 2017 3:18 AM

All replies

  • I would guess that its happening because changing the flag on that item once you upload it is resulting is not a valid request at the server level. But without seeing the actual MimeContent it hard for anybody to say either way.


    Thursday, February 9, 2017 3:18 AM
  • I try to save it first then update the item, it still return internal server error.
    Monday, February 13, 2017 3:26 AM
  • As I said its probably because of the Item itself but without the MimeContent it pretty hard to provide any other suggestions

    Tuesday, February 14, 2017 3:42 AM