Skip to Content
author's profile photo Former Member
Former Member

Error when sending additional file contents using the File-Adapter

Hello,

I have successfully created a file-inbound-adapter, that sends XML-files to the XI Integration Server. The XI routes these messages successfully to my file-outbound-adapter. So far, so good.

Now I want to add <b>additional file contents</b> to my messages using the following specifications in my inbound adapter:

<b>XMB.AdditionalPayloads=addaPDF

XMB.addaPDF.ContentType=text/plain

XMB.addaPDF.ContentKind=T

file.addaPDF.namePart=".xml"=".pdf"

file.addaPDF.optional=No</b>

This also works fine. The Integration server routes the messages and I can see the attached PDF-files within the XI-Message-Monitor - but... the file-outbound-adapter creates ONLY the XML-File! The attached PDF-File seems to get lost!!

<u>Note</u>: When I use the specification <b>mode=XMBSTREAM2FILE</b> within my file-outbound-adapter, the adapter creates a file, containing all content of the SOAP-Message (including the content of PDF-Files)!

Is there any way to configure the outbound-adapter to create <u>TWO SEPARATE</u> files, means XML and PDF - instead of only <u>ONE big stream</u> (which would be difficult to handle)?

I would appreciate any help on this issue.

Thanks,

Markus

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on May 27, 2004 at 04:13 PM

    Markus,

    Since you have developed expertise with File adapter, would appreciate if you could please help me with my problem as given below ....

    =================

    I have my File Adapter configured & activated. The adapter is polling for the file on the NT server (same as Adapter Engine). But it gives back an error message as below :

    ==========

    Sending message '22944890a9ce11d8957fe2e40afa0417' to Integration Server failed with 'CONFIG.LCR_ERROR': 'No own business system', context '' , must retry

    Error sending document of file 'c:\temp\InFlatFile.txt':

    com.sap.aii.messaging.net.TransportException: Sending message '22944890a9ce11d8957fe2e40afa0417' to Integration Server failed with 'CONFIG.LCR_ERROR': 'No own business system', context '' , must retry

    - quit this run, wait for retry

    ==========

    The <b>Status</b> of the File Adapter (in Adapter Engine) is <i>Started</i> but the <b>Condition</b> is <i>Failed</i> (due to above problem).

    Business system is set up in SLD. RFC connections are defined.

    ========================

    Thanx in advance for your time & help.

    Homiar.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Homiar,

      have you included:

      XMD.SLDConfiguration=SLDaccessor

      in the config of the adapter file so that the SLD can be accessed?

      Here is my config file I use for an inbound file adapter to get a file into the XI engine:

      1. file adapter java class

      classname=com.sap.aii.messaging.adapter.ModuleFile2XMB

      mode=FILE2XMB

      XMD.SLDConfiguration=SLDaccessor

      PWD.tokenHandler=PWtokens

      1. Integration Engine address and document settings (example, see docu)

      XMB.TargetURL=http://sapnts25:8000/sap/xi/engine?type=entry

      XMB.SenderBusinessSystem=ED1

      XMB.SenderInterfaceNamespace=www.fritz.com/ED1

      XMB.SenderInterfaceName=GETMATDELTA

      XMB.ReceiverBusinessSystem=FMIMAGE

      XMB.ContentKind=T

      XMB.ContentType=text/plain

      XMB.QualityOfService=EO

      XMB.User=xibarbox

      XMB.Password=<!%xibarbox%!>

      ##File Adapter specific parameters (example, see docu)

      file.sourceDir=//sapaix08/interface/fritz/xioutbound

      file.sourceFilename=matdelta.txt

      file.processingMode=archiveWithTimestamp

      file.archiveDir=//sapaix08//interface/archive/fritz/xioutbound

      file.pollInterval=300

      What is your config file looking like?

      I had my share of fun with the file adapter, not so great in Version 2.0.

      Stefan

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.