cancel
Showing results for 
Search instead for 
Did you mean: 

FCC in SFTP adapter not working

0 Kudos

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


Accepted Solutions (0)

Answers (6)

Answers (6)

0 Kudos

Hello All,

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

Thanks for your help.

Regards

Ankyy

former_member186851
Active Contributor
0 Kudos

Can you try once using Module Beans?

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

0 Kudos

i have tried with Modules beans.. but no luck.

apu_das2
Active Contributor
0 Kudos

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

0 Kudos

I have already tried using above parameters, it didn't work.

Also tried with Bean, still no luck.

manoj_khavatkopp
Active Contributor
0 Kudos

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

0 Kudos

Thanks Manoj.

This is working for FTP adapter but i am getting error in SFTP adapter.

Error : Exception received: com.sap.aii.adapter.sftp.ra.rar.conversion.exception.ParserException: Record for segment:Item not found

Regards

Ankyy

manoj_khavatkopp
Active Contributor
0 Kudos

Then it should be the Patch Issue i believe. Why don't you try with MTB as mentioned in your other thread.

0 Kudos

Yes, i am working on the same.

former_member190293
Active Contributor
0 Kudos

Hi Ankyy!

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

Regards, Evgeniy.

0 Kudos

Hi Evgeniy,

I have already tried defining Key but i am getting same error.

Regards

Ankyy

former_member190293
Active Contributor
0 Kudos

And what is the full set of your FCC parameters?

Regards, Evgeniy.

luisbarros
Participant
0 Kudos

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

0 Kudos

I am working on PO 7.5, SP 04.

I have already checked above link and i am working on MTB, but that is also not giving desired output.

Regards

Ankyy