Exchange Web Services pull subscription + GetEvents often slow and gets stuck

Hi guys,
I have a problem with GetEvents that I find strange and very worrying.
Our client creates a pull subscription (either a new one, or by specifying and old watermark in case of subscription timeout) and every few minutes calls GetEvents to receive changes to
the folders in the subscription. Since this is a mobile client, there is a possibility that the client may be inactive for several hours or days between GetEvents. For the most part, this works; clients synchronize the contents of the folders.
One problem I have is GetEvents does not return the maximum number of events per call, making it necessary to call GetEvents many times until all the events are received.
From time to time, users report that their client stopped syncing. Looking at the logs, it seems GetEvents returns (in what seems like an infinite loop) that only one item has changed and
that there are more events pending. I've seen logs with more than 2000 GetEvents called with this pattern.When debugging, the item seems to be related to junk mail rules, but the users report they have not made modifications to their junk
mail rules. What could be the cause of this and how can I prevent it?
We also recently saw a problem where GetEvents was stuck with StatusEvent and indicating that it has more events. This is normally when the Exchange has not filled the events queue. But
this happened across hours. GetEvents just didn't want to fill the event queue.
Thanks,
Leo

Hello,
In order to solve your issue as soon as possible, I recommend you post your issue to exchange server development forum.
http://social.technet.microsoft.com/Forums/en-US/home?forum=exchangesvrdevelopment
Cara Chen
TechNet Community Support

Similar Messages

  • Exchange 2007 Web Services pull subscription

    I'm working with Exchange Web Services to try and pull subscription data to see if an email(s) were successfully sent or not.  I noticed through the service you can set the IsDeliveryReceiptRequested to True and it will send a relay back to the inbox
    if its not able to send the email.  Is that the proper way to go about this or is there another route that I could take using EWS?
    Thanks...

    Hi,
    If you use pull subscriptions through Exchange web services in Exchange 2007, we can refer to the following article:
    http://msdn.microsoft.com/en-us/library/aa579617(v=exchg.80).aspx
    If there is any question about it, I suggest we can ask a question in the following forum:
    https://social.technet.microsoft.com/Forums/exchange/en-US/home?forum=exchangesvrdevelopment
    Thanks,
    Winnie Liang
    TechNet Community Support

  • A web service that returns a xml file and gets another xml file as input?

    Hi,
    I want to create a web service which gets an xml document as input then returns again an xml document.How can I create this kind of web service?
    Is this kind of implementation is possible?
    public Document mywebservice(Document input){
    Document d;
    return d;
    or do I have to use serialization processes which I don't know very much.
    I am waiting for your help.Thank you...

    If you want to deal directly with the Document and not want the SOAP engine to serialize/deserialize the XML into Java objects, then you can easliy implement this using Axis. Look at the Axis documentation (http://ws.apache.org/axis/java/user-guide.html#ServiceStylesRPCDocumentWrappedAndMessage) under the heading "Message Services". One of the provided API methods that Axis provides is in the form you want: public Document method(Document body). Hope that helps. As for how to implement the service using Axis, that is beyond the scope of this forum. Check the Axis docs for more help on that.

  • Flash player loading files very slow and getting stuck after 100%

    Hello all,
    I have an issue with my development and need your help and feedback for the same:
    I  have developed various E-Learning courses which was published some in  Flash Player 9 and some with version 10. Since Flash Player 10.1 was  introduced all my developed courses was running fine. But it's found  that user who are using Flash Player 10.1.85.3 is facing issue with file  loading and playing the courses. Some time Flash player fails to load the  chapters and files after preloading 100%, and sometime it's very slow in  loading performance. I like to intimate that all these was not happening  with Flash player version 10. Please give me any idea where I am going  wrong. Is this kind of issue possible? If anyone faced the same experience. Please give me your valuable feedback.
    Please  Note: I have faced an scenario that, suppose a user is stuck with loading  the course, and after getting stuck he clear his browser cache, and  immediately after that the same player start working fine. And loading  the course chapter properly. Need help to get rid of this kind of  situation.
    Thank you
    Amitava D

    Hello all,
    I have an issue with my development and need your help and feedback for the same:
    I  have developed various E-Learning courses which was published some in  Flash Player 9 and some with version 10. Since Flash Player 10.1 was  introduced all my developed courses was running fine. But it's found  that user who are using Flash Player 10.1.85.3 is facing issue with file  loading and playing the courses. Some time Flash player fails to load the  chapters and files after preloading 100%, and sometime it's very slow in  loading performance. I like to intimate that all these was not happening  with Flash player version 10. Please give me any idea where I am going  wrong. Is this kind of issue possible? If anyone faced the same experience. Please give me your valuable feedback.
    Please  Note: I have faced an scenario that, suppose a user is stuck with loading  the course, and after getting stuck he clear his browser cache, and  immediately after that the same player start working fine. And loading  the course chapter properly. Need help to get rid of this kind of  situation.
    Thank you
    Amitava D

  • OS X Server fills out wrong PayloadType for Exchange Web Services

    Hi,
    I've noticed a problem with OS X Server, v 3.0.2, when you configure it to setup a user with a Mac OS X Exchange Web Services (EWS) account.
    There is a drop down to choose between iOS (for Exchange Active Sync) or OS X (for Exchange Web Services).
    If you select EWS and fill out the fields, the generated .mobileconfig file has
    PayloadType com.apple.eas.account
    followed by your EWS settings.
    When you install it on the Mac it also reports it as an iOS setting and does not add the account.
    If you manually edit the mobileconfig file, changing PayloadType to
    com.apple.ews.account
    before trying to load it onto the mac, it accepts the EWS account and you can then see it listed in System Preferences->Internet accounts.
    Cheers,
    faz_uk.

    Hi,
    I've noticed a problem with OS X Server, v 3.0.2, when you configure it to setup a user with a Mac OS X Exchange Web Services (EWS) account.
    There is a drop down to choose between iOS (for Exchange Active Sync) or OS X (for Exchange Web Services).
    If you select EWS and fill out the fields, the generated .mobileconfig file has
    PayloadType com.apple.eas.account
    followed by your EWS settings.
    When you install it on the Mac it also reports it as an iOS setting and does not add the account.
    If you manually edit the mobileconfig file, changing PayloadType to
    com.apple.ews.account
    before trying to load it onto the mac, it accepts the EWS account and you can then see it listed in System Preferences->Internet accounts.
    Cheers,
    faz_uk.

  • Slow attachment upload with Exchange Web Services (Outlook 2011 for Mac?)

    We're experiencing slow attachment upload with Exchange Web Services versus MAPI, OWA, and Outlook Anywhere.  I'm not totally certain that it is Exchange Web Services or specifically Outlook 2011 for Mac.  I attempted to test with the Mac Mail
    App, but it makes it difficult to tell when the attachment has been uploaded and the file has been sent.  Here's what we're seeing (10mb file):
    MAPI / RPC/HTTPS / OWA: 10-15 seconds upload time
    Exchange Web Services (Outlook 2011 for Mac): 60-90 seconds upload time
    Thoughts? Any idea why we would see such a drastic difference in attachment upload time?  Any way to prove definitively that it is Exchange Web Services vs. Outlook 2011 for Mac?  We've tried it from multiple locations with multiple different machines,
    and although the upload times vary (some locations have more bandwidth etc) the ratios remain similar.

     
    Hi ,
    Does all the user occurred the issue ?
    If only special user, I recommend you do the following steps and test:
    1.Remove and re-add the email account and check if this helps to resolve the issue.
    To remove and add the email accounts:
    Open Outlook > GO to Tools > Accounts > Click on "Minus" symbol to remove and "Plus" to add an Email account.
    2.Creating a new user profile:
    http://support.microsoft.com/kb/2439218/
    3. If the issue persists, rebuild the data base and check the results:
    http://support.microsoft.com/kb/2360509
    You can also post it on Office for MAC forum  to get special support about the difference between Outlook and Outlook for MAC.
    http://www.microsoft.com/mac/support
    Wendy Liu
    TechNet Community Support

  • Entourage for Exchange Web Services Beta

    Anyone have any experience with this? And if you do, have you gotten it to work? Our email people have me testing it out and it connects but doesn't pull any mail or let me send anything.
    Apple Mail works fine, but I have a lot of clients who like to use Entourage for all the scheduling capabilities.
    Thanks!

    http://www.microsoft.com/mac/itpros/entourage-ews.mspx
    says:
    (User must connect to Microsoft Exchange Server 2007 Service Pack 1 with Update Rollup 4 or later. (Caution: If you are using earlier versions of Exchange Server with Entourage, we recommend that you do not install this beta edition of Entourage for Exchange Web Services.)
    One has to wonder if that element is missing in your setup.

  • Mail Connection Failures And EWS (Exchange Web Service) Errors

    Hi,
    I upgraded from Leopard to Snow Leopard on Friday, and was able to set up my Mail, iCal, and Address Book very quickly and easily. Everything has been working great until today, when I experienced an issue with emails with attachments. The company I work for uses Exchange 2007 hosted on Rackspace.
    When sending an email with attachments, I sporadically receive a connection error. This is the same error that I usually get if a server goes offline or I lose my Internet connection - the one where you get the choice to either try again, send later, or use another server to send the email. I will receive this error over and over, and can then send an email with attachments a few minutes later without issue, so it is definitely a sporadic problem. I have not had this issue with emails that did not contain attachments. On at least one occasion, an email with attachments was delivered to the recipient successfully but failed to show up in my Sent Items either in Mail or on the Exchange Server's web mail client.
    Rackspace was unable to diagnose the issue, but they have had several reports of the same problem. I looked in the console and saw several errors logged by Mail, all which appeared to happen around the same times that I had the connection failures for the messages with attachments.
    8/31/09 1:17:00 PM Mail[1764] Error (null) occurred while trying to append messages to outgoing store. Ignoring and proceeding with delivery...
    8/31/09 1:57:06 PM Mail[1764] Error (null) occurred while trying to append messages to outgoing store. Ignoring and proceeding with delivery...
    8/31/09 2:32:14 PM Mail[1764] Error Error Domain=MFEWSErrorDomain Code=56 UserInfo=0x1179aa6f0 "The operation couldn’t be completed. (MFEWSErrorDomain error 56.)" occurred while trying to append messages to outgoing store. Ignoring and proceeding with delivery...
    8/31/09 2:44:21 PM Mail[1764] Error Error Domain=MFEWSErrorDomain Code=56 UserInfo=0x116c0aa40 "The operation couldn’t be completed. (MFEWSErrorDomain error 56.)" occurred while trying to append messages to outgoing store. Ignoring and proceeding with delivery...
    8/31/09 3:19:59 PM Mail[4279] * Assertion failure in -[ComposeBackEnd setAccount:], /SourceCache/Mail/Mail-1075/Compose.subproj/ComposeBackEnd.m:1522
    ComposeBackEnd does not support explicitly setting an account
    0 Message 0x00007fff876aa880 -[MFAssertionHandler _handleFailureWithPreamble:description:arguments:] + 137
    1 Message 0x00007fff876aa7e5 -[MFAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 220
    2 Mail 0x00000001001442ec 0x0 + 4296295148
    3 Foundation 0x00007fff86ab9722 _NSSetObjectValueAndNotify + 258
    4 Mail 0x00000001001428da 0x0 + 4296288474
    5 CoreFoundation 0x00007fff87aae35c _invoking__ + 140
    6 CoreFoundation 0x00007fff87aae22d -[NSInvocation invoke] + 141
    7 Message 0x00007fff874ee0aa -[ThrowingInvocationOperation main] + 31
    8 Message 0x00007fff874ed9ea -[_MFInvocationOperation main] + 275
    9 Foundation 0x00007fff86ac611a -[__NSOperationInternal start] + 673
    10 Foundation 0x00007fff86ac5dd8 ___startOperations_block_invoke2 + 99
    11 libSystem.B.dylib 0x00007fff82515dc7 dispatch_call_block_andrelease + 15
    12 libSystem.B.dylib 0x00007fff824f4341 dispatch_workerthread2 + 231
    13 libSystem.B.dylib 0x00007fff824f3c80 pthreadwqthread + 353
    14 libSystem.B.dylib 0x00007fff824f3b1d start_wqthread + 13
    8/31/09 3:20:36 PM Mail[4279] * Assertion failure in -[ComposeBackEnd setAccount:], /SourceCache/Mail/Mail-1075/Compose.subproj/ComposeBackEnd.m:1522
    ComposeBackEnd does not support explicitly setting an account
    0 Message 0x00007fff876aa880 -[MFAssertionHandler _handleFailureWithPreamble:description:arguments:] + 137
    1 Message 0x00007fff876aa7e5 -[MFAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 220
    2 Mail 0x00000001001442ec 0x0 + 4296295148
    3 Foundation 0x00007fff86ab9722 _NSSetObjectValueAndNotify + 258
    4 Mail 0x00000001001428da 0x0 + 4296288474
    5 CoreFoundation 0x00007fff87aae35c _invoking__ + 140
    6 CoreFoundation 0x00007fff87aae22d -[NSInvocation invoke] + 141
    7 Message 0x00007fff874ee0aa -[ThrowingInvocationOperation main] + 31
    8 Message 0x00007fff874ed9ea -[_MFInvocationOperation main] + 275
    9 Foundation 0x00007fff86ac611a -[__NSOperationInternal start] + 673
    10 Foundation 0x00007fff86ac5dd8 ___startOperations_block_invoke2 + 99
    11 libSystem.B.dylib 0x00007fff82515dc7 dispatch_call_block_andrelease + 15
    12 libSystem.B.dylib 0x00007fff824f4341 dispatch_workerthread2 + 231
    13 libSystem.B.dylib 0x00007fff824f3c80 pthreadwqthread + 353
    14 libSystem.B.dylib 0x00007fff824f3b1d start_wqthread + 13
    8/31/09 3:49:26 PM Mail[4279] * Assertion failure in -[EWSDelivery deliverSynchronously], /SourceCache/Message/Message-1075.2/Delivery.subproj/EWSDelivery.m:84
    EWSDelivery doesn't have an EWSAccount, got (null) instead
    0 Message 0x00007fff876aa880 -[MFAssertionHandler _handleFailureWithPreamble:description:arguments:] + 137
    1 Message 0x00007fff876aa7e5 -[MFAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 220
    2 Message 0x00007fff875f51e9 -[EWSDelivery deliverSynchronously] + 861
    3 Mail 0x000000010007d120 0x0 + 4295479584
    4 Mail 0x000000010007cc38 0x0 + 4295478328
    5 CoreFoundation 0x00007fff87aae35c _invoking__ + 140
    6 CoreFoundation 0x00007fff87aae22d -[NSInvocation invoke] + 141
    7 Message 0x00007fff87506b51 -[MonitoredInvocation invoke] + 214
    8 Message 0x00007fff874ee0aa -[ThrowingInvocationOperation main] + 31
    9 Message 0x00007fff874ed9ea -[_MFInvocationOperation main] + 275
    10 Foundation 0x00007fff86ac611a -[__NSOperationInternal start] + 673
    11 Foundation 0x00007fff86ac5dd8 ___startOperations_block_invoke2 + 99
    12 libSystem.B.dylib 0x00007fff82515dc7 dispatch_call_block_andrelease + 15
    13 libSystem.B.dylib 0x00007fff824f4341 dispatch_workerthread2 + 231
    14 libSystem.B.dylib 0x00007fff824f3c80 pthreadwqthread + 353
    15 libSystem.B.dylib 0x00007fff824f3b1d start_wqthread + 13
    8/31/09 4:00:06 PM Mail[4279] * Assertion failure in -[ComposeBackEnd setAccount:], /SourceCache/Mail/Mail-1075/Compose.subproj/ComposeBackEnd.m:1522
    ComposeBackEnd does not support explicitly setting an account
    0 Message 0x00007fff876aa880 -[MFAssertionHandler _handleFailureWithPreamble:description:arguments:] + 137
    1 Message 0x00007fff876aa7e5 -[MFAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 220
    2 Mail 0x00000001001442ec 0x0 + 4296295148
    3 Foundation 0x00007fff86ab9722 _NSSetObjectValueAndNotify + 258
    4 Mail 0x00000001001428da 0x0 + 4296288474
    5 CoreFoundation 0x00007fff87aae35c _invoking__ + 140
    6 CoreFoundation 0x00007fff87aae22d -[NSInvocation invoke] + 141
    7 Message 0x00007fff874ee0aa -[ThrowingInvocationOperation main] + 31
    8 Message 0x00007fff874ed9ea -[_MFInvocationOperation main] + 275
    9 Foundation 0x00007fff86ac611a -[__NSOperationInternal start] + 673
    10 Foundation 0x00007fff86ac5dd8 ___startOperations_block_invoke2 + 99
    11 libSystem.B.dylib 0x00007fff82515dc7 dispatch_call_block_andrelease + 15
    12 libSystem.B.dylib 0x00007fff824f4341 dispatch_workerthread2 + 231
    13 libSystem.B.dylib 0x00007fff824f3c80 pthreadwqthread + 353
    14 libSystem.B.dylib 0x00007fff824f3b1d start_wqthread + 13
    Just wanted to report this issue in case this is something that other people are experiencing, and to see if Apple's engineers could look in to it. There is a simple workaround, which is to set up a regular SMTP server as the outgoing mail server for the Exchange account, and to use this instead of the outgoing Exchange server set up by Snow Leopard.
    Thanks,
    - max

    Hi MangeshDD,
    Some other information for you:
    Understanding Exchange Web Services Virtual Directories
    If you still have other confused points, please feel free let us know.
    Regards!
    Gavin
    TechNet Community Support

  • Accessing Microsoft Exchange Web Services: 401 Unauthorized

    Hi experts,
    I try to access a Microsoft Exchange Webservice. Therefore I created a Web Service Client in the Developer Studio and a servlet to access the the Web Service and display the data. I modified the .wsdl file as described in several blogs before I created the WS Client. My code to do the authentication is:
    URL wsdlURL = new URL("http://<host>:<port>/ExchangeWsClient/wsdl/Services.wsdl");
                ExchangeServicePortType port = exchangeAuthenticator.getExchangeServicePort("username", "password123", "domain", wsdlURL);
    But when I try to access the servlet I get the following exception:
    Caused by: com.sap.engine.services.webservices.espbase.client.bindings.exceptions.TransportBindingException: Invalid Response code (401). Server <https://<host>/EWS/exchange.asmx> returned message <Unauthorized>.
         at com.sap.engine.services.webservices.espbase.client.bindings.impl.SOAPTransportBinding.handleSOAPResponseMessage(SOAPTransportBinding.java:579)
         at com.sap.engine.services.webservices.espbase.client.bindings.impl.SOAPTransportBinding.call_SOAP(SOAPTransportBinding.java:1085)
         at com.sap.engine.services.webservices.espbase.client.bindings.impl.SOAPTransportBinding.callWOLogging(SOAPTransportBinding.java:779)
         at com.sap.engine.services.webservices.espbase.client.bindings.impl.SOAPTransportBinding.call(SOAPTransportBinding.java:746)
         at com.sap.engine.services.webservices.espbase.client.jaxws.core.WSInvocationHandler.processTransportBindingCall(WSInvocationHandler.java:167)
    The error then happens in the following line, when the web service tries to fetch the data:
    port.findItem(request, exchangeEnvironmentSettings.getMailboxCulture(),
    exchangeEnvironmentSettings.getRequestServerVersion(), findItemResult,
    exchangeEnvironmentSettings.getServerVersionInfoHolder());
    When I login to https://<host>/EWS/exchange.asmx I can login succesfully with the given credentials in the coding. Do you have any ideas what the problem may be?

    Hi experts,
    I try to access a Microsoft Exchange Webservice. Therefore I created a Web Service Client in the Developer Studio and a servlet to access the the Web Service and display the data. I modified the .wsdl file as described in several blogs before I created the WS Client. My code to do the authentication is:
    URL wsdlURL = new URL("http://<host>:<port>/ExchangeWsClient/wsdl/Services.wsdl");
                ExchangeServicePortType port = exchangeAuthenticator.getExchangeServicePort("username", "password123", "domain", wsdlURL);
    But when I try to access the servlet I get the following exception:
    Caused by: com.sap.engine.services.webservices.espbase.client.bindings.exceptions.TransportBindingException: Invalid Response code (401). Server <https://<host>/EWS/exchange.asmx> returned message <Unauthorized>.
         at com.sap.engine.services.webservices.espbase.client.bindings.impl.SOAPTransportBinding.handleSOAPResponseMessage(SOAPTransportBinding.java:579)
         at com.sap.engine.services.webservices.espbase.client.bindings.impl.SOAPTransportBinding.call_SOAP(SOAPTransportBinding.java:1085)
         at com.sap.engine.services.webservices.espbase.client.bindings.impl.SOAPTransportBinding.callWOLogging(SOAPTransportBinding.java:779)
         at com.sap.engine.services.webservices.espbase.client.bindings.impl.SOAPTransportBinding.call(SOAPTransportBinding.java:746)
         at com.sap.engine.services.webservices.espbase.client.jaxws.core.WSInvocationHandler.processTransportBindingCall(WSInvocationHandler.java:167)
    The error then happens in the following line, when the web service tries to fetch the data:
    port.findItem(request, exchangeEnvironmentSettings.getMailboxCulture(),
    exchangeEnvironmentSettings.getRequestServerVersion(), findItemResult,
    exchangeEnvironmentSettings.getServerVersionInfoHolder());
    When I login to https://<host>/EWS/exchange.asmx I can login succesfully with the given credentials in the coding. Do you have any ideas what the problem may be?

  • Exchange Web Services are not currently available for this request because none of the Client Access Servers in the destination site could process the request.

    Hi,
    I am using EWS Java APIs and passing OAuth tokens to fetch data from office 365 mailboxes.
    Because I am developing Web APIs I preferred using "Application Permissions" defined in Azure active directory application for Office 365, and used "client credential flow" OAuth flow to fetch OAuth token specific to application which will
    allow "Have full access via EWS to all mailboxes in the organisation".
    After fetching token with the procedure specified in the document "http://blogs.msdn.com/b/exchangedev/archive/2015/01/21/building-demon-or-service-apps-with-office-365-mail-calendar-and-contacts-apis-oauth2-client-credential-flow.aspx"
    I passed this token to EWS Java APIs,
    it gave me error saying:
    microsoft.exchange.webservices.data.ServiceResponseException: Exchange Web Services are not currently available for this request because none of the Client Access Servers in the destination site could process the request.
    I tried similar thing with EWS managed APIs for .net. Got similar error.
    Can anyone provide some help and direction to resolve this error.
    Thanks & Best Regards,
    Pranjal

    I see you found an answer with the X-AnchorMailbox header on StackOverflow:
    http://stackoverflow.com/questions/29554724/exchange-web-services-are-not-currently-available-for-this-request-because-none

  • Difference between EAS(Exchange activesync) and EWS(Exchange web service)

    What are the main differrences between EAS(Exchange activesync) and EWS(Exchange web service)...
    I know the basic difference 
    that is EAS(Exchange activesync) is a set of protocol
    and EWS(Exchange web service) is a web service....
    Please explain me the difference

    Hi MangeshDD,
    Some other information for you:
    Understanding Exchange Web Services Virtual Directories
    If you still have other confused points, please feel free let us know.
    Regards!
    Gavin
    TechNet Community Support

  • Explanation of Microsoft example about exchange web service (EWS)

    Hi all,
    I need to send some emails generated with C# code, by using EWS (exchange web service).
    Microsoft gives
    this example of code, but it doesn't contain any host for the exchange server.
    So i do not understand how it is supposed to work ???
    Eric

    Hello Durmond and thanks for your question.
    You need to ask this question in an appropriate forum. I believe you will get more replies if you post this to Exchange forum. I will notify a moderator to move the thread.
    Regards.
    Mahdi Tehrani   |  
      |  
    www.mahditehrani.ir
    Please click on Propose As Answer or to mark this post as
    and helpful for other people.
    This posting is provided AS-IS with no warranties, and confers no rights.
    How to query members of 'Local Administrators' group in all computers?

  • Can't install Microsoft Exchange Web Services Managed API 2.0 - message says it is already installed but it is not.

    I tried to install the Microsoft Exchange Web Services Managed API 2.0 but I got a message saying it was already installed and that I should un-install it.  However it does not appear in the control panel un-install a program list.  I am using
    VS2013 on windows 8.  What can I do to get it to work?
    Mike VE

    Hello,
    Thank you for your sharing.
    If you have any feedback on our support, please click
    here
    Cara Chen
    TechNet Community Support

  • How to assign Tasks to other users using Exchange Web Service.

    How to assign Tasks to other users using Exchange Web Service.
    Any workaround also would help

    Hi Glen,
    I am trying to use ExtendedPropertyType and put in UpdaterItemType as in this code as below. Although it is not updating the Owner
    field.
    I have tried it both by Propertyname and PropertyID. Although new custom property's canbe
    added but to change an existing one like 'Owner' ? Would this be the right method.
    2. And Is ProprertyID a fixed value as 0x811f or does it need to be calculated.
    3. Is 'Owner' the right propertname for assigning a task ?
    Thanks a lot.
    Please see code below for reference.
     PathToExtendedFieldType pathExtended = new PathToExtendedFieldType();
                //pathExtended.DistinguishedPropertySetId = DistinguishedPropertySetType.PublicStrings;
                pathExtended.DistinguishedPropertySetId = DistinguishedPropertySetType.Task;
                pathExtended.DistinguishedPropertySetIdSpecified = true;
                pathExtended.PropertyId = 0x811f;
                pathExtended.PropertyIdSpecified = true;
                //pathExtended.PropertyName = "Owner";
                pathExtended.PropertyType = MapiPropertyTypeType.String;
                ciSetAT.ExtendedProperty = new ExtendedPropertyType[1];
                ciSetAT.ExtendedProperty[0] = new ExtendedPropertyType();
                ciSetAT.ExtendedProperty[0].ExtendedFieldURI = pathExtended;
                ciSetAT.ExtendedProperty[0].Item = "[email protected]";
                SetItemFieldType set1 = new SetItemFieldType();
                set1.Item = pathExtended;
                set1.Item1 = ciSetAT;
                UpdateItemType request = new UpdateItemType();
                request.ItemChanges = new ItemChangeType[1] { new ItemChangeType() };
                request.ItemChanges[0].Item = itemId;
                request.ItemChanges[0].Updates = new ItemChangeDescriptionType[2];
                request.ItemChanges[0].Updates[0] = setstart;
                request.ItemChanges[0].Updates[1] = set1;

  • Fetching all mails in Inbox from Exchange Web Services Managed API and storing them as a .eml files

    I want to fetch all mails in the Inbox folder using EWS Managed API and store them as .eml.
    I can store file once I get the file content as a byte[] will
    not be difficult, as I can do:
    File.WriteAllBytes("c:\\mails\\"+mail.Subject+".eml",content);
    The problem will be to fetch (1) all mails with (2)
    all headers (like from, to, subject) (I am keeping information of those values of from, to and
    other properties somewhere else, so I need them too) and (3)byte[]
    EmailMessage.MimeContent.Content. Actually I am lacking understanding of
    Microsoft.Exchange.WebServices.Data.ItemView,
    Microsoft.Exchange.WebServices.Data.BasePropertySet and
    Microsoft.Exchange.WebServices.Data.ItemSchema
    thats why I am finding it difficult.
    My primary code is:
    When I create PropertySet as
    follows:
    PropertySet properties = new PropertySet(BasePropertySet.FirstClassProperties, ItemSchema.MimeContent);
    I get following exception:
    The property MimeContent can't be used in FindItem requests.
    I dont understand
    (Q1) What these ItemSchema and BasePropertySet are
    (Q2) And how we are supposed to use them
    So I removed ItemSchema.MimeContent:
    PropertySet properties = new PropertySet(BasePropertySet.FirstClassProperties);
    I wrote simple following code to get all mails in inbox:
    ItemView view = new ItemView(50);
    view.PropertySet = properties;
    FindItemsResults<Item> findResults;
    List<EmailMessage> emails = new List<EmailMessage>();
    do
    findResults = service.FindItems(WellKnownFolderName.Inbox, view);
    foreach (var item in findResults.Items)
    emails.Add((EmailMessage)item);
    Console.WriteLine("Loop");
    view.Offset = 50;
    while (findResults.MoreAvailable);
    Above I kept page size of ItemView to
    50, to retrieve no more than 50 mails at a time, and then offsetting it by 50 to get next 50 mails if there are any. However it goes in infinite loop and continuously prints Loop on
    console. So I must be understanding pagesize and offset wrong.
    I want to understand
    (Q3) what pagesize, offset and offsetbasepoint in ItemView constructor
    means
    (Q4) how they behave and
    (Q5) how to use them to retrieve all mails in the inbox
    I didnt found any article online nicely explaining these but just giving code samples. Will appreciate question-wise explanation despite it may turn long.

    1) With FindItems it will only return a subset of Item properties see
    http://msdn.microsoft.com/en-us/library/bb508824(v=exchg.80).aspx for a list and explanation. To get the mime content you need to use a GetItem (or Load) I would suggest you read
    http://blogs.msdn.com/b/exchangedev/archive/2010/03/16/loading-properties-for-multiple-items-with-one-call-to-exchange-web-services.aspx which also covers of paging as well.
    3) offset is from the base your setting the offset to 50 each time which means your only going to get the 50 items from the offset of 50 which just creates an infinite loop. You should use
    view.Offset
    = +50;
    to increment the Offset although it safer to use
    view.Offset  += findResults.Items.Count;
    which increments the offset based on the result of the last FindItems operation.
    5) try something like
    ItemView iv = new ItemView(100, 0);
    FindItemsResults<Item> firesults = null;
    PropertySet psPropSet = new PropertySet(BasePropertySet.IdOnly);
    iv.PropertySet = psPropSet;
    PropertySet itItemPropSet = new PropertySet(BasePropertySet.IdOnly) { ItemSchema.MimeContent, ItemSchema.Subject, EmailMessageSchema.From };
    do
    firesults = service.FindItems(WellKnownFolderName.Inbox, iv);
    service.LoadPropertiesForItems(firesults.Items, itItemPropSet);
    foreach(Item itItem in firesults){
    Object MimeContent = null;
    if(itItem.TryGetProperty(ItemSchema.MimeContent,out MimeContent)){
    Console.WriteLine("Processing : " + itItem.Subject);
    iv.Offset += firesults.Items.Count;
    } while (firesults.MoreAvailable);
    Cheers
    Glen
    .Offset += fiFitems.Items.Count;

Maybe you are looking for

  • PI needs to obtain a zip file via FTP using the File adapter

    I have a scenario where PI needs to obtain a zip file via FTP using the File adapter, this zip file contains a number of txt files that I need to process, and the content of one of them send it to an ECC, now I'm using the PayloadZipBean Module in th

  • Process version 2010 to 2012 update differences...why?

    I am a retired computer professional and I have used LR since V3 first came out and have recently updated my photos from process version 2010 to PV2012.  I used the batch process as I have ~200 GB of photos. My batch process is as follows: In the Lib

  • Solaris 10 Macine on Virtualbox. pcn0, pnc1 Disappear After Reboot

    Hello, I've created a Solris 10 machine in Virtualbox on host win XP. Create 2 internal network adapters. Configured these in Solaris using following commands: #ifconfig pcn0 plumb # ifconfig pcn1 plumb # ifconfig pcn0 192.168.2.141 netmask 255.255.2

  • Synchronization of the deletion of emails ?

    Hello, I managed to set up my iCloud address on my Blackberry. But when I delete an email in my inbox from a computer or a web browser, this email is not be removed from my Blackberry. In other words, there is no synchronization of the deletion of em

  • Why can't apstore find the apps I am searching for?

    This happens to me all the time. I search for Instagram and get a lot of apps but not Instagram. I wanted Omni, the search engine said it did not exist. To find the apps I had to go to the developer's sites and find a downloadlink - and then download