cancel
Showing results for 
Search instead for 
Did you mean: 

Problem in File to ZipFile Scenario

Former Member
0 Kudos

Hi Gurus,

I am Developing Scenario given below...

/people/stefan.grube/blog/2007/02/20/working-with-the-payloadzipbean-module-of-the-xi-adapter-framework

After Execution of the Scenario...I am getting follwing error

SAP:Category>Application</SAP:Category>

<SAP:Code area="MAPPING">EXCEPTION_DURING_EXECUTE</SAP:Code>

<SAP:P1>com/sap/xi/tf/_AKRITI_AN_TTZ_FILE_TO_FILE_</SAP:P1>

<SAP:P2>com.sap.aii.utilxi.misc.api.BaseRuntimeException</SAP:P2>

<SAP:P3>Fatal Error: com.sap.engine.lib.xml.parser.Parser~</SAP:P3>

<SAP:P4 />

<SAP:AdditionalText />

<SAP:ApplicationFaultMessage namespace="" />

<SAP:Stack>com.sap.aii.utilxi.misc.api.BaseRuntimeException thrown during application mapping com/sap/xi/tf/_AKRITI_AN_TTZ_FILE_TO_FILE_: Fatal Error: com.sap.engine.lib.xml.parser.Parser~</SAP:Stack>

Can you please give your suggestions......Actually I want to know what should be the content in text file

-Sudheer

Accepted Solutions (1)

Accepted Solutions (1)

MichalKrawczyk
Active Contributor
0 Kudos

hi,

just check your mapping as this is what is wrong

you didn't even get to the adapter module part (the part which converts

from file to ZIPfile)

if you just want to try zipping you don't even need a mapping at all

you can zip anything - even the source message (with no mapping)

if you want to make it more simple you can configure only the ZIP

adapter module (no plain taxt conversion) and you will have zipped XML

Regards,

Michal Krawczyk

Former Member
0 Kudos

Thanks for your quick responce....

As I am new programmer....I want to know few things....

Actually Mapping means i didnt get u.....

I have created two data types....

one Source and Target....Both are similar.....Then I mapped the fields.....

Then I configured Communication Channels...

In Sender Communication Channel I gave path of FTP Server and placed a text file in it....

In receiver CC I configured Module tab....Then I gave target file as .zip

- Sudheer

MichalKrawczyk
Active Contributor
0 Kudos

hi,

>>>one Source and Target....Both are similar.....Then I mapped the fields.....

this part zou didnąt do correctlz

use the same data type in source and target and no mapping

if you have any problems with that

Regards,

Michal Krawczyk

Former Member
0 Kudos

Hi Krawczyk,

Ok.... I Will try the Mapping and post u back.....

- Sudheer

Former Member
0 Kudos

Hi Krawczyk,

I have removed the mapping...

When I executed the Scenario....Zip file is not placed in the destination...

When I checked in SXMB_MONI sometimes it is showing black flag...sometimes red flag.....

In Runtime workbench the file is not coming to Inbound Channel......

Red Flag Error:

SAP:Code area="MAPPING">EXCEPTION_DURING_EXECUTE</SAP:Code>

<SAP:P1>com/sap/xi/tf/_AKRITI_AN_TTZ_FILE_TO_FILE_</SAP:P1>

<SAP:P2>com.sap.aii.utilxi.misc.api.BaseRuntimeException</SAP:P2>

<SAP:P3>Fatal Error: com.sap.engine.lib.xml.parser.Parser~</SAP:P3>

<SAP:P4 />

<SAP:AdditionalText />

<SAP:ApplicationFaultMessage namespace="" />

<SAP:Stack>com.sap.aii.utilxi.misc.api.BaseRuntimeException thrown during application mapping com/sap/xi/tf/_AKRITI_AN_TTZ_FILE_TO_FILE_: Fatal Error: com.sap.engine.lib.xml.parser.Parser~</SAP:Stack>

I can't understand the problem...

- Sudheer

former_member200962
Active Contributor
0 Kudos

if there is same source and target structure and if no transformation needed then no need of mapping....

Make sure that you have removed your mapping reference from Interface determination also...and activated the same.....the error is again related to the mapping program and still mentions that your mapping program is still being referred.....also make sure that your cache contents are up-to-date..

Regards,

Abhishek.

Former Member
0 Kudos

Hi,

SAP:Code area="MAPPING">EXCEPTION_DURING_EXECUTE</SAP:Code> 
<SAP:P1>com/sap/xi/tf/_AKRITI_AN_TTZ_FILE_TO_FILE_</SAP:P1> 
<SAP:P2>com.sap.aii.utilxi.misc.api.BaseRuntimeException</SAP:P2> 
<SAP:P3>Fatal Error: com.sap.engine.lib.xml.parser.Parser~</SAP:P3> 
<SAP:P4 /> 
<SAP:AdditionalText /> 
<SAP:ApplicationFaultMessage namespace="" /> 
<SAP:Stack>com.sap.aii.utilxi.misc.api.BaseRuntimeException thrown during application mapping com/sap/xi/tf/_AKRITI_AN_TTZ_FILE_TO_FILE_: Fatal Error: com.sap.engine.lib.xml.parser.Parser~</SAP:Stack>

Did you removed the mapping in Integration directory Interface datermination.

If then it may be cache problem.Go to transaction code sxi_cache.select xi runtime cache.Select start complete cache refresh.

Regards,

Prakasu.M

Former Member
0 Kudos

Thank You abhisek and prakasu for your suggesions....

I have corrected the Interface Determination and executed the scenario....

Now its howing successfull(black flag) but zip file cannot be placed in target destination....

I also observed in the Message Content Payload I m getting XML Parsing Error when I checked in

Runtime Workbench.....

I also refreshed the Cache......

- Sudheer

Former Member
0 Kudos

Hi,

As per your preivous reply you are placing a .txt file.As per the blog is used for xml file convert to .txt and ziped the file using PayloadZipBean.Remove the first 3 modules and use the 4th module.

Regards,

Prakasu.M

Former Member
0 Kudos

Hi prakasu,

Thank You for your valuable suggesion ...

Initially I thought normal text file.....After your post I changed it to XML file...

Also I updated Module tab....Now the Scenario executed Successfully....

Thank You Very much....:-)

- Sudheer

Answers (0)