Failed email attempts are not being updated in sysmail_event_log or sysmail_faileditems

Hi,
My apologies if this isn't in the right section. I currently inherited a stored procedure to work on which is calling sp_send_dbmail. The sp executes without any errors and I'm able to see entries in sysmail_allitems as well as receive emails. The issue
I'm having is when I execute the sp and pass an invalid email to sp_send_dbmail (I'm testing for invalid emails), I see no entries in sysmail_faileditems nor sysmail_event_log. Service Broker is running as well as SQL Service Agent and I'm using SQL 2008 R2.
I've tried looking for a solution online and haven't had much luck, I'm hoping someone is able to shed some light on this.
Thanks

Hi LBENAVID,
According to your description, you just use sp_send_dbmail in your stored procedure. Usually, when an error is returned from sp_send_dbmail, the e-mail is not submitted to the Database Mail system and the error is not displayed in this view. For more information,
see: http://msdn.microsoft.com/en-us/library/ms178014.aspx
In addition, you must be a member of the sysadmin fixed server role or the DatabaseMailUserRole database role to access these views. I do a test, if you configure database mail via an invalid email or other errors , then the
Database Mail  failed, the related messages will
 be recorded in the sysmail_event_log view and sysmail_faileditems view.
Regards,
Sofiya Li
Sofiya Li
TechNet Community Support

Similar Messages

  • Email attachments from SSRS email subscription are not being uploaded to an email enabled SharePoint 2013 document library

    Email attachments from SSRS email subscription are not being uploaded to an email enabled SharePoint 2013 document library.
    I have tested the library using a standard email (with attachment) to the library and this works fine. 
    I have monitored the drop folder on the server and I can see both emails being picked up in drop and processed by SharePoint.  The email sent from a regular email account is uploaded with the attachment, whereas the email sent via SSRS subscription
    email is uploaded and the attachment (report) is missing.

    An update on this.  The email when sending from SSRS subscription is received in the library and the attachment is contained within the .EML file uploaded.
    The behaviour that I would like from SSRS subscription emails are to just have the document and not the email.
    Below is a snippet of the .EML files I quick copied from the Drop folder.
    Email attachment snippet sent from SSRS Subscrption:
    ----boundary_2477_75fa3d73-56de-4948-ad82-6588f3a35b95
    Content-Type: application/octet-stream; name="Toilet Usage by Month.docx"
    Content-Transfer-Encoding: base64
    Content-Dis;
     filename="=?utf-8?B?VG9pbGV0IFVzYWdlIGJ5IE1vbnRoLmRvY3g=?="
    Content-ID: <10722c0f-749e-4ecb-ac3f-206317bae734>
    UEsDBBQAAAAIAEVcbEY4Xh4a5nsAAPJtMQARABwAd29yZC9kb2N1bWVudC54bWwgohgA
    KKAUAAAAAAAAAAAAAAAAAAAAAAAAAAAA7N1rr1/XcSforyL4VRooR3vd9to76Kihjto9
    I8T2TDvAzFuaPrE1kUiCouxWPv38DyX50nHSniCdyS96bIAUL+d/LnxO7Vq11qr6j//p
    v3/x+Qe/fnr75WevX/3lD9qfHz/44OnVy9e/+OzVL//yB1+9+9sfXj/44Mt3L1794sXn
    r189/eUPvn768gcf/KeP/uNv/uIXr19+9cXTq3cfPF7h1Zd/8evHH/7q3bs3f/Hhh1++
    /NXTFy++/PPXb55ePf7wb1+//eLFu8cv3/7ywy9evP27r9788OXrL968ePfZzz/7/LN3
    X3/Yj+P8wbcv8/rxXt+++otvX+KHX3z28u3rL1//7bvnN/mL13/7t5+9fPr2p+/e4os/
    5f1+8yaffPshv3+Pj4/l3a++e5Ff/1Pv9tdffP7d3/vNmz/lvf3i7YvfPL6AX3z+zTv6
    Email attachment snippet sent from Outlook:
    --_004_A4C6DCEDE4346446A79AFF493D278530FB87FA07MELABCDEXA1airp_
    Content-Type: application/vnd.openxmlformats-officedocument.wordprocessingml.document;
     name="Toilet Usage by Month.docx"
    Content-Description: Toilet Usage by Month.docx
    Content-Dis; filename="Toilet Usage by Month.docx";
     size=76574; creation-date="Thu, 12 Mar 2015 00:41:14 GMT";
     modification-date="Thu, 12 Mar 2015 00:41:14 GMT"
    Content-Transfer-Encoding: base64
    UEsDBBQAAAAIAMJcbEY4Xh4a5nsAAPJtMQARABwAd29yZC9kb2N1bWVudC54bWwgohgAKKAUAAAA
    AAAAAAAAAAAAAAAAAAAAAAAA7N1rr1/XcSforyL4VRooR3vd9to76Kihjto9I8T2TDvAzFuaPrE1
    kUiCouxWPv38DyX50nHSniCdyS96bIAUL+d/LnxO7Vq11qr6j//pv3/x+Qe/fnr75WevX/3lD9qf
    Hz/44OnVy9e/+OzVL//yB1+9+9sfXj/44Mt3L1794sXnr189/eUPvn768gcf/KeP/uNv/uIXr19+
    9cXTq3cfPF7h1Zd/8evHH/7q3bs3f/Hhh1++/NXTFy++/PPXb55ePf7wb1+//eLFu8cv3/7ywy9e
    vP27r9788OXrL968ePfZzz/7/LN3X3/Yj+P8wbcv8/rxXt+++otvX+KHX3z28u3rL1//7bvnN/mL

  • Read and deleted messages are not being updated on my iphone 4s

    I have a new user who is having a synchronization issue with his iPhone.  When he reads emails on his desktop, the messages on his iPhone 4s show as being unread.  Also, when he delets messages on his desktop email, messages are not being deleted on his iPhone.  I have never seen this issue before and do not know what to do.  Please help.  Thank you!

    The end user just started with the company a week ago and he is using Outlook 2010.  We never had this issue in the past.  Active sync has been enabled on user’s account and he was able to configure the firm's Exchange email profile on his iPhone.  Although he is able to receive messages on his mobile device, it does not sync with his desktop email.  I asked him to delete the profile on the device and create it again, but he wants to do that as a last option.

  • My apps are not being updated when pressing the update all button. It just says installing and no update is being done., my apps are not being updated when pressing the update all button. It just says installing and no update is being done.

    my apps are not being updated when pressing the update all button. It just says installing and no update is being done., my apps are not being updated when pressing the update all button. It just says installing and no update is being done.

    Must be serious because you have stated the problem 4 times now.
    Here are a number of things that you can try and maybe one of them will help.
    Reboot the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons.
    Make sure that you do not have a stalled download in iTunes - a song or podcast .... if you have a download in there that did not finish, complete that one first. Only one thing can download at a time on the iPad so that could be what is causing the problem.
    If that doesn't work - sign out of your account, restart the iPad and then sign in again.
    Settings>iTunes & App Store>Apple ID. Tap your ID and sign out. Restart the iPad by holding down on the sleep button until the red slider appears and then slide to shut off. To power up hold the sleep button until the Apple logo appears and let go of the button.
    Go back to Settings>iTunes & App Store>Sign in and then try to update again. Tap one waiting icon only if necessary to start the download stream.
    You can also try deleting the waiting icons - tap and hold down on an icon until it wiggles - the tap the X on the icon to delete it. Then try to download again.
    You can try resetting all settings. Settings>General>Reset>Reset All Settings. You will have to enter all of your app preferences and device settings again.
    You can also try going to the App Store, find an app that needs an update, tap on the app icon to bring up the description page, then tap on install that way, rather than using the Update option from the app updates screen.
    And ... You can always install the updates in iTunes on your computer and then sync them to the iPad.

  • JavaScript files are not being updated while updating managed solution over Dynamics CRM Online

    Hi Support,
    While I am updating a managed solution over Dynamics CRM 2013 Online, JavaScript files are not being updated and is showing the source as of the last version of the managed solution. 
    I tried the same versions of solution on my CRM 2013 on-premise install (test organization) and it updated successfully.
    This is a bit urgent issue. Please suggest how to resolve this.
    Online version of the CRM is
    Microsoft Dynamics® CRM Online Spring '14
    (6.1.1.1855) (DB 6.1.1.1847)
    blog: <a href="http://technologynotesforyou.wordpress.com">http://technologynotesforyou.wordpress.com</a> | skype: ali.net.pk

    Our technical team managed to find the immediate cause for the problem, and a solution.
    According to them there was a corruption on a speciffic OLAP file. By deleting it, they allowed it to be recreated on the next application processing. The file in question was found in \Microsoft SQL Server\MSSQL.2\OLAP\Data\UGF.0.db\<APPLICATION>.38.cub.xml
    Where <APPLICATION> is the name of the problematic cube.
    After that everything is working.

  • Views are not being updated

    Hello All,
    I am a newbie to oracle dB.
    I have an old VB6 application code that used to "talk" with Oracle dB (version 10g). The 2 machines used to be connected using the Microsoft ODBC for Oracle driver ("Provider=MSDASQL.1"). It used to run fine and all the dB's Views were updated automatically. We recently updated our Oracle to 11g running on Windows2008 r2 64bit machine. We are no longer using the Microsoft ODBC driver but the Oracle client (OraClient11g home1). The VB6 application seems to work OK, see all the records and all BUT, I noticed that all our Views are not being updated automatically anymore. I was wondering if any of you have any idea as to why this is happening and what should I do? I can always go back to the code and force the update on the all the Views but, I was hoping for a quick connection settings tweak if existed.
    Thanks
    g

    837748 wrote:
    Hello All,
    I am a newbie to oracle dB.
    I have an old VB6 application code that used to "talk" with Oracle dB (version 10g). The 2 machines used to be connected using the Microsoft ODBC for Oracle driver ("Provider=MSDASQL.1"). It used to run fine and all the dB's Views were updated automatically. We recently updated our Oracle to 11g running on Windows2008 r2 64bit machine. We are no longer using the Microsoft ODBC driver but the Oracle client (OraClient11g home1). The VB6 application seems to work OK, see all the records and all BUT, I noticed that all our Views are not being updated automatically anymore. I was wondering if any of you have any idea as to why this is happening and what should I do? I can always go back to the code and force the update on the all the Views but, I was hoping for a quick connection settings tweak if existed.
    Thanks
    gWhat evidence do you have that views are not being 'updated'? Are you talking about materialized views? A normal view has nothing to 'update'. A view contains no data. It is nothing but a pre-defined query.

  • TS3999 My calendar events on my PC are not being update in iCloud. Why not?

    My calendar events on my PC are not being update in iCloud. I made this happen one time by deleting iCloud on my PC and then reloaded it to the iCloud. I thought it was to keep all calendars in sync no matter what device was used.  What am I doing wrong? It appears you can only go one way, iCloud to PC unless you turn off Icloud on PC and reload PC entries.

    Thank you very much for your help!
    I did the three points you mentioned above, the thing is that I can publish, but I would have to unpublish the latest issue in order to be able to read the new one, actually it is necesary to archive the last issue in order to see the new one.
    What can I do?? it is very important to me!!!
    I need to publish a very importan magazine
    Thank you very much for your help1

  • Photo edits in aperture are not being updated in Photostream

    I want to edit photos in iPhoto on an iPad mini and also in Aperture and have the changes synchronised either using photostream or a direct connection. Try as I may I can't get this to happen. If I move a photo in Aperture to the photostream then it appears on the iPad and vice versa. If I subsequently edit a photo on either device the changes are not propagated to the other device and the photostream image is not updated. Can anyone tell me what I am doing wrong, or is this feature simply not supported.

    Photo Stream can be used to automatically share photos to other devices, but it will not sync the photos. If you edit photos and want to share the edited version as well, you will have to add this edited version again to the Photo Stream. Also the photos will not be stored in the Photo Stream for more than a month.
    You might consider to use iTunes Photo sync instead:
    iOS and iPod: Syncing photos using iTunes
    With iTunes Photo Sync you can update the albums synced to your iPad, when you change the albums and edit the photos on your mac, but changes done on your iPad will also not sync back. You have to reimport the edited photos from your iPad.
    There is simply no simple way yet to sync iPad and Mac, if you are looking for a solution to do some editing on your iPad and keep iPad and Mac in perfect sync.
    Maybe some third party software can do that, but neither the Photos app nor iPhoto on iPad has means to do that.
    Regards
    Léonie

  • The descriptions for materials are not being updated automatically inside of APO

    Hi All,
    We did some changes in material master descriptions in ECC. After the weekly run of integration models also these changes are not updating in APO.
    Please let me know do we need to changes in integration models or CIF settings.
    Advance Thanks.
    Prasad

    Hello Giri
    I am giving some general guidelines on Master Data transfer using CIF. This will likely resolve your issue.
    By running below programs in their order, you will be able to achieve Periodic Data Transfers through Batch Jobs.
    Generate integration model - RIMODGEN  (Same as CFM1)  and
    Activate integration model - RIMODAC2 (Same as CFM3)
    And transaction CFP1 or program RCPTRAN4 can be used for Processing change pointers
    This approach will transfer the differential data w.r.t Master data. It will also help minimize data transfer related to master data.
    Transaction CFC9 :
    For master data it is commonly used - Option#1 of "ALE Change Transfer, Periodic" from CFC9. Changes to master data objects in ECC are recorded and then transfer of the changes is done periodically.
    However if required, it can be transferred Immediately using Option#2 of "BTE Transfer, Immediately" from CFC9.
    If Option#1 selected then,
    1.CIF Message types must be activated for change recording. Transaction BD50
    2.Activate Change Pointers. Transaction BD61.
    3.The fields relevant to a message type to be selected. Transaction BD52
    4.Table BDCPV can be used to view Change pointers.
    Please check:  SAP Note 533755 - Description of the delta logic or the program RIMODINI. This note has some key recommendations on use of RIMODINI/CIF Delta Logic
    Hope this will help.
    Thank you
    Satish Waghmare

  • Email messages are not being downloaded on Iphone

    Please help!  Re iPhone, email messages, I had to change my PW on Yahoo.com, "Other", my email messages cannot
    be downloaded.  I receive "this message has not been downloaded from the server".  Outgoing mail server:  smtp.mail.yahoo.com,
    SSL ON;  Incoming mail server:  imap.mail.yahoo.com, server port 465. 

    While Yahoo has had their problems when it comes to their mail, I suggest removing the account from the phone, reset the phone, add the account back on and see if that works.

  • Email Receipts are not being sent to submitter

    Hi, I am testing the form now and we have a month trial paid account.
    I submited the form with my email address to test receive the email receipts however, I dont receive any email receipts until now.
    Can you please let me know why it is not working or I am not receiving any email receipts?

    Hi;
    Did you set up the Submission Reciepts on the Options tab and select the desired "Email" field to have those reciepts sent to:
    If you do indeed have this set up as shown above let me know and I'll look into it further, if that is the case please share the form with me following these steps at [email protected] and include a link to this forum post when you share the form for my reference: http://forums.adobe.com/docs/DOC-2462
    Thanks,
    Josh
    Thanks,
    Josh

  • Some contact names are not being updated

    Some of my friends show as live:abc123 or facebook:abc123 and don't update in my contacts list even when the friends change it later in their profile. I have this issue both on Windows and Windows Phone. Please fix this.

    I am seeing similar results.
    Amanda, did you find resolution?
    Herschel

  • After upgrading to OSX Mavericks, my Contacts app on my desktop not syncing with iCloud and changes I make on my iDevices are not being updated through system.

    In the desktop Contacts apps, there is an error icon always present (since the upgrade) in the upper left hand quadrant of the app window.  When I click on it I get an error msg.  See Screen grab below.

    "On my phone" by definition doesn't sync. You need to move it to an iCloud group. Unfortunately, the Contacts app on the iPhone doesn't have this capability. There are 3rd party apps that let you move contacts from one group to another. Speed Names is a good choice, and inexpensive.

  • Contacts folder in Outlook 2010 (Exchange server) is not being updated on my iPhone.

    Hello
    I am using Exchange email account with Contacts on Outlook 2010..
    Updated contacts are not being updated to my iPhone and vice versa.
    The iPhone software is the latest 7.01
    iCloud is deactivated and iTunes is not being used.
    Any ideas how to resolve this bug?
    Interesting, it is working with my iPad.
    Many thanks!

    Hi alpinespace,
    If you are having issues syncing your contacts between your iPhone and Outlook 2010, you may find the following article helpful:
    Apple Support: Troubleshooting Sync Services on Windows with Microsoft Outlook 2003, Outlook 2007, or Outlook 2010
    http://support.apple.com/kb/TS2776
    Regards,
    - Brenden

  • Can't Delete Private Cloud - tbl_WLC_PhysicalObject not being updated

    I am having issues with our SCVMM instance where I can't delete Private Clouds...even if there empty. 
    When I right click the Private Cloud and click Delete, the "Jobs" panel says it finished successfully, however, the Private Cloud is not deleted. 
    After doing some researching, I believe its because entries in the tbl_WLC_PhysicalObject database table are not being updated correctly, when a VM is moved from one Private Cloud to another. After determining the "CloudID" of the Private
    Cloud I am trying to delete, I still see resources assigned to this Private Cloud in the tbl_WLC_PhysicalObject table, even though from VMM Console, the Private Cloud shows up empty. 
    For some testing purposes, I assigned a VM back to the Private Cloud I am trying to delete, only to move it out again and gather some tracing/logging. When I moved the VM back out of the Private Cloud, I had a SQL Profiler running in the background, capturing
    the SQL statements on the DB server. Looking at the "exec dbo.prc_WLC_UpdatePhysicalOBject" statement, I see the @CloudID variable is assigned the "CloudID" of the Private Cloud the VM is currently assigned to/the Private Cloud I am trying
    to delete and is NOT the CloudID of the Private Cloud the VM is being moved to/assigned to. 
    Instead of having the VMM Console GUI do the Private Cloud assignment/change...I copied the PowerShell commands out...so I can run them manually. Looks like the script gets 4 variables ($VM, $OperatingSystem, $CPUType, and $Cloud), and then runs the "Set-SCVirtualMachine"
    CMDLET. For the $Cloud variable, it does return the proper "CloudID" of the Private Cloud I am trying to move the VM too (I ran it separately and then ran an ECHO $Cloud to look at its value). When I run the "Set-SCVirtualMachine" CMDLET,
    the output has values for "CloudID" and "Cloud" and these are still the values of the source Private Cloud/Private Cloud I am moving the VM out of and ultimately want to delete. 
    Has anyone ran into this? Is something not processing right in the "Set-SCVirtualMachine" CMDLET?

    I been slowing looking into this and this is where I am at:
    I built a development SCVMM 2012 R2  instance that mocks our production environment (minus all the VM's...just the networking configuration and all the private clouds have been mocked). From there, I started at SCVMM 2012 R2 GA and one by one installed
    the 4 rollup patches in ordered and at each new patch level,  I monitored the queries coming in through SQL Profiler, as I moved a VM between private clouds and created new VM's within clouds. As I created new VM's and moved the VM's between clouds. the
    stored procedure "prc_WLC_UpdatePhysicalOBject" all have a value of NULL for the CloudID column....so a CloudID isnt even associated to the physical objects (basically the VHDX files and any mounted ISO's I have on the VM's). 
    I did find out this SCVMM instance was upgraded from SCVMM 2008 (I took over after the 2012 R2 upgrade was completed). 
    I am thinking at this point...nothing is wrong with SCVMM 2012 R2 if you build and recreate it from scratch and a new DB. I am thinking this might be a depreciated field from SCVMM 2008. The only other thing we did, was put in a SAN and moved VM's from stand-alone
    hosts to the new CSV's (A mixture of 2008 R2 and 2012 NON R2 hosts). 
    At this point...since we dont have Self-Service enabled yet....it will be a days work to rebuild a new instance of SCVMM 2012 R2 and migrate the hosts/VM's to it and start from a clean slate. 
    I know the DB structure isnt really published...but does anybody have any other insights into this? 

Maybe you are looking for

  • How to run Test Configuration in XI

    Dear all experts, I am new in SAP Netweaver and I am trying to get certify my products. Thus, I have some questions and appreciate you can help to clear my doubts below. 1. I have finished configuration in XI, but when I try to run Test Configuration

  • Purchased items were not received

    I have purchased items that were not received.  I also was unable to update or even use several of my Apps.  I read that I should delete these Apps and then reinstall them.  I did this and was able to use the Apps again HOWEVER the additional enhance

  • A basic question of class

    Hello guys, i'm new hand and i got this question but i'm not sur of the answer, any help would be welcome :) The correct statement(s) are: a: a class is an instance factory b: a class is a template for creating an entity c: a class is a set of all th

  • I would like to change the name on my iPod Nano 4th generation.  Does anyone know how to ?

    I would like to change the name to mine and not my wife's as it was first set up.  Can anyone help or lead me in the right direction?  Thanks Kevin

  • House move + new Mac Pro = install no longer works

    I recently moved across town and in the process streamlined my computers. I've migrated using migration assistant from a 2.0Ghz iMac to an 8 core Mac Pro. In the physical move I brought over my Aperture 2.0 upgrade disk, book and serial # but seem to