Attachment file not picked - File to Mail scenario

Hi,
I'm just trying out the file to mail scenario as suggested in blog:
https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1685 [original link is broken] [original link is broken] [original link is broken]
I created a xml file as the main mail content(main.xml). And I also have an attachment file(txt) placed at the same location. The file adapter picks the mail.xml, but not the attachment txt file. I can see the mail in my inbox, with the mail.xml added as an attachment..
I have added the "additional files" in the File adapter configuration. Also in mail adapter configuration, I have checked "Keep attachments"
Are there any other configurations I'm missing out???
When I check in XI ABAP engine, sxmb_moni, I see the following error:
<SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
  <SAP:Category>Application</SAP:Category>
  <SAP:Code area="MAPPING">EXCEPTION_DURING_EXECUTE</SAP:Code>
  <SAP:P1>com/sap/xi/tf/_Mail_MM_</SAP:P1>
  <SAP:P2>java.lang.NullPointerException</SAP:P2>
  <SAP:P3 />
  <SAP:P4 />
  <SAP:AdditionalText />
  <SAP:ApplicationFaultMessage namespace="" />
  <SAP:Stack>java.lang.NullPointerException thrown during application mapping com/sap/xi/tf/_Mail_MM_:</SAP:Stack>
  <SAP:Retry>M</SAP:Retry>
  </SAP:Error>

Hi,
Thanks for the quick response...
Prateek,
the mapping is fine in IR.
Sanjeev,
Making the optional parameter created a failure in the communication channel.
the error the file sender returns in XI runtime workbench is
"Error: java.lang.Exception: Add attachment: Mandatory additional payload file 'main.txt' not found!" though my attachment name is  "Attachment.txt" . I renamed the attachment file to "main.txt", and made necessary changes in Additional file configurations too...
I have the attachment in the same location as the main content xml file. Should I specify somewhere the location of my attachment file too?
Gabriel,
Very useful link. but I dont see the failure in sxmb_moni now, may be because the failure occurs at the Communication Channel level itself????
-Ajitha

Similar Messages

  • [svn:fx-trunk] 13687: Add in osmf and flash-integration localized files not picked up in the previous commit  (13686)

    Revision: 13687
    Revision: 13687
    Author:   [email protected]
    Date:     2010-01-21 07:25:58 -0800 (Thu, 21 Jan 2010)
    Log Message:
    Add in osmf and flash-integration localized files not picked up in the previous commit (13686)
    Added Paths:
        flex/sdk/trunk/frameworks/projects/flash-integration/bundles/de_DE/
        flex/sdk/trunk/frameworks/projects/flash-integration/bundles/de_DE/docs/
        flex/sdk/trunk/frameworks/projects/flash-integration/bundles/de_DE/docs/packages.dita
        flex/sdk/trunk/frameworks/projects/flash-integration/bundles/fr_FR/
        flex/sdk/trunk/frameworks/projects/flash-integration/bundles/fr_FR/docs/
        flex/sdk/trunk/frameworks/projects/flash-integration/bundles/fr_FR/docs/packages.dita
        flex/sdk/trunk/frameworks/projects/flash-integration/bundles/ja_JP/
        flex/sdk/trunk/frameworks/projects/flash-integration/bundles/ja_JP/docs/
        flex/sdk/trunk/frameworks/projects/flash-integration/bundles/ja_JP/docs/packages.dita
        flex/sdk/trunk/frameworks/projects/flash-integration/bundles/ru_RU/
        flex/sdk/trunk/frameworks/projects/flash-integration/bundles/ru_RU/docs/
        flex/sdk/trunk/frameworks/projects/flash-integration/bundles/ru_RU/docs/packages.dita
        flex/sdk/trunk/frameworks/projects/flash-integration/bundles/zh_CN/
        flex/sdk/trunk/frameworks/projects/flash-integration/bundles/zh_CN/docs/
        flex/sdk/trunk/frameworks/projects/flash-integration/bundles/zh_CN/docs/packages.dita
        flex/sdk/trunk/frameworks/projects/osmf/bundles/de_DE/
        flex/sdk/trunk/frameworks/projects/osmf/bundles/de_DE/docs/
        flex/sdk/trunk/frameworks/projects/osmf/bundles/de_DE/docs/org.osmf.media.xml
        flex/sdk/trunk/frameworks/projects/osmf/bundles/de_DE/docs/org.osmf.net.xml
        flex/sdk/trunk/frameworks/projects/osmf/bundles/de_DE/docs/packages.dita
        flex/sdk/trunk/frameworks/projects/osmf/bundles/fr_FR/
        flex/sdk/trunk/frameworks/projects/osmf/bundles/fr_FR/docs/
        flex/sdk/trunk/frameworks/projects/osmf/bundles/fr_FR/docs/org.osmf.media.xml
        flex/sdk/trunk/frameworks/projects/osmf/bundles/fr_FR/docs/org.osmf.net.xml
        flex/sdk/trunk/frameworks/projects/osmf/bundles/fr_FR/docs/packages.dita
        flex/sdk/trunk/frameworks/projects/osmf/bundles/ja_JP/
        flex/sdk/trunk/frameworks/projects/osmf/bundles/ja_JP/docs/
        flex/sdk/trunk/frameworks/projects/osmf/bundles/ja_JP/docs/org.osmf.media.xml
        flex/sdk/trunk/frameworks/projects/osmf/bundles/ja_JP/docs/org.osmf.net.xml
        flex/sdk/trunk/frameworks/projects/osmf/bundles/ja_JP/docs/packages.dita
        flex/sdk/trunk/frameworks/projects/osmf/bundles/ru_RU/
        flex/sdk/trunk/frameworks/projects/osmf/bundles/ru_RU/docs/
        flex/sdk/trunk/frameworks/projects/osmf/bundles/ru_RU/docs/org.osmf.media.xml
        flex/sdk/trunk/frameworks/projects/osmf/bundles/ru_RU/docs/org.osmf.net.xml
        flex/sdk/trunk/frameworks/projects/osmf/bundles/ru_RU/docs/packages.dita
        flex/sdk/trunk/frameworks/projects/osmf/bundles/zh_CN/
        flex/sdk/trunk/frameworks/projects/osmf/bundles/zh_CN/docs/
        flex/sdk/trunk/frameworks/projects/osmf/bundles/zh_CN/docs/org.osmf.media.xml
        flex/sdk/trunk/frameworks/projects/osmf/bundles/zh_CN/docs/org.osmf.net.xml
        flex/sdk/trunk/frameworks/projects/osmf/bundles/zh_CN/docs/packages.dita

  • Libc.so: file not recognized: File format not recognized

    Hi,
    While running the "cd $ORACLE_HOME/procbuilder60/lib; make -f ins_procbuilder.mk install"
    i am getting the error.
    [appldev@datadev lib]$ cd $ORACLE_HOME/procbuilder60/lib; make -f ins_procbuilder.mk install
    rm -f de60desm /appldev/devora/iAS/6iserver/bin/de60desm
    - Linking de60desm executable...
    gcc -o de60desm -L/appldev/devora/iAS/6iserver/lib/ -L/appldev/devora/iAS/6iserver/lib/ -L/appldev/devora/iAS/6iserver/lib//stubs/ \
    /appldev/devora/iAS/6iserver/procbuilder60/lib/detk2.o /appldev/devora/iAS/6iserver/procbuilder60/lib/demsr.o /appldev/devora/iAS/6iserver/procbuilder60/lib/demcl.o \
    /appldev/devora/iAS/6iserver/procbuilder60/lib/ui10.o /appldev/devora/iAS/6iserver/procbuilder60/lib/uiicxd.o \
    /appldev/devora/iAS/6iserver/rdbms/lib/defopt.o -lde60 \
    -lca60 -lucol60 \
    -lnvu60 -lnvc60 -lnvs60 -luicc60 -lmmiw60 -lmmov60 -lmma60 -lmmos60 -lmmoi60 -lmmia60 -lmmft60 -lmmcm60 -luihx60 -luihx60 -luc60 -luipr60 -luimotif60 -lot60 -lrem60 -lree60 -lrec60 -luiimg60 -luimotif60 -luipr60 -luiimg60 -luc60 -lrem60 -luimotif60 -luia60 -ltknqap60 -luipr60 -luimotif60 -lutt60 -lix60 -lixd60 -lrod60 -lror60 -lros60 -lrod60 -lror60 -lros60 -lrod60 \
    -luat60 -lutc60 -lutl60 -lutsl60 -lplsf -lplsb -lextp /appldev/devora/iAS/6iserver/lib/libpsd.a -lplsf -lplsb -lextp \
    -lslax /appldev/devora/iAS/6iserver/lib/nautab.o /appldev/devora/iAS/6iserver/lib/naeet.o /appldev/devora/iAS/6iserver/lib/naect.o /appldev/devora/iAS/6iserver/lib/naedhs.o `cat /appldev/devora/iAS/6iserver/lib/naldflgs` -lnetv2 -lnttcp -lnetwork_d -lnz -lnzr -lnsslb8 -lbcert -lncr -lnetv2 -lnttcp -lnetwork_d -lnz -lnzr -lnsslb8 -lbcert -lclient -lvsn -lcommon -lgeneric -lmm -lnlsrtl3 -lcore4 -lnlsrtl3 -lcore4 -lnlsrtl3 -lnetv2 -lnttcp -lnetwork_d -lnz -lnzr -lnsslb8 -lbcert -lncr -lnetv2 -lnttcp -lnetwork_d -lnz -lnzr -lnsslb8 -lbcert -lclient -lvsn -lcommon -lgeneric -lepc -lnlsrtl3 -lcore4 -lnlsrtl3 -lcore4 -lnlsrtl3 -lclient -lvsn -lcommon -lgeneric -lnlsrtl3 -lcore4 -lnlsrtl3 -lcore4 -lnlsrtl3 `cat /appldev/devora/iAS/6iserver/lib/sysliblist` -ldl -lpthread -lm -L/usr/lib -lm -L/usr/X11R6/lib -lXm -L/usr/X11R6/lib/ -L/usr/X11R6/lib/ -lXt -lX11 -lm -lix60 -lixd60 -lX11 -lnlsrtl3 -lXp -lXext
    /appldev/devora/iAS/6iserver/lib//stubs//libc.so: file not recognized: File format not recognized
    collect2: ld returned 1 exit status
    make: *** [de60desm] Error 1
    My OS version is RHEL 5.
    Please suggest.
    Thanks in advance.

    But We are facing another issue while running "cd $ORACLE_HOME/reports60/lib; make -f ins_reports60w.mk install"
    [appldev@datadev lib]$ export LD_LIBRARY_PATH=/appldev/devora/8.0.6/network/jre11/lib/i686/native_threads/
    [appldev@datadev lib]$ cd $ORACLE_HOME/reports60/lib; make -f ins_reports60w.mk install
    Last few lines Error:
    ld -shared -o rwows60.so -z text -G -export-dynamic -L/appldev/devora/8.0.6/lib/ -L/appldev/devora/8.0.6/network/jre11/lib/linux/native_threads -L/appldev/devora/8.0.6/network/jre11/lib/i686/native_threads /appldev/devora/8.0.6/reports60/lib/rxmawt.o /appldev/devora/8.0.6/reports60/lib/rwsows3.o /appldev/devora/8.0.6/reports60/lib/rwswif.o /appldev/devora/8.0.6/reports60/lib/rwswcj.o /appldev/devora/8.0.6/reports60/lib/rwswcs.o /appldev/devora/8.0.6/reports60/lib/rwswm.o /appldev/devora/8.0.6/reports60/lib/rwsws.o /appldev/devora/8.0.6/reports60/lib/rwswcm.o /appldev/devora/8.0.6/reports60/lib/rwswk.o /appldev/devora/8.0.6/reports60/lib/rwswu.o /appldev/devora/8.0.6/reports60/lib/rwswur.o /appldev/devora/8.0.6/reports60/lib/rwswx.o -lzrc60 -lca60 /appldev/devora/8.0.6/lib/nautab.o /appldev/devora/8.0.6/lib/naeet.o /appldev/devora/8.0.6/lib/naect.o /appldev/devora/8.0.6/lib/naedhs.o -lnetv2 -lnttcp -lnetwork_d -lnz -lnzr -lnsslb8 -lbcert -lncr -lnetv2 -lnttcp -lnetwork_d -lnz -lnzr -lnsslb8 -lbcert -lclient -lvsn -lcommon -lgeneric -lmm -lnlsrtl3 -lcore4 -lnlsrtl3 -lcore4 -lnlsrtl3 -lnetv2 -lnttcp -lnetwork_d -lnz -lnzr -lnsslb8 -lbcert -lncr -lnetv2 -lnttcp -lnetwork_d -lnz -lnzr -lnsslb8 -lbcert -lclient -lvsn -lcommon -lgeneric -lepc -lnlsrtl3 -lcore4 -lnlsrtl3 -lcore4 -lnlsrtl3 -lclient -lvsn -lcommon -lgeneric -lnlsrtl3 -lcore4 -lnlsrtl3 -lcore4 -lnlsrtl3 -ldl -lm -lpthread -ldl -lpthread -lm -L/usr/lib -lm -lc
    /usr/lib/libc.so: file not recognized: File format not recognized
    make: *** [rwows60.so] Error 1
    Kindly suggest..What is the document/step you are following?
    Thanks,
    Hussein

  • Spotlight stopped finding files, even after "index". They're visible files, not system files (like.jpg, .xls, .doc). This happened for no apperent reason.

    Spotlight stopped finding files, even after "index". They're visible files, not system files (like.jpg, .xls, .doc). This happened for no apparent reason.
    Worked well with Yosemite the first week, but now it doesn't.

    Any advice would be helpful. Thanks

  • IPhone 4S will not pick up AOL mail?

    New phone does fine with gmail but does not pick up aol mail.  Added account properly and completed troubleshooting steps.  Confirms that account is active but...no mail.

    Remove it from the phone and add again...  I only use AOL, and have 6 accounts on my phone for various reasons, and all work.  AOL, is really a horrible provider, and is only getting worse... I'm waiting for the option to "transfer to different email" option so that I can be done with them, but until then your kinda stuck.

  • File to Idoc - File not picked up

    Hi experts,
                   In the file to idoc scenario when i post a file in the file server it is not picked up by the file adapter. But in the communication channel monotoring it reports <b>'Process finished sucessfully'</b>.
    Help me out in this issue.
    Regards
    Santhosh Kumar V

    HI Santhosh
    if you are using NW latest version.check in Communication channel monitoring
    otherwise in Adapter monitoring.
    Check u r Sender Communication channel working or not... in RWB->Component monitoring->Communication channel monitoring..
    in which color it is displaying u r Sender Communication channel?? If it is in RED color then u r sender cc is error one.
    Check the following:
    1. Name of the input file and the filename in communication channel should match.
    2. The communcation channel is activated
    3. The folder path is correct.
    4. The Processing mode is "Delete"
    5. XI server is up when u try the scenario
    6. The adapter has status green in RWB Adapter Monitoring
    7. Sender Agreement is properly configured
    As explained above
    See ,,
    --Check the FTP server details
    --Check the User.pwd and authorisations -- to read file,
    --Check the File name sapecified in sender CC, and check the file i spicked by CC or not in RWB channelmonitorservlet
    by http://host:port/mdt/channelmonitorservlet
    --Also see the below links
    /people/michal.krawczyk2/blog/2005/08/17/xi-operation-system-command--error-catching
    OS Command on FTP
    OS command line script - Need help
    FTP - Run OS Command before file processing
    /people/sravya.talanki2/blog/2005/08/23/sender-xi-ftp-adapter-with-regular-path-expression-150-abap - Sender XI FTP Adapter with Regular Path Expression – ABAP
    Cheers..
    Vasu
    <i>** Reward Points if found useful **</i>

  • File not picked up strange problem

    Hi all,
    I am doing File to file tranfer .
    my source dir is AL11 and i am ftp the file to reciver system .
    I am encountering strange problem .
    Some times my file adapter pick the file  and tranfer the files sucessfull  and sometimes  it does not pick the file . i trying to pick same files always  i.e *.txt
    in RWB cc it show no error . it gives message  polling sucess but no message id in it .
    i tried to deacitve and active the adapter , but it is of no use .
    if anyone  faced this type of problem please reply
    Thanks

    Hi,
    Some times file adapter will not pick the file it will be strange u cant find any error regarding it..........i thnik u have proper authorization for AL11 because file adapter is picking the file...
    check the processing parameters what is the mode of trasfer is it test or delete.....
    better to have NFS at both the ends or take NFS at sender side...
    Regards,
    Phani

  • FIle not picked up by File Adapter

    Dear all,
    File adapeter is not picking the files from the source directory by the PI system.
    We could see that the files are available in the source system, kindly suggest me in this regard.
    Thanks for the support.
    Best Regards,
    Piyush

    apart from the above options you can try some of the below:
    1. STOP and RESTART the channel. since some time the file chanel becomes isolated and the handshaking doesn't happen properly.
    2. you should always give a "time out" in the sender channel.
    3. check the folder RIGHTS, you can try making it 777 (full READ,WRITE and EXECUTE) for the time being. Later you can customize
        your rights as per the requirement.
    Edited by: SANJAY BADHAI on Nov 24, 2010 3:41 PM

  • File not picking up in FTP server

    Hi SAP-XI experts,
    2 different files are send to same FTP server but one file was picked but other was not picking.
    Error that came while monitoring CC is as below:
    "Conversion of file content to XML failed at position 0: java.lang.Exception: ERROR converting document line no. 1 according to structure 'row':java.lang.Exception: ERROR in configuration / structure 'row.': More elements in file csv structure than field names specified!".
    Seeing the error we cross check the content of file present at FTP server. But everything was fine,it contain same no.of fields present in Content conversion and even same length.
    Solution: I added a extra row in Content conversion "row.additionalLastFields   ignore".After that i stop and restart the Communication channel it start picking the file but the Communication channel is still in red.
    Can u please tell me ASAP the reason why the file was not picked first and then after adding extra row it started picking.
    Thanks & Regards
    Vijji

    Hi,
       it is related to some problem with the data only...because i too faced the same issue...i was also not able to see the new line when i try to open the same in notepad++ ... may be some other paramters or data of excel/CSV which is avoiding to display the same..in notepad++
    also try one more thing...enable the new line characters and see if there is any difference...between the processes and failed files...
    HTH
    Rajesh

  • Why the file not picked by PI

    Hi mates:
           I tried to implement a XML-to-XML senario by XI, it is like picking the file from one folder to another .  and I have created and configurated everything for senario in ID and IR. and activated everything. but the file won't be picked up by XI, 
          I used two computers for the senario, one for Xi, one for the business system.
          Could you please tell me why the file can't be picked up by XI. do I have to installed any FTP server
    on the business system?
          Thank you very much!

    Hi Jingying,
                  There is some reasons are happended for the file is not picking.
    1) If use FTP , Check your FTP Connection working or not
    2)If not pick the file to XI , Check data from source end, if it wrong its shows the error in RWB->Communication Channel Monitoring--> File adapter..
    3)Check the sender Communication channel configured properly or not.
    Regards,
    Sateesh N.

  • Name of the attachment is not appearing in the mail!

    Hi group,
    I am using the FM SO_DOCUMENT_SEND_API1 to send the mail with an XSL attachment, it is working fine but the problem is the name of the XSL attachment is not appearing, please see the below code how i am using
    CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
        EXPORTING
          document_data              = gi_doc_data
          put_in_outbox              = 'X'
          sender_address             = lv_sender_address
          sender_address_type        = lv_sender_address_type
          commit_work                = 'X'
        IMPORTING
          sent_to_all                = v_sent_all
        TABLES
          packing_list               = gi_packing_list
          contents_bin               = gi_attachment
          contents_txt               = gi_message
          receivers                  = gi_receivers
    I am passing the gi_packing_list-obj_name as XXX_<date>_<Time> and gi_packing_list-format as XLS. After executing the program the mail has been successfully sent and the attachment too, but the name of the attachment is not appearing. it just showing .xls
    Any input regarding this is highly appreciated.
    Thanks in advance

    hi , suresh
    in gi_packing_list
    do like this,
    gi_packing_list-obj_descr = XXX_<date>_<Time> .
    for file name pass parameter in obj_descr.
    Regards,
    Arpit

  • File adapter issue - files not processed (file name mask is *)

    Hi guys!
    I have a problem I never faced before. My file adapter doesn't process files in the source directory. When I put there exact file's name, it is processed. But when I use * , nothing happen. This is very strange. I was wondering, if problem can't be in that my PI box is UNIX and it's accessing Win filesystem.
    Any ideas, what to try?
    Thank you!
    Olian

    Yes, but I meant the one directory we're working in. We can write, delete there, so we should be able also use wildcards,  don't we?
    However, I tried it on a directory with 777 attributes. There is a file named clooo.ttt. When I run del .ttt I get Requested action not taken, file unavailable. The same for clooo. , clooo*,...  But when I type del clooo.ttt, the file is deleted...
    Any suggestions?
    Olian

  • HDV video is coming in as document files not movie files. What's up?

    Upon capturing my HDV video footage to my scratch disk - using capture settings that have worked properly in the past, I'm getting not movie files in my capture folder... but DOCUMENT FILES.
    I don't know what's going on. This is the second time this has happened. Can anyone shed light on this? Capture settings are HDV, 1440 x 1280, Apple ProRes 422 (standard). Sequence is set up as Apple Pro Res 422 (standard) as well. I'm using FCPS3.
    I'll pop the tape in, hit log and capture, I get a box that I'll rename the clip in, hit capture and off I go. When the tape comes to the end, I hit escape, check out my clips and bam, document files. This is weird.

    see this thread for answers and solutions:
    http://discussions.apple.com/thread.jspa?threadID=2142286&tstart=150

  • Copy the content of the text file not the file itself

    Hi
    I have a problem, I am converting .dat file to .txt file using powershell and there is no problem, but when i try to read that file using the software I am working with, it cant read the file. but when i copy and paste it manually to new file, it works.
    any suggestions?

    You can try something like:
    $file=Get-ChildItemC:\Test\Test.dat
    Rename-Item -Path
    $file
    -NewName
    test.txt
    See if that works
    Freddy91761_1

  • JMS Adapter not picking file in PI7.0

    Hello,
    I am working jms to jms scenario on PI7.0 Service Pack13. file is not able to pick up sendar JMS Channel. I am using WebSphereMQ Transport Protocol. JMS drivers are installed. ports and protocals are correct.
    I checked all parameters of JMS Adapter. no mistake in parameters. What is the problem. Please suggest as soon as possible.
    Thanks
    venkat

    Hi San ,
    Please checke the status of JMS communication channel. In Runtime work bench , U will get the adapter monitoring there if any activity happens it shows the event details .
    I hope picking the file is initial event so you can get some idea with those event log for Communication channel .
    Cheers,
    Reddy

Maybe you are looking for

  • InDesign CC2014 File Will Not Open

    This file was created by me a few months ago with the same version of CC that I am using now... and now I cannot open it and keep getting the error: "Adobe InDesign may not support the file format, a plug-in that supports the file format may be missi

  • Where is the "Scrollable Frame" on the Overlay Creator panel?

    I can't seem to find the "Scrollable Frame" on my Overlay Creator panel and now I'm caught in the middle. Is there anything that I missed? I can only see the following: Hyperlink Slideshow Image Sequence Audio & Video Panorama Web Content Pan & Zoom.

  • USEREXIT FOR HANDLING INFO COMING FROM VERTEX

    Hello, When we calculate the taxes during processing of Sales Order in case of Canadian Company codes the GST/HST and PST/QST taxes come clubbed together. Is there a way(in config)/user-exit where I could seperate each of them so that these different

  • VI Server - Property Node (Execution: Close After Call)

    I would like to dynamically call and run a VI and have its front panel close after it is called. The method I tried was: 1) Open VI Reference to the VI. 2) Set Front Panel.Open and Exec.CloseFPAfterCall Properties to True. 3) Use Invoke Node (Run VI

  • Playlists MUST be in alphabetical order?

    I want to arrange my classical music playlists in order of the time composers were active. For example, I want Mozart, Beethoven, Brahms in that order. But playlists by default give me Beethoven, Brahms, Mozart in alphabetical order. I tried moving t