Skip to Content

FCC in SFTP adapter not working

Hello Experts,

Currently I am working on SFTP adapter. The same configuration is working fine for FTP adapter.

Below is my structure.

<Record> (1..1)
<Header>(1..1)
<Imp/> (1..1)
</Header>
<Item>(1..unbounded)
<Data/>(1..1)
</Item>
</Record>

Recordset structure in channel : Header,1,Item,9999

FCC parameters :

Header.fieldSeparator 'nl'
Header.fieldNames Imp
Item.fieldSeparator 'nl'
Item.fieldNames Data


In SFTP i am facing below issue (error is highlighted in bold):

Recordset structure
1. Header,1,Item,5(exact number of line item from sample file) : interface is running fine.


2. Header,1,Item,* : Exception received: com.sap.aii.adapter.sftp.ra.rar.conversion.exception.ParserException: Record type: Header missing in the end of the file


3. Header,1,Item,9999 : Exception received: com.sap.aii.adapter.sftp.ra.rar.conversion.exception.ParserException: Record for segment:Item not found

Can anybody help me with this??

Regards

Ankyy


Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

6 Answers

  • Jun 19, 2017 at 03:41 PM

    Ankyy,

    Please check Below :

    If the below FCC dosn't . Please check for the patch as suggested .Below Example is tested with File Adapter.

    Br,

    Manoj

    Add comment
    10|10000 characters needed characters exceeded

  • Jun 20, 2017 at 12:05 PM

    If you have deployed SFTP PGP Add on 1.0, then it should work fine.

    Anyway, try once putting additionally below -

    igoneRecordSetName = true

    Header.endSeparator = 'nl'

    Item.endSeparator = 'nl'

    If still the issue will be there, then you should definitely check the patch level and talk to SAP or else you can use MessageTarformationBean to do the FCC

    Thanks,

    Apu

    Add comment
    10|10000 characters needed characters exceeded

  • Jun 19, 2017 at 12:47 PM

    There may be some bugs on the SFTP adapter. Which SP/Patch Level are you on?

    You can check a workaround on: https://archive.sap.com/discussions/thread/3959970

    Or maybe you need to update your system according to SAP Note 2144272 - SFTP Adapter Support for Large File Handling and Content Conversion.

    Regards,

    Luis

    Add comment
    10|10000 characters needed characters exceeded

  • Jun 19, 2017 at 12:57 PM

    Hi Ankyy!

    In case of recordset with "*" occurence I guess, that you shoud define keys for recordsets.

    Regards, Evgeniy.

    Add comment
    10|10000 characters needed characters exceeded

  • Jun 20, 2017 at 12:24 PM

    Can you try once using Module Beans?

    we also faced similar kind of issues that's because of bug in SFTP adapter FCC.

    Add comment
    10|10000 characters needed characters exceeded

  • Jun 28, 2017 at 11:17 AM

    Hello All,

    We actually changed Data type structure and little changes in mapping. Interface is working now.

    Thanks for your help.

    Regards

    Ankyy

    Add comment
    10|10000 characters needed characters exceeded