Subscriber not working

Hi,
I have two databases on Windows XP. One db is 9.2 and aother is 10.2.
I want to propogate messages from 9.2 database to 10.2 database. So, I create a link from 9.2 to 10.2.
I have run following commands on the source database
create or replace type customer_type as object
    name    varchar2(100),
    dob     date,
    address varchar2(100)
BEGIN
DBMS_AQADM.CREATE_QUEUE_TABLE
  ( queue_table        => 'AQ_ADMIN.CUST_Q_T',
    queue_payload_type => 'AQ_ADMIN.CUSTOMER_TYPE',
    sort_list          => 'enq_time',
    multiple_consumers => TRUE );
END;
BEGIN
   SYS.DBMS_AQADM.CREATE_QUEUE
     QUEUE_NAME          =>   'AQ_ADMIN.CUST_Q'
    ,QUEUE_TABLE         =>   'AQ_ADMIN.CUST_Q_T'
    ,QUEUE_TYPE          =>   SYS.DBMS_AQADM.NORMAL_QUEUE
    ,MAX_RETRIES         =>   60
    ,RETRY_DELAY         =>   10
    ,RETENTION_TIME      =>   600
    ,COMMENT             =>   'Queue for enqueuing customer record'
END;
DECLARE
   aSubscriber sys.aq$_agent;
BEGIN
   aSubscriber := sys.aq$_agent('PROPAGATOR',
                               'AQ1.A1_Q@ORACLE1',
                               0);
   dbms_aqadm.add_subscriber
        queue_name     => 'CUST_Q'
       ,subscriber     => aSubscriber
END;
BEGIN
   SYS.DBMS_AQADM.START_QUEUE
     QUEUE_NAME => 'AQ_ADMIN.CUST_Q'
    ,ENQUEUE => TRUE
    ,DEQUEUE => TRUE
END;
DECLARE
    enqueue_options     dbms_aq.enqueue_options_t;
    message_properties  dbms_aq.message_properties_t;
    message_handle      RAW(16);
    message             customer_type;
BEGIN
    message := customer_type('SIXTH', '01-FEB-73','LONDON');
    dbms_aq.enqueue(queue_name => 'AQ_ADMIN.CUST_Q',
          enqueue_options      => enqueue_options,
          message_properties   => message_properties,
          payload              => message,
          msgid                => message_handle);
    COMMIT;
END ;
select count(*) from cust_q_t ; -- records in the queue table
COUNT(*)
     1So, my enqueue was successfull. Does that mean that, this message will automatically reach the destination database over the link. Queue A1_Q and schema AQ1 exist in the destination database (with same payload type). But, I cannot see any message reaching there.
Why the message is not reaching over db link? what else is required? where can I see the error, if any?
My enqueue was successfull.
Please help.
Thanks

Hi All,
I would like to give a better spool output of exact steps which I did for the above problem, just in case it helps.
In the database where messages will be enqueued
SQL> BEGIN
  2   DBMS_AQADM.CREATE_QUEUE_TABLE
  3    ( queue_table        => 'AQ_ADMIN.OUT_Q_TAB',
  4      queue_payload_type => 'AQ_ADMIN.CUSTOMER_TYPE',
  5      sort_list          => 'enq_time',
  6      multiple_consumers => TRUE );
  7  END;
  8  /
PL/SQL procedure successfully completed.
SQL>
SQL>
SQL> BEGIN
  2     SYS.DBMS_AQADM.CREATE_QUEUE
  3     (
  4       QUEUE_NAME          =>   'AQ_ADMIN.OUT_Q'
  5      ,QUEUE_TABLE         =>   'AQ_ADMIN.OUT_Q_TAB'
  6      ,QUEUE_TYPE          =>   SYS.DBMS_AQADM.NORMAL_QUEUE
  7      ,MAX_RETRIES         =>   60
  8      ,RETRY_DELAY         =>   10
  9      ,RETENTION_TIME      =>   600
10      ,COMMENT             =>   'Queue for enqueuing customer record'
11      );
12  END;
13  /
PL/SQL procedure successfully completed.
SQL>
SQL> DECLARE
  2     aSubscriber sys.aq$_agent;
  3   BEGIN
  4     aSubscriber := sys.aq$_agent('PROPAGATOR',
  5                                 'AQ1.IN_Q@AQ1',
  6                                 0);
  7     dbms_aqadm.add_subscriber
  8        (
  9          queue_name     => 'OUT_Q'
10         ,subscriber     => aSubscriber
11        );
12  END;
13  /
PL/SQL procedure successfully completed.
SQL>
SQL> begin
  2  DBMS_AQADM.Schedule_Propagation(queue_name  => 'AQ_ADMIN.OUT_Q',
  3                                  destination => 'AQ1',
  4                                  -- Destination_queue => 'AQ1.A1_Q',
  5                                  next_time   => 'SYSDATE + ( 10/86400 )',
  6                                  Latency     => 0);
  7  end;
  8  /
PL/SQL procedure successfully completed.
SQL>
SQL>
SQL> BEGIN
  2     SYS.DBMS_AQADM.START_QUEUE
  3     (
  4       QUEUE_NAME => 'AQ_ADMIN.OUT_Q'
  5      ,ENQUEUE => TRUE
  6      ,DEQUEUE => TRUE
  7      );
  8  END;
  9  /
PL/SQL procedure successfully completed.
SQL>And in the database where messages will be dequeued
SQL> BEGIN
  2  DBMS_AQADM.CREATE_QUEUE_TABLE
  3    ( queue_table        => 'IN_Q_TAB',
  4      queue_payload_type => 'AQ1.CUSTOMER_TYPE',
  5      sort_list          => 'enq_time' ,
  6      multiple_consumers => TRUE );
  7  END;
  8  /
PL/SQL procedure successfully completed.
SQL>
SQL> BEGIN
  2  SYS.DBMS_AQADM.CREATE_QUEUE
  3  (
  4     QUEUE_NAME     => 'IN_Q'
  5    ,QUEUE_TABLE    => 'AQ1.IN_Q_TAB'
  6    ,QUEUE_TYPE     => SYS.DBMS_AQADM.NORMAL_QUEUE
  7    ,MAX_RETRIES    => 60
  8    ,RETRY_DELAY    => 10
  9    ,RETENTION_TIME => 600
10    ,COMMENT        => 'Queue used to receive new customers'
11  );
12  END;
13  /
PL/SQL procedure successfully completed.
SQL>
SQL> BEGIN
  2  SYS.DBMS_AQADM.START_QUEUE
  3  (
  4    QUEUE_NAME => 'IN_Q'
  5   ,ENQUEUE    => TRUE
  6   ,DEQUEUE    => TRUE
  7  );
  8  END;
  9  /
PL/SQL procedure successfully completed.
SQL>Now, assuming that, the database link works, what can be the issue?
Why the message enqueued in the 'from' database is not showing up in the 'to' database ?
Please help.
Regards

Similar Messages

  • Fire() and subscribe() not working

    Hi
    I have a DC which contains 2 Applications, 2 diiferent components.There is a link in the first application's iview which opens the second application in the content area. I did this using WDPortalNavigation.navigateAbsolute(). Now i want to move some data from second application to the first application. For this i m using Subscribe() and Fire() method in both the iviews as follows:
    in the sender (second) application:
    WDPortalEventing.fire("urn:com.sap.try.cust", "Code", code);
    in the receiver (first) application:
    in it's wdDoInit() method:
    WDPortalEventing.subscribe("urn:com.sap.try.cust", "Code", wdThis.wdGetReceiveCodeAction());
    public void onActionReceiveCode(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent, java.lang.String code )
        //@@begin onActionReceiveCode(ServerEvent)
         wdContext.currentContextElement().setCtx_BACode(code);
             //@@end
    the context attribute Ctx_BACode is mapped to UIElement for displaying.
    When i run this application, i am able to move from first application to second application, but when i click to send the data to the first application, it doesn't go.
    Could anybody please suggest a way about it?
    Thanks & regards,
    Anupreet

    Hello Anupreet,
    Did you check this WebDynPro communication.... ?
    Best regards, Maksim Rashchynski

  • Podcast downloads fine, but Subscribe is not working

    My feed validates, is showing up in the iTunes store and I can download individual episodes without problem. Yet when I click the "Subscribe" button, it does not work. The name of the podcast shows up in the Podcasts section of my iTunes, but it does not download any episodes. And when new episodes are posted, those don't download either. Other people who I've talked to who have tried subscribing to my podcast are having the same problem. I've checked all my iTunes settings, and everything seems to be in good order, as I'm having no difficulty subscribing to other podcasts.
    Feed is located here: http://www.natefernald.com/butttalk/buttfeed.xml
    Any advice would be greatly appreciated - I'm stumped!
    Thanks.

    You have introduced a fatal error into your feed: at the moment the Store will be showing a cached version but iTunes cannot read it and so subscribing does not work.
    Several episodes have this:
    <itunes:summary>Adam & Nate talk with Best Week Ever's Nick Turner....
    The ampersand ('&') wrecks the feed because in XML it signifies the beginning of a code sequence which is never finished - this invalidates the rest of the feed including the closing tags, so that invalidates the opening tags and the entire feed becomes unreadable.
    You need to search for every instance of this and replace it either with the word 'and' or with this code:
    &amp;
    I would suggest using the 'and' as being more gramatically correct and less fuss unless you are particularly keen on the ampersand.

  • I've become increasingly frustrated with the ipad adobe app. I've subscribed to be able to convert my pdf files into word documents and it has yet to work I've paid for a service that does not work which in turn makes me a disgruntled customer to say the

    I've become increasingly frustrated with the ipad adobe app. I've subscribed to be able to convert my pdf files into word documents and it has yet to work I've paid for a service that does not work which in turn makes me a disgruntled customer to say the least very disappointed with such horrible service

    Which service did you subscribe to?  Adobe PDF Pack?
    Once I know the service that you subscribed to, I can move this post to the right forum so that you can get in touch with the folks who can assist you.

  • Subscribing to podcast in iWeb does not work???

    I created and exported to iWeb a music podcast using Garage Band. The podcast correctly imported to my iWeb website, so you can visit the site and play the podcast their. This process also creates a "subscribe to podcast" button on the iWeb website, which is supposed to allow visitors to click it and the podcast will automatically be added to their iTunes podcasts library. Well, this partially works, that is, an entry IS made in the iTunes podcasts library, but the entry does not work. It appears to reference the full text page of the podcasts webpage instead of the actual music podcast, so when you try to play the podcast within iTunes you get an error message.
    Any ideas? There does not appear to be a way to correctly point the iTunes podcast entry to the actual music podcast on the website instea of the text main page.
    Thanks.

    Thanks for the offer to help. Here is the website:
    http://web.mac.com/mgimbel/iWeb/Site%204/Podcast/Podcast.html
    I'm not sure how to find the RSS file to send. ??
    In case you're not familiar with the how the process is SUPPOSED to work between Garage Band, iWeb and iTunes, it should be a simple, 3-step AUTOMATED process:
    1. in Garage Band, you choose "send podcast to iWeb". This exports the current project to an iWeb page as a podcast. (This works)
    2. in iWeb, you publish the newly created page containing the podcast. I use .Mac, so my pages are automatically published to my .Mac account. (This also works)
    3. On the webpage at the website containing the podcast, there is a button to "subscribe" to the podcast. When you click this, it is supposed to create a podcast entry in your iTunes library, under My Podcasts. (This is where the process stops working: the entry is created in iTunes, but it does not work - i.e., it does not appear to point correctly to the podcast itself, but instead to the webpage in general that contains the podcast, and iTunes can not identify the podcast from this.)
    Hopefully, that helps. Sorry if you were already familiar with the process.
    Looking forward to hearing your thoughts on this.

  • Unity 7 Backup Subscriber Server - Live Reply not working

    Hi we have two Unity 7 servers, one Primary and 2nd Backup Subscriber Server.
    Live Reply is not working when the Unity Primary Server fall onto the Backup Server.
    Do anyone have an idea or an solution form me?
    On both Servers:
    Unity Version: 7.0(2.0)
    Patch installed: CU7.0(2)_ES34
    Exchange 2007
    Many Thank,
    Nico

    Hello,
    I am looking at the guide for this and found the following:
    http://www.cisco.com/en/US/partner/docs/voice_ip_comm/unity/5x/networking/guide/ex/5xcunet030e.html#wp1050502
    Enabling Cross-Server Live Reply and Entering the Pilot Numbers of Destination Cisco Unity Servers
    Do the following procedure on each Cisco Unity server in the dialing  domain. If the system is using failover, do the following procedure on  both the primary and secondary server, because most of the settings on  the Network > Dialing Domain Options page are stored in the registry.  (Registry settings are not replicated to the secondary server.)
    To Enable Cross-Server Live Reply and to Enter the Pilot Numbers of Destination Cisco Unity Servers
    You might just verify this has been done on the Secondary also.
    Thanks,
    Scott

  • Subscribed Google Calendar not working

    I have set up my google calendar via CalDav and that's working great. But I also need to subscribe to my boyfriends google calendar, just to view what is there. So I have updated to 3.0 and I go into Settings -> Mail, Contacts, Calendars -> Add Account -> Other -> Add Subscribed Calender
    I put in the address that google gives me to the .ics file for his private calendar. The it says "subscribed calendar account verification failed".
    Anyone else have this problem? And have you been able to fix it?

    I have not been able to get the google subscribed calendars to work either. I was able to connect my main google calendar via CalDAV, but you can't add additional CalDAV accounts. Subcriptions are not working at all. I get this error message every time: "subscribed calendar account verification failed"
    The method you describe here may work, but you won't actually get any updates because you have basically subscribed to a copy of the calendar, not the actual calendar that the original creator presumably keeps upto date.

  • My adobe connect url not working as i subscribe for 30 days free trial but its not working, i just received the link in email after subscribtion but its not woring

    help me

    The account may take a bit of time to be created and activated. If it is still not working when you try today, then you may need to reach out to support to see what the hold up is.

  • Podcast Subscribe Button Still not working...

    Please can someone help me out. I have read through the discussions board and have almost got the answer I need, but to be honest I'm CONFUSED ! (Stress on the confused).
    OK.... Created Podcast in Garageband (fine) Share with iWeb (fine), Publish to folder, (fine) upload website to my ftp server bingo ! Website online... Submit Podcast to iTunes fine... Subcribe button does not work ! OK, so how do I thick it...
    When Publishing to folder in the URL box I need to enter the URL for the Podcast in here ? Correct ?...
    So please can someone tell me where I get the CORRECT URL from ? I have tried a couple of options and none seem to work ! And now I'm beginning to wish I'd never put the podcast on the website in the first place !
    Thanks in advance... (Because I know its a stupid question)
    My Website is here :
    http://www.blacklightaudio.com

    The current URL that iWeb has generated for your website is...
    http://www.blacklightaudio.com/Black%20Light%20Audio/CUBED%20Podcast/rss.xml/Bla ck%20Light%20Audio/CUBED%20Podcast/rss.xml
    which is obviously incorrect. It looks like you tried to show iWeb exactly where your rss.xml file was. All iWeb needs to know is your domain.
    Try just typing in http://www.blacklightaudio.com into the URL box when you publish to folder. iWeb should then generate the URL...
    http://www.blacklightaudio.com/Black%20Light%20Audio/CUBED%20Podcast/rss.xml
    which actually is the correct URL. Remember that the URL you enter in that box does NOT determine where iWeb puts the feed. It simply is needed so that iWeb knows what domain to base the feed URL on.

  • Voicemail does not work after update

    I completed the new update yesterday and received a voicemail this morning. I tried to access it but operator says that the person I am trying to call does not subscribe to voicemail.

    What specifically does not work?  Any errors?
    If you want/need help, provide specifics of the issue.  We are not mind readers.

  • Flash player does not work after I installed it

    Flash player does not work after I installed it

    I'm using Mac Osx and my browser is Safari
    Date: Wed, 5 Feb 2014 00:41:29 -0800
    From: [email protected]
    To: [email protected]
    Subject: Flash player does not work after I installed
        Re: Flash player does not work after I installed it
        created by Mike M in Installing Flash Player - View the full discussion
    This is a user-to-user forum, NOT 24/7 support. You're "lucky" I happen to be up at 1:40 am to answer you.
    What OS are you using?
    http://mmonlinedesigns.com/images/os.png
    What browser?
    http://mmonlinedesigns.com/images/browsers.png
         Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/6087541#6087541
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/6087541#6087541
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/6087541#6087541. In the Actions box on the right, click the Stop Email Notifications link.
               Start a new discussion in Installing Flash Player at Adobe Community
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0.

  • Flash player will not work on my computer, would love advice

    I have windows vista.  When I visit a web page that requires flash, it instructs me to download it (even though I'm sure I have it ialready...).  I do so, it says it has downloaded successfully but I still cannot view the website.  I have uninstalled my current version of flash and reinstalled the latest version numerous times.  It even shows up in my list of programs.  But each time I visit a site that uses it, it tells me I need flash to view it.  Very frustrating.  And suggestions would be appreciated.  Thanks!

    This was very helpful - thank you.  I unchecked "active x filtering" and it seems to be working, under tools in IE.  a simple solution, that may have taken me days to figure out myself!  Hopefully it continues to work from thiis point forward.  Thanks!
    Date: Tue, 16 Apr 2013 12:42:26 -0700
    From: [email protected]
    To: [email protected]
    Subject: Flash player will not work on my computer, would love advice
        Re: Flash player will not work on my computer, would love advice
        created by Chris Campbell in Installing Flash Player - View the full discussion
    Do you see an animation and version number when you visit the Flash Player Version page? If you are using Internet Explorer, please verify that the following two FAQs check out. Enabling Flash Player in Internet Explorer ActiveX Filtering in Internet Explorer
         Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/5240948#5240948
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/5240948#5240948
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/5240948#5240948. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Installing Flash Player by email or at Adobe Community
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • One of the frequencies on Verizon FIOS TV does not work, and I can't get certain HD channels

    So I've had two techs out to check the box outside my house where the wire comes in from the pole.  The problem is I cannot get HD TBS, TNT, Fox Sports 1, Comedy Central and many other channels.  These channels come in over the frequency that kicks out a fault (I saw when the 2nd tech came in and hooked my coax from the box outside my house directly into the tester)
    The tech confirmed it was not coax in my house, but connections outside.  he changed those connections and then all of a sudden it worked.
    Two days later, not working again.
    Verizon is incapable of figuring this out or setting me up with an appointment that is not in the middle of the work week at 2pm (i've already taken two days off from work to try and get this fixed...shall I just take a week long vacation and devote it to them?)
    Anybody ever run into this and figured out a way to fix it yourself, since Verizon hasn't a clue?
    thanks

    Your issue has been escalated to a Verizon agent. Before the agent can begin assisting you, they will need to collect further information from you.
    Please go to your profile page for the forum, and look in the middle, right at the top where you will find an area titled "My Support Cases". You can reach your profile page by clicking on your name beside your post, or at the top left of this page underneath the title of the board.
    Under “My Support Cases” you will find a link to the private board where you and the agent may exchange information. This should be checked on a frequent basis as the agent may be waiting for information from you before they can proceed with any actions.
    To ensure you know when they have responded to you, at the top of your support case there is a drop down menu for support case options. Open that and choose "subscribe".
    Please keep all correspondence regarding your issue in the private support portal.

  • Phone not working for the 5th time

    I am so happy with my fios service.  Now for the 5th time our phone does not work.  We regularly cant recive calls, and sometimes cant call out.  Each time we call (with cell) they say nothing is wrong and will send a tech out days later and an hour before the tech is supposed to show up, it suddenly starts working again.  A week later it stops working, and we go through the same ordeal.  I wonder who they cut off, whent hey turn ours on, and who gets service when they cut ours off.  Its like they play musical chairs with our phone service.  Sometimes we get incomming calls, sometimes outgoing, but hardly ever both.  **bleep**?  Now waiting another 8 days for them to send someout out because right now we dont even have a ring tone.  Please just fix the problem, or stop charging us the $30 for the service.  What a sham.  Oh, and to top it all off,t his week, Verizon Wireless also assigned my wifes account/phone number to someone elses contract.  She has had the number for over 10 years, I just bought her a new iPhone (full price $900) and when we went the store a man by the name of Carlos told us to pound sand.  He had given the line to someone else and the only way he would fix it is if we returned the phone we bought from Verizon online, and bought a phone in his store!!!  Can you believe it.  Carlos would not give her line back unless she bought a phone in his store. 

    Hi mikalsan,
    Your issue has been escalated to a Verizon agent. Before the agent can begin assisting you, they will need to collect further information from you. Please go to your profile page for the forum and look at the top of the middle column where you will find an area titled "My Support Cases". You can reach your profile page by clicking on your name beside your post, or at the top left of this page underneath the title of the board.
    Under "My Support Cases" you will find a link to the private board where you and the agent may exchange information. The title of your post is the link. This should be checked on a frequent basis, as the agent may be waiting for information from you before they can proceed with any actions. To ensure you know when they have responded to you, at the top of your support case there is a drop down menu for support case options. Open that and choose "subscribe". Please keep all correspondence regarding your issue in the private support portal.

  • Alert set through timer job is not working in sharepoint 2010 as expected

    Hi,
    I create the standard sharepoint alerts through timer job.
    in my timer job, i loop through a list and based on the user value in the alert to field i create alert for the users and the condition for the alert are only when new items are created and something changes in the below view.
    all the properties are set fine. Email triggered on new items additions and on specific daily or weekly summary.
    The view filteration is not working at all:(
    But after the timer job ran and set the alert, if i open the alert settings on UI and without changing anything if i click ok , then the view filteration is happening and alerts are working fine.
    What is wrong here? is it a bug or anything am missing?
    Aruna
    try
    SPList Configlist = web.Lists.TryGetList("Configuration");
    foreach (SPListItem oItem in Configlist.Items)
    ProfilePicker = oItem["ProfilePicker"].ToString();
    ProfileViewer = oItem["ProfileViewer"].ToString();
    string MIS = oItem["MIS"].ToString();
    SPList list = web.Lists.TryGetList(ProfileViewer);
    SPList ProfileList = web.Lists[ProfilePicker];
    foreach (SPListItem oItem in ProfileList.Items)
    frequency = oItem["Frequenzy"].ToString();
    created = (DateTime)oItem["Created"];
    string createdDate = created.ToString();
    createdDate = DateTime.Parse(createdDate).ToShortDateString();
    DateTime today = DateTime.Today.Date;
    string dateonly = today.ToString(); ;
    dateonly = DateTime.Parse(dateonly).ToShortDateString();
    SPFieldUserValue fieldValue = null;
    SPFieldUser UserColumn = (SPFieldUser)oItem.Fields.GetField("Alert_x0020_owner");
    fieldValue = UserColumn.GetFieldValue(oItem["Alert_x0020_owner"].ToString()) as SPFieldUserValue;
    if (fieldValue != null)
    alertowner = fieldValue.User;
    alert = alertowner.ToString();
    //if (createdDate == dateonly)
    SPUser user = web.EnsureUser(alert);
    SPAlert newAlert = user.Alerts.Add();
    newAlert.AlertType = SPAlertType.List;
    newAlert.List = list;
    newAlert.DeliveryChannels = SPAlertDeliveryChannels.Email;
    newAlert.EventType = SPEventType.Add;
    if (frequency == "Daily")
    createDailyAlert(newAlert, list, user);
    else
    createWeeklyAlert(newAlert, list, user);
    catch (Exception ex)
    // Danfoss.Sharepoint.Logger.DanfossLogger.LogToOperations(ex, "Exception occurred in setting the profile alert", 0, EventSeverity.Error, DanfossExceptionCategory.General);
    private static void createDailyAlert(SPAlert newAlert, SPList list, SPUser user)
    newAlert.Title = "My Daily Profile viewer Alert";
    newAlert.AlertFrequency = SPAlertFrequency.Daily;
    newAlert.AlertTemplate = list.AlertTemplate;
    newAlert.AlertTime = new DateTime(DateTime.Today.Year, DateTime.Today.Month, DateTime.Today.Day, 10, 0, 0);
    newAlert.AlertTime = newAlert.AlertTime.AddDays(0);
    SPAlert existingAlert = null;
    newAlert.Properties.Add("filterindex", "4");
    newAlert.Properties.Add("viewid", list.Views["Daily Alert"].ID.ToString("D"));
    newAlert.Properties.Add("filterpath", string.Format("{0}/", list.Views["Daily Alert"].ServerRelativeUrl.TrimStart('/')));
    foreach (SPAlert alerts in user.Alerts)
    string al = alerts.AlertFrequency.ToString();
    // Filter down the alert to the list you wish to report on.
    if (al == "Daily")
    // Found your existing your custom alert. Don't create one.
    existingAlert = alerts;
    if (existingAlert == null)
    newAlert.Update(false);
    private static void createWeeklyAlert(SPAlert newAlert, SPList list, SPUser user)
    newAlert.Title = "My weekly profile viewer Alert";
    newAlert.AlertFrequency = SPAlertFrequency.Weekly;
    newAlert.AlertTemplate = list.AlertTemplate;
    newAlert.AlertTime = new DateTime(DateTime.Today.Year, DateTime.Today.Month, DateTime.Today.Day, 10, 0, 0);
    newAlert.AlertTime = newAlert.AlertTime.AddDays(0);
    SPAlert existingAlert = null;
    newAlert.Properties.Add("filterindex", "4");
    newAlert.Properties.Add("viewid", list.Views["Weekly Alert"].ID.ToString("D"));
    newAlert.Properties.Add("filterpath", string.Format("{0}/", list.Views["Weekly Alert"].ServerRelativeUrl.TrimStart('/')));
    foreach (SPAlert alerts in user.Alerts)
    string al = alerts.AlertFrequency.ToString();
    // Filter down the alert to the list you wish to report on.
    if (al == "Weekly")
    // Found your existing your custom alert. Don't create one.
    existingAlert = alerts;
    if (existingAlert == null)
    newAlert.Update(false);
    This is my code. alerts are not sending based on the view:(

    Hi sathyaav,
    I followed the example and made a test in my environment, it works like a charm.
    I suggest you check if you have inputed the valid site URL when you create the project solution.
    If you deployed succeed in the Central Administrator Site using Visual Studio, then the job named "Simple Job Definition" will appear in the job definition list.
    Best Regards
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Zhengyu Guo
    TechNet Community Support

Maybe you are looking for

  • When I plug in ipod, it connects/disconnects every second, forever..Win-7

    My ipod worked fine when I was running XP, but when I changed to Windows 7 (32bit), it started doing this thing where it would disconnect and connect every second, for as long as it's little heart desired. i tried: -letting it die -restarting it -all

  • Got two apple ids on an ipod touch. How do you make one the default?

    Got two apple ids on an ipod touch. One child shared account with other sibling. Has now set up own apple id and wants that one to be default id. Every time goes to apple id, shared one comes up. How do we change the settings so that new id is the de

  • Sharing Methods within Extension Framework Modules

    I'm working on a framework extension based upon the framework provided with the SRDemoSampleADFBC application. I have created a couple of methods in my ApplicationModuleImpl that I will use on the client side, but I also need to reference them from o

  • XI Bulk Message Handling

    Hi Expert, I need to send around 200,000 records as one message from R3 side to 3rd party through PI. I am using proxy to FTP scenario and use SOAP adapter type, XI 3.0 message protocol (use AAE) for proxy. Since the message size is too big, I got an

  • My Albums template page is missing - where is it??

    a few weeks ago my macbook's hard drive crashed on me. I replaced it with a larger hd and reinstalled the mac os that came with the original package. i have a website i created using iweb and lost all the original files i used to create it. so i was