cancel
Showing results for 
Search instead for 
Did you mean: 

Error inF2F mulitiline scenario using substring

Former Member
0 Kudos

Hi,

I am doing a F2F mulitiline scenario using substring

In AdapterFramework , i am getting this message

Sender Adapter v1014 for Party '', Service 'YAMAHA_BUSYS':

Configured at 19:12:31 2008-10-22

Initialization error: Conversion initialization failed with java.lang.Exception: java.lang.NullPointerException

Could you please let me know what could be wrong ?

My content conversion parameters are

Substr.fieldFixedLengths: 10,10,10,10,10,10,10

Substr.fieldNames:FirstName,LastName,MiddleName,City,Place,State,Country

Substr.processFieldNames: fromConfiguration

Thanks

Ram

Accepted Solutions (1)

Accepted Solutions (1)

MichalKrawczyk
Active Contributor
0 Kudos

hi,

have a look at my weblog:

/people/michal.krawczyk2/blog/2004/12/15/how-to-send-a-flat-file-with-fixed-lengths-to-xi-30-using-a-central-file-adapter

BTW

did you fill all configuration in the file adapter?

can you try once more and activate once more?

Regards,

michal

Former Member
0 Kudos

Hi Michal,

I did fill all configuration in the file adapter and when I activated again I got the following message in the AdapterFramwork

Sender Adapter v1014 for Party '', Service 'YAMAHA_BUSYS':

Configured at 19:38:17 2008-10-22

Last message processing started 19:38:32 2008-10-22, Error: Conversion of complete file content to XML format failed around position 0 with java.lang.Exception: ERROR converting document line no. 1 according to structure 'Substr':java.lang.Exception: Consistency error: field(s) missing - specify 'lastFieldsOptional' parameter to allow this

last retry interval started 19:38:32 2008-10-22

length 15,000 secs

Thanks,

Ram

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

can you try exactly with all values from my weblog?

Regards,

michal

Answers (2)

Answers (2)

Former Member
0 Kudos

Thanks

agasthuri_doss
Active Contributor
0 Kudos

Dear Ram,

This will help you,

Regards

Agasthuri Doss

former_member206604
Active Contributor
0 Kudos

Hi Ram,

I think the problem is with the source file

it should be like this for your case

Substr.fieldFixedLengths: 10,10,10,10,10,10,10

Substr.fieldNames:FirstName,LastName,MiddleName,City,Place,State,Country

Sample file

FirstName LastName  MiddleNameCity      Place     State     Country  

Each file length should be 10 and not like this

FirstName LastName MiddleName City Place State Country

Thanks,

Prakash

Former Member
0 Kudos

Hi ,

Thank you verymuch Prakash and Agasthuri Doss

I did according to Prakash's instructions. Now file is picked up from the source but not reaching the target.

In Adapter Framewok, I am getting the following message:

Receiver Adapter v1027 for Party '', Service 'YAMAHA_BUSYS':

Configured at 16:17:31 2008-10-26

Up and running - no message processing until now

Thanks,

Ram

former_member206604
Active Contributor
0 Kudos

Hi,

Did you check the status in SXMB_MONI and then in MDT. Check if everything is fine and also see if the payload if as expected.

Thanks,

Prakash

former_member192798
Active Contributor
0 Kudos

Hi MLR,

If the CC is green and says "no messages processed until now" it is very unlikely that it has anything to do with the settings of the Channel, but rather with the ReceiverAgreement that doesn´t use the correct channel.

Regards.

Praveen

Former Member
0 Kudos

Hi Prakash,

I am getting the following messaging in sxmb_moni

During the application mapping

com/sap/xi/tf/_FILE_2_FILE_MM_ a

com.sap.aii.utilxi.misc.api.BaseRuntimeException

was thrown: RuntimeException in Message-Mapping

transformatio~

How to check MDT ? and payload ?

When i checked the message mapping with F7

The processing Log: No errors identified during check

Thanks,

Ram

former_member206604
Active Contributor
0 Kudos

Hi,

Then there is some problem with your Message mapping.

Download the incoming payload and save it as .xml file. Then in IR go to mapping test tab and load the XML and check what is the error.

You can go to mdt by this URL

http://host:port/mdt

Thanks,

Prakash