Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

issue with RecurrenceType  == yearly

Posted on 2010-09-05
2
742 Views
Last Modified: 2012-05-10
hi i am having troubles create outlook YEARLY events when there is an interval
and i checked the msdn , yearly events supposed to be working with interval keyword
please advice


it always through exceptions
2010-09-06 16:31:18,071 [8] FATAL The recurrence pattern is not valid.   at Microsoft.Office.Interop.Outlook.RecurrencePattern.set_Interval(Int32 Interval)
   at SelectAllCS.ThisAddIn.AddUpdateAppointment(S4_Outlook_Appointment appointment, AppointmentItem outlookAppointment) in D:\MortgagePro\TFS2010\OutlookPlugin\S4_Sync\NewContactCS\ThisAddIn.cs:line 530

please advice
0
Comment
Question by:emeraldpiggy
2 Comments
 
LVL 59

Accepted Solution

by:
Kevin Cross earned 250 total points
ID: 33613241
How are you specifying the recurrence type?

See this reference:
http://msdn.microsoft.com/en-us/library/microsoft.office.interop.outlook.recurrencepattern.aspx

Note that it should be: Outlook.OlRecurrenceType.olRecursYearly

If you follow the links through, there is an example of creating a recurring task and yearly is actually what is shown: http://msdn.microsoft.com/en-us/library/bb623455.aspx

If you are doing it this way, already, please post the pertinent snippet of code so we can see if we spot the issue.

HTH

Kevin
0
 

Author Closing Comment

by:emeraldpiggy
ID: 33880331
thanks its been fixed
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
Many people use more than one email account and so it becomes difficult for them to manage them when they use separate accounts,  so, in this article, I have shared an easy way to add Other Mail Accounts in your Google Inbox. It helps to combine all…
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question