Skip to Content
avatar image
Former Member

File to File Scenario - Attachment not received in the target directory

Hello Experts,

I have a File to File scenario, the requirement is  'Source System' places two files in source directory where PI should pick 1 file as a main payload and the other as an attachment and place both the files(main payload/XML file & attachment/PDF file) should be placed in the target directory.

As I see we dont have a standard/direct solution in 'File Adapter' to pick and place the attached file, Kindly suggest what can to be done to receive the attachment by sender File adapter and place it in the target using File adapter.

Do we have any Adapter Modules or any other solutions where we can pick the files as attachment and also place the attached files in target directory.

Please note, we have mapping involved for the main payload whereas the attachment must be sent as is.

Thank you.

Kind Regards,

Pooja

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Dec 29, 2014 at 07:29 AM

    Hi Pooja,

    Have you tried the Additional Files utility in the Sender file adapter?

    Check this document http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/404ee507-3fbc-2e10-00bc-be90ab28d036?QuickLink=index&…

    Regards.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member


      Hi Iñaki,

      Thanks for your reply.

      Yes, PI is picking the files using "Additional File(s)" option in the sender channel.

      With this the all the files are getting picked but the picked attachments are not being shown in the traget directory.

      Regards,

      Pooja

  • Dec 29, 2014 at 08:26 PM

    Pooja,

    I think Receiver File channel cannot handle attachments. i.e. only one file can be written to target. If PayloadSwapBean is used, main payload will be lost.

    Try this solution: - Split the message into two messages (in Receiver Determination add additional receiver system, maybe temp business service).

    First receiver file channel will write main payload.

    In second receiver file channel use PayloadSwapBean, it will write attachment.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hello Raghu,

      Thank you for the solution.

      As there is no direct approch to handle attachments using File Adapter, i was trying to use SOAP adapter in the receiver channel.

      I will keep you posted for any updates.

      Regards,

      Pooja

  • Dec 30, 2014 at 07:11 AM

    Hi Pooja,

    Could you see the attachments in the monitoring?, why do you really need have the additional files like attachments in a file to file scenario?, in a file to soap for example i think can be necessary if the WS endpoint demands the two files at the same tame, but in a file to file i don't figure out the reason, i've said this because with Advanced selection for Source File option is easier to get the files although they will  be picked up one after another.

    Hope this helps.

    Regards.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Iñaki Vila

      Hi Iñaki,

      Yes, i've checked and the AXIS libraries are properly installed.

      Other interfaces which are using Axis protocol are working fine.

      Regards,

      Pooja