none
Meeting invitation has incorrect format RRS feed

  • Question

  • Hi,

    I use EWS to create new appointment and send invitation.

    I fill appointment like:

    appointment.Body = new MessageBody(BodyType.Text, mybody);

    And call to send invitation:
    appointment.Save(SendInvitationsMode.SendToAllAndSaveCopy);

    If mybody starts with letter in lower case - it works fine.
    But if mybody starts with letter in upper case I receive invitation with body in incorrect format.

    

    In this case mybody is
    Letter1

    Letter2

    Letter3.

    How can I fix it?

    Thanks.

    Wednesday, March 5, 2014 2:21 PM

All replies

  • You might want to enable tracing http://msdn.microsoft.com/en-us/library/office/dd633676(v=exchg.80).aspx and then post a trace of one of the requests that is failing.

    Cheers
    Glen

    Thursday, March 6, 2014 4:18 AM
  • Hi,

    EwsRequest:

    <Trace Tag="EwsRequest" Tid="7" Time="2014-03-20 14:32:39Z" Version="15.00.0516.014">
      <?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="Exchange2010" />
        </soap:Header>
        <soap:Body>
          <m:CreateItem SendMeetingInvitations="SendToAllAndSaveCopy">
            <m:Items>
              <t:CalendarItem>
                <t:Subject> - Test Invitation</t:Subject>
                <t:Body BodyType="Text">Letter1

    Letter2

    Letter3

    </t:Body>
                <t:Importance>Normal</t:Importance>
                <t:Start>2014-04-30T09:30:00.000Z</t:Start>
                <t:End>2014-04-30T10:00:00.000Z</t:End>
                <t:IsAllDayEvent>false</t:IsAllDayEvent>
                <t:Location>
                </t:Location>
                <t:RequiredAttendees>
                  <t:Attendee>
                    <t:Mailbox>
                      <t:Name>Igor Leshin</t:Name>
                      <t:EmailAddress>myemail@mysite.com</t:EmailAddress>
                    </t:Mailbox>
                  </t:Attendee>
                </t:RequiredAttendees>
                <t:StartTimeZone Name="(UTC+02:00) Helsinki, Kyiv, Riga, Sofia, Tallinn, Vilnius" Id="FLE Standard Time">
                  <t:Periods>
                    <t:Period Bias="-P0DT2H0M0.0S" Name="Standard" Id="Std" />
                    <t:Period Bias="-P0DT3H0M0.0S" Name="Daylight" Id="Dlt/1" />
                  </t:Periods>
                  <t:TransitionsGroups>
                    <t:TransitionsGroup Id="0">
                      <t:RecurringDayTransition>
                        <t:To Kind="Period">Dlt/1</t:To>
                        <t:TimeOffset>P0DT3H0M0.0S</t:TimeOffset>
                        <t:Month>3</t:Month>
                        <t:DayOfWeek>Sunday</t:DayOfWeek>
                        <t:Occurrence>-1</t:Occurrence>
                      </t:RecurringDayTransition>
                      <t:RecurringDayTransition>
                        <t:To Kind="Period">Std</t:To>
                        <t:TimeOffset>P0DT4H0M0.0S</t:TimeOffset>
                        <t:Month>10</t:Month>
                        <t:DayOfWeek>Sunday</t:DayOfWeek>
                        <t:Occurrence>-1</t:Occurrence>
                      </t:RecurringDayTransition>
                    </t:TransitionsGroup>
                  </t:TransitionsGroups>
                  <t:Transitions>
                    <t:Transition>
                      <t:To Kind="Group">0</t:To>
                    </t:Transition>
                  </t:Transitions>
                </t:StartTimeZone>
                <t:EndTimeZone Name="(UTC+02:00) Helsinki, Kyiv, Riga, Sofia, Tallinn, Vilnius" Id="FLE Standard Time">
                  <t:Periods>
                    <t:Period Bias="-P0DT2H0M0.0S" Name="Standard" Id="Std" />
                    <t:Period Bias="-P0DT3H0M0.0S" Name="Daylight" Id="Dlt/1" />
                  </t:Periods>
                  <t:TransitionsGroups>
                    <t:TransitionsGroup Id="0">
                      <t:RecurringDayTransition>
                        <t:To Kind="Period">Dlt/1</t:To>
                        <t:TimeOffset>P0DT3H0M0.0S</t:TimeOffset>
                        <t:Month>3</t:Month>
                        <t:DayOfWeek>Sunday</t:DayOfWeek>
                        <t:Occurrence>-1</t:Occurrence>
                      </t:RecurringDayTransition>
                      <t:RecurringDayTransition>
                        <t:To Kind="Period">Std</t:To>
                        <t:TimeOffset>P0DT4H0M0.0S</t:TimeOffset>
                        <t:Month>10</t:Month>
                        <t:DayOfWeek>Sunday</t:DayOfWeek>
                        <t:Occurrence>-1</t:Occurrence>
                      </t:RecurringDayTransition>
                    </t:TransitionsGroup>
                  </t:TransitionsGroups>
                  <t:Transitions>
                    <t:Transition>
                      <t:To Kind="Group">0</t:To>
                    </t:Transition>
                  </t:Transitions>
                </t:EndTimeZone>
              </t:CalendarItem>
            </m:Items>
          </m:CreateItem>
        </soap:Body>
      </soap:Envelope>
    </Trace>




    EwsResponse:

    <Trace Tag="EwsResponse" Tid="7" Time="2014-03-20 14:33:24Z" Version="15.00.0516.014">
      <?xml version="1.0" encoding="utf-8"?>
      <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
        <s:Header>
          <h:ServerVersionInfo MajorVersion="15" MinorVersion="0" MajorBuildNumber="898" MinorBuildNumber="23" Version="V2_10" xmlns:h="http://schemas.microsoft.com/exchange/services/2006/types" xmlns="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 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
          <m:CreateItemResponse xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types">
            <m:ResponseMessages>
              <m:CreateItemResponseMessage ResponseClass="Success">
                <m:ResponseCode>NoError</m:ResponseCode>
                <m:Items>
                  <t:CalendarItem>
                    <t:ItemId Id="AAMkADkwYmU1NjZhLTllYjYtNGUyOS1iMjBlLTk4MjIxMTE1MWM1YwBGAAAAAACBeWgAcpM2TLwjBkNw+gO5BwBpKfPH9I3AT4T6/95c6E1MAAAAgWDQAABA9ZWFirItQJ6OXckK6ONTAAClp4TSAAA=" ChangeKey="DwAAABYAAABA9ZWFirItQJ6OXckK6ONTAAClsE6R" />
                  </t:CalendarItem>
                </m:Items>
              </m:CreateItemResponseMessage>
            </m:ResponseMessages>
          </m:CreateItemResponse>
        </s:Body>
      </s:Envelope>
    </Trace>

    Seems it looks correct.
    No?

    Thanks.

    Thursday, March 20, 2014 2:49 PM
  • So it looks like you running this against Office365 ?

    It looks like there are a few bugs in 2013 SP1 that are affecting appointments and tasks particular around the conversion of Text to RTF and HTML to RTF.  eg other posts

    http://social.technet.microsoft.com/Forums/exchange/en-US/4a847081-bc09-4d10-9a00-02c6de2f7548/notice-field-from-a-task-in-owa-exchange-2013-sp1-and-outlook-2013-are-not-the-synchronizend?forum=exchangesvrdevelopment

    and

    http://social.technet.microsoft.com/Forums/exchange/en-US/88e78151-088b-4a2f-9a4d-003be7323ae9/e2013ewsxmlewstool-calendar-item-body-not-visible-in-outlook?forum=exchangesvrdevelopment

    (both of these issues I can reproduce)

    If this problem is something you can reproduce consistently then the best thing to do is if you can log a problem with Microsoft support .

    Cheers
    Glen

    Friday, March 21, 2014 5:14 AM
  • Hi Glen,

    Thank you a lot! :)

    Friday, March 21, 2014 11:22 AM
  • Hi,

    That's a known issue in 2013 SP1. I do have the same issue and reported to Microsoft :)


    Regards, Riaz Javed Butt Consultant Microsoft Professional Services MCITP, MCITP (Exchange), MCSE: Messaging, MCITP Office 365

    Friday, March 21, 2014 12:26 PM