Issue to send email (using sp_send_dbmail) with an attachement located in other server within the same network

I have two servers. One is for databases (DB) with the mail server configured and the other is for SSIS without mail server. Both servers are in the same network. On the SSIS server the SSIS package exports data from the DB server table
to xls file. The file is saved in SSIS server. When I created a task to send the email (using sp_send_dbmail) to attach that file, I got the error message:
Error: Executing the query "EXECUTE [msdb].[dbo].[sp_send_dbmail]
 @profile_na..." failed with the following error: "Attachment file H:\test.xls is invalid.".
Any help will be appreciated. Thanks.
A Fan of SSIS, SSRS and SSAS

Where are you running this?
If its in the other server (DB) you need to use UNC path to the SSIS server folder where file resides
Also the executing account should have access to the folder as well as the file. So If you're running this from a job make sure you either provider folder and file access to sql agent job service account or create a separate proxy account with the required
permissions and configure the job to use the account
see
http://www.databasejournal.com/features/mssql/article.php/3789881/Proxy-Accounts-in-SQL-Server.htm
http://www.codeproject.com/Articles/28918/SQL-Server-Agent-Proxy
Please Mark This As Answer if it solved your issue
Please Vote This As Helpful if it helps to solve your issue
Visakh
My Wiki User Page
My MSDN Page
My Personal Blog
My Facebook Page

Similar Messages

  • Many of the times my Iphone 5s shows "No Service" in the specific network area, but if the same sim card is used with other mobiles in the same network area, it shows good network.. i did restore but still not working.. please help me..

    My Iphone 5s shows "No Service" in the specific network area, but if the same sim card is used with other mobiles in the same network area, it shows good network.. i did restore,change sim card, reset all the settings but still not working... please help me..

    Please do not double post a subject. Iphone 5S  I answered your other thread.

  • Hi, i am from india, im using iphone3gs with ios5.1.1 .i want to update the same to ios6 or to ios7,but i couldnt find the software update option in my iphone,so plz help me how to update my software.

    hi, i am from india, im using iphone3gs with ios5.1.1 .i want to update the same to ios6 or to ios7,but i couldnt find the software update option in my iphone,so plz help me how to update my software.

    Are you sure it's a 3GS? What is the model number?

  • Can i use one JSF component's value for other component in the same page.

    Can i use one JSF component's value for other component in the same page.
    For example
    I have a <h:selectBooleanCheckbox id="myChk"> in my jsf page, i want to access its value for another component like:
    <h:commandButton disabled="#{myChk.checked}" action="myAction" value="myValue" />
    ** "myChk.checked" >> I am just asuming "checked" property is available...

    Bind the checkbox to a UIInput myChk property. Then you can reference this property from the page, e.g.
    <h:selectBooleanCheckbox binding="#{myBean.myChk}" onchange="submit();" />
    <h:commandButton disabled="#{myBean.myChk.value}" action="myAction" value="myValue" />

  • Send email using "Shared with - Advanced" not working.

    I have a problem when sending emails in a particular situation.
    if I go to a doc library, then choose a file, click "shared with", then "advanced", then "Stop inheriting", then  "grant permissions to a user", and keep the email option checked, then click "share",
    it does NOT send the email even though it assigns the permissions correctly.
    but if i don't choose "advanced" and directly invite people, then it works and sends email successfully.
    but I cant use the second method because it does not provide the "full control" option.

    Hi Ali,
    I tested the same scenario per your post in my environment, however the email can be sent when using the first method in your post.
     The method is used for granting item-level permission to the users, and it is similar to granting the permission to users in library level or site level.
    I recommend to grant permission to a user in library level or site level to see if the email can be sent.
    Please also double check if the Send an email invitation is selected.
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • Why can I send email from my iPad, but my iMac which is connected to the same modem keeps telling me that it can't send the message using the same server?

    I have an iPad 2, connecting via Wifi to an Actiontec Q1000 modem.  The iMac (3.06 GHz Intel Core 2 Duo, 4 GB 1067 MHz RAM, running OS 10.8.2) is also hard wired to the same modem.  Internet access is via CenturyLink.  Main email is from Shaw cable in Calgary (Phoenix is a vacation property), not through CenturyLink.
    Can receive email on the iMac, but every time I try to send, I get a pop up saying "Cannot send message using the server .......".  Further prompts me to verify the address in the email, and SMTP settings in Mail preferences, or to select a different outgoing mail server.  I've tried using a number of servers, always the same result.
    Using same settings in both devices.

    Mail is not my forte, but what I noticed was that you have Centurylink and presumably have your Mail set up with their settings? But then you mention Shaw/vacation property/etc - you can send out email only through the server that you have set up as an account using the ISP you are using. If you switch places, do you have separate accounts set up with both Centurylink and Shaw so you can switch and use whichever one you're at? A Phoenix ISP won't work with a Mail POP account unless you're in your home - Phoenix - area.
    Do you have a data plan with your iPad? That would explain why that works - it'll function sort of like a cellphone - works anywhere where there are signals.

  • Send email through SO_NEW_DOCUMENT_ATT_SEND_API1 with PDF attachement of smartforms.

    Hi,
    I am converting a smartform to PDF and then sending it as an attachment to email using FM SO_NEW_DOCUMENT_ATT_SEND_API1.
    But I am getting this error. 'Error calling FM <SBCOMS_SEND_REQUEST_CREATE> in <SO_DOCUMENT_SEND_API1> with SY-SUBRC <1>'
    I am passing below entries to packaging list table.
    Packing list for Email Text
            ls_packing_list-head_start = 1.
            ls_packing_list-head_num   = 1.
            ls_packing_list-body_start = 1.
            ls_packing_list-doc_type   = 'RAW'.
    Packing list for PDF
            ls_packing_list-transf_bin = 'X'
            ls_packing_list-head_start = 1.
            ls_packing_list-head_num   = 1.
            ls_packing_list-body_start = 1.
            ls_packing_list-doc_type   = 'PDF'.
    Please let me know if I am missing anything.
    Regards,
    Nishant

    Hi Nishant,
                   Please refer my below code last week only i have implemented this logic.
    call function 'CONVERT_OTF'
         exporting
           format                = 'PDF'
           max_linewidth         = 132
         importing
           bin_filesize          = w_bin_filesize
         tables
           otf                   = t_otf
           lines                 = t_pdf_tab
         exceptions
           err_max_linewidth     = 1
           err_format            = 2
           err_conv_not_possible = 3
           err_bad_otf           = 4.
    pdf_output[] = t_pdf_tab[].
    loop at pdf_output.
         translate pdf_output using ' ~'.
         concatenate gd_buffer pdf_output into gd_buffer.
       endloop.
       translate gd_buffer using '~ '.
       do.
         it_mess_att = gd_buffer.
         append it_mess_att.
         shift gd_buffer left by 255 places.
         if gd_buffer is initial.
           exit.
         endif.
       enddo.
       ld_email   = p_email.
       ld_mtitle = p_mtitle.
       ld_format              = p_format.
       ld_attdescription      = p_attdescription.
       ld_attfilename         = p_filename.
       ld_sender_address      = p_sender_address.
       ld_sender_address_type = p_sender_addres_type.
    *#Fill the document data.
       w_doc_data-doc_size = 1.
    *#Populate the subject/generic message attributes
       w_doc_data-obj_langu = sy-langu.
       w_doc_data-obj_name  = 'SAPRPT'.
       w_doc_data-obj_descr = ld_mtitle .
       w_doc_data-sensitivty = 'F'.
    *#Fill the document data and get size of attachment
       clear w_doc_data.
       read table it_attach index w_cnt.
       w_doc_data-doc_size =
          ( w_cnt - 1 ) * 255 + strlen( it_attach ).
       w_doc_data-obj_langu  = sy-langu.
       w_doc_data-obj_name   = 'SAPRPT'.
       w_doc_data-obj_descr  = ld_mtitle.
       w_doc_data-sensitivty = 'F'.
       clear t_attachment.
       refresh t_attachment.
       free t_attachment.
       t_attachment[] = it_attach[].
      clear it_attach[].
      refresh  it_attach[].
      free  it_attach[].
    *#Describe the body of the message
       clear t_packing_list.
       refresh t_packing_list.
       t_packing_list-transf_bin = space.
       t_packing_list-head_start = 1.
       t_packing_list-head_num = 0.
       t_packing_list-body_start = 1.
       describe table it_message lines t_packing_list-body_num.
       t_packing_list-doc_type = 'RAW'.
       append t_packing_list.
    *#Create attachment notification
       t_packing_list-transf_bin = 'X'.
       t_packing_list-head_start = 1.
       t_packing_list-head_num   = 1.
       t_packing_list-body_start = 1.
       describe table t_attachment lines t_packing_list-body_num.
       t_packing_list-doc_type   =  ld_format.
       t_packing_list-obj_descr  =  ld_attdescription.
       t_packing_list-obj_name   =  ld_attfilename.
       t_packing_list-doc_size   =  t_packing_list-body_num * 255.
       append t_packing_list.
    *#Add the recipients email address
       clear t_receivers.
       refresh t_receivers.
       free t_receivers.
       clear : email.
       select single usrid_long into email from pa0105 where pernr = wa_pernr-pernr
         and subty = '0010' and seqnr = ''.
       t_receivers-receiver = email.
       t_receivers-rec_type = 'U'.
       t_receivers-com_type = 'INT'.
       t_receivers-notif_del = 'X'.
       t_receivers-notif_ndel = 'X'.
       append t_receivers.
       ld_sender_address = 'HRD1'.
       ld_sender_address_type = 'B'.
       call function 'SO_DOCUMENT_SEND_API1'
            exporting
                 document_data              = w_doc_data
                 put_in_outbox              = 'X'
                 sender_address             = ld_sender_address
                 sender_address_type        = ld_sender_address_type
                 commit_work                = 'X'
            importing
                 sent_to_all                = w_sent_all
            tables
                 packing_list               = t_packing_list
                 contents_bin               = t_attachment
                 contents_txt               = it_message
                 receivers                  = t_receivers
            exceptions
                 too_many_receivers         = 1
                 document_not_sent          = 2
                 document_type_not_exist    = 3
                 operation_no_authorization = 4
                 parameter_error            = 5
                 x_error                    = 6
                 enqueue_error              = 7
                 others                     = 8.
    *#Populate zerror return code
       ld_error = sy-subrc.
    *#Populate zreceiver return code
       loop at t_receivers.
         ld_receiver = t_receivers-retrn_code.
       endloop.
    check it and Revert back .
    Regards,
    Thangam.P

  • Two Laptop Computers, Latitude-XP & Prasario-Vista both with 4.0.1 are having trouble keeping navagation window visable even with navagation checked. Any other reports of the same?

    I have been using firefox for a few years now. I like it better than I-explorer but in the last version, 4.0.1 I am having problems accessing the navigation window.
    On two computers: Dell Latitude D530 running XP with XP standard browser. The other is a HP Compaq Presario CQ50 running Vista and Stardock Windowblinds.
    Both computers have the same problem with the current version of Firefox only. The navigation window will not stay displayed. I right click to view that the navigation option is checked but navigation is not there. If I right click and pick options, the navigation window suddenly appears but when I pick done, it disappears again.
    I either have to use a bookmark to navigate where I want or go to my Google search bookmark to get where I want.

    I have been using firefox for a few years now. I like it better than I-explorer but in the last version, 4.0.1 I am having problems accessing the navigation window.
    On two computers: Dell Latitude D530 running XP with XP standard browser. The other is a HP Compaq Presario CQ50 running Vista and Stardock Windowblinds.
    Both computers have the same problem with the current version of Firefox only. The navigation window will not stay displayed. I right click to view that the navigation option is checked but navigation is not there. If I right click and pick options, the navigation window suddenly appears but when I pick done, it disappears again.
    I either have to use a bookmark to navigate where I want or go to my Google search bookmark to get where I want.

  • Network Imac with other PC through the same network router

    I have IMAC wireless and Laptop wireless and PC wired to the same router(NETGEAR).The PC do appear on my list of SHARED. However I can not connect to them. Get a msg that I have to check the IP address or check with ADMIN. Is it somewhere in setting that I have forgotten to click on or...?

    It now works fine! I just restarted finally Was ti tired of trying it out. Now it works.

  • Issue with navigate to more than one domain within the same app

    We would like to create an application for Excel, starting page of which redirects user to other domains (we have separate domain for each customer).
    We followed the instructions described here: https://msdn.microsoft.com/en-us/library/office/jj715716.aspx?ppud=4
    But they helped us only for Desktop version of Excel, in Excel Online we have problems with conversationId.
    If during redirect we keep only window.location.search - exception about null conversationId appears. 
    If during redirect we pass window.location.search and window.location.hash - we have error during call to ContextActivationManager_getAppContextAsync with message 'Failed origin check'.
    Manifest example:
    <?xml version="1.0" encoding="utf-8"?>
    <OfficeApp
    xmlns="http://schemas.microsoft.com/office/appforoffice/1.1"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:type="ContentApp">
    <Id>01eac144-e75a-45a7-b6d7-f1cc60ab0129</Id>
    <Version>1.0.0.0</Version>
    <ProviderName>XYZ</ProviderName>
    <DefaultLocale>en-US</DefaultLocale>
    <DisplayName DefaultValue="XYZ Excel app" />
    <Description DefaultValue="XYZ Excel app" />
    <AppDomains>
    <AppDomain>https://a.xyz.net</AppDomain>
    <AppDomain>https://b.xyz.net</AppDomain>
    </AppDomains>
    <Hosts>
    <Host Name="Workbook" />
    </Hosts>
    <DefaultSettings>
    <SourceLocation DefaultValue="https://xyz.net/index.html" />
    <RequestedWidth>400</RequestedWidth>
    <RequestedHeight>300</RequestedHeight>
    </DefaultSettings>
    <Permissions>ReadWriteDocument</Permissions>
    <AllowSnapshot>false</AllowSnapshot>
    </OfficeApp>

    Hi Edward,
    Thank you very much for your response.
    Main problem is that after redirect we will be on the page, that wants to behave like app for Office and have access to Office JS api. But initialization of Office JS api fails.
    Here is sample code, used bubbles application as example:
    <html>
    <head>
    <title>Redirect test</title>
    <script src="https://appsforoffice.microsoft.com/lib/1.1/hosted/office.debug.js" type="text/javascript"></script>
    <script type="text/javascript">
    Office.initialize = function (reason) {
    console.log('Office.initialize called');
    var APP_URL = "https://bubbles.azurewebsites.net";
    function redirect() {
    performRedirect(APP_URL);
    function redirectWithSearch() {
    performRedirect(APP_URL + window.location.search);
    function redirectWithHash() {
    performRedirect(APP_URL + window.location.search + window.location.hash);
    function performRedirect(url) {
    console.log('url = ' + url);
    window.location.href = url;
    </script>
    </head>
    <body>
    <button type="button" onclick="redirect()">Redirect to bubbles app</button>
    <br/>
    <button type="button" onclick="redirectWithSearch()">Redirect to bubbles app with search</button>
    <br/>
    <button type="button" onclick="redirectWithHash()">Redirect to bubbles app with search and hash</button>
    </body>
    </html>
    Beat regards,
    Mary

  • How to record you screen using quicktime with built in input line and microphone in the same recording?

    i am using th quick time record your screen option and see (when on the audio selction) that you can only either record sound from your computer or from your microphone
    is it possible to have it both on one recording?

    The usual audio-in options on a laptop are None / Built-in Input: Line in / Built-in Microphone: Internal microphone. There's not an option to record system audio unless you've installed a third-party extension such as Soundflower.
    In any event, if you're looking to combine audio inputs, check the Audio MIDI Setup help files (Applications > Utilities > Audio MIDI Setup). Search for "aggregate."

  • Problems on new mac pro with Blackmagick DaVinci Resolve. Others have found the same problems?

    The purchase of the new mac (D700x2, 32Mb RAM, 1TB SSD) cost me a lot of money.
    It was intended for use with Adobe Premiere, After effects, Photoshop, and Da Vinci Resolve Blackmagic 10.
    I unwisely upgraded to Mac OS 10.9.3 (hoping that with the new drivers the machine would improve its poor performance).
    A glaring error.
    At the time the workstation is just a pretty ornament because for my job (which I do for more than 20 years old) is completely unusable.
    The machine crashes constantly in DaVinci Resolve.
    All of this is putting a strain on my patience and the patience of my clients.
    I hope that Apple is aware of the situation clearly enough, and assume that for once his responsibilities working to resolve as quickly as possible these unacceptable problems.
    I've always been an Apple customer and "friend" of Apple but this situation is not acceptable.
    Before creating advertising slogans you should create products able to function.
    What is the point of all banchmarks DaVinci Resolve ppoi if the machine is not able to run it for a professional use?
    I beg you: do not slogans and more substance.
    are really very frustrated
    filippo

    This is well known issue but is it Apple fault or Adobe?  http://9to5mac.com/2014/05/21/os-x-10-9-3-breaking-mac-pro-graphics-card-compati bility-with-critical-pro-apps/
    and this is user to user forum no one from Apple is here

  • Can I use a separate internal drive as a back up within the same computer?

    Hello
    I am doing a lot of cloning on my drives, and running out of space on my main external back up drive.
    Along with my main drive in my G4, I have 2 additional internal western digital dives. So I am wondering if it is safe to use one of these extra drives as a back up drive for the other western digital working drive instead of using a separate external drive.
    Please advise.
    Thanks,
    Anneita

    Hi Tom
    My external G Tech hard drive is firewire, so it's bootable. But I'm not using it in this case...just going from one internal drive to another internal drive.
    However, as a back up for this G Tech back up drive, I have a w 2T western digital that I have re-formatted as os extended journaled. I am assuming this western digital drive is not bootable since it is a usb drive, correct?
    So my question is, since the western digital is not bootable, what is the best way to back up my first G Tech back up drive (which will have 5 partitions from 5 different drives on it) to the western digital? (Another words, the G Tech would be my source drive and the western digital would be my destination drive.)
    Could I just drag and drop since the western digital drive is not bootable? What do you think is the best way to go?
    FYI, I have also have super duper.
    Thanks for your help.
    Anneita

  • How can i connect a windwos vista laptop with time capsule. Both are still in the same network

    Hi,
    i have a running wlan network. In this network are a macbook pro, a Vista notebook and the time capsule. The Macbook runs perfectly with the time capsule, but how can I connect the vista machine with the time capsule?
    Thanks for help

    The TC is SMB (windows networking protocol) compatible.
    Is the issue wireless? Can you get internet via the TC?
    Are you trying to access the hard disk?
    Did you load the airport utility for windows..? If not please do so.. that at least is the first step. It loads bonjour for windows, and a connection agent.
    Sometimes that is all that is required.
    Open a windows explorer and type in the address bar
    \\TCname or \\TCIPaddress .. obviously replacing the generic name with actual name or IP.
    You might need to change all the names to SMB standard via the utility. Short no spaces pure alphanumeric.
    You might need to fix the permissions.. ie turn on the guest account if security isn't an issue.
    You might need to fix networking in the vista .. shudder.. notebook.. to ensure it is not blocking the TC.

  • When "Save Link As..." is used, file permissions are changed so that other users of the same computer have full access.

    I have a laptop running Windows Vista Ultimate, and I'm not sure what's been changed in my Firefox, but now, every time I use "Save Link As...", the user permissions for the file have been set to include "USERS" which is then indicated by an icon in the bottom left corner of the file thumbnail. The icon is of the two people you see under "User Accounts and Family Safety" in the Control Panel.
    I do remember a dialogue box coming up saying something about "This file originates from another computer and may be harmful..." or something along those lines when this problem first occurred.
    I thought that problem would only occur for files from one website, but now, whenever I try using "Save Link As...", the user permissions for that file are incorrect.
    If I open the link and download the file manually, it's perfectly fine.

    It seems that the difference between the sites that will open and the one that won't is the Default Authentication provider is set to NTLM on those that open, and Negotiate (Kerberos) on the one that won't. The Authentication Provider for the Default zone
    is Claims Based Authentication on all the sites, just site B (which won't open) is set to Negotiate (Kerberos), the others are set to NTLM.
    Short term: can I change the provider to NTLM without destroying the site?
    Long term: point me in the direction for setting up Kerberos correctly on my server/farm, as from what I can tell Kerberos is the recommended path forward. I'll setup a non-production test site and get it figured out.
    Thanks much.
    Steven

Maybe you are looking for

  • Date format in 01/0000 rather than 01/2011

    Hi could you plase assist if anyone gone through this issue earlier. We are developing the WebI reports based on Bex queries. The mandatory prompt is defined in Bex on Calender Year/ Month with variable "base period".  Once the universe is defined ba

  • Moving columns in an internal table

    Hi Gurus, I have this ALV program which displays the cost element and its corresponding groups (up to 10th level only). My problem is on how to display the report where the first column is the cost element and the succeeding columns the cost element

  • Macbook Startup Problems, and Problems

    When I startup my Macbook, it has been getting stuck on the blue screen typically associated with the startup and log-in. A few unique characteristics of my problem: The screen regularly flashes white from the blue Every so often(rarely) the screen c

  • Blank maps (me too)

    Hi, my maps don't work in iphoto 09. I have tried all basics (replacing plist, turning firewall off, waiting for a long time, restarting, repaired permissions, etc.) but if I turn information on I don't see a map. I also cannot enter new places (it s

  • Cp6 - Something broke! A "lifesaver" best practice reminder!

    First, I should point out a very important best practice of saving your projects often and save your Captivate projects as a new name each time. e.g. project_01, project_02, etc. (or some other variation that makes sense to you) Case in point- Just a