Unzip the file archived by the File adapter
Hi Experts,
we have a scenario where we are archiving a xml file using the File adapter and also it is being zipped by the OS command.
the script not only zips the file, it also rename the file from *.zip to *.xml.
Hence after archiving when I am trying to open it, the content appears to be junk.
Please suggest how to unzip the file as it got a extension *.xml.
And I also tried renaming the file to *.zip and then to uncompress, but it shows below error
Cannot open : it does not appear to be a valid archive
Thanks in advance,
MK
hi Mk,
instead of using OS command try using the exesting module provided by the SAP, so your job will be easy.
follow this steps in the module processing for UN ZIP
Processing sequence:
Module name: AF_Modules/PayloadZipBean
Type: Local Enterprise Bean
Module key: 3
u2022 Module configuration:
Module key: 3
Parameter name: zip.mode
Parameter value: unzip.
in the commincation channel specify filename.xml
so you can open the file in XML format
Thanks,
Madhav
Note:points if useful
Edited by: madhav poosarla on Aug 14, 2008 8:31 AM
Similar Messages
-
How to get the path of the web-archive on the local filesystem?? [Apache]
Hello all,
Im running a webapplication on a tomcat server.
I need to find out the path of the web-archive on the local filesystem to access several files.
How can I do that with out having an instance of HttpRequest or whatever??Hello Bruce.
Please take a look at the following KBase article. It has a sample that will retrieve the folder structure for a specified Crystal Report template based on the instance name in the file store. The sample there can be easily modified so that it is based on a specific infoObject id.
1549728 - How to find the folder structure in the CMC of a report template based on the instance file name in the output file store.
The KBase can be retrieve from the following link:
https://bosap-support.wdf.sap.corp/sap/support/notes/1549728
Please note that the KBase article is retrieved through the Service MarketPlace.
I hope this helps.
Regards.
- Robert -
Error with Archiving Faulty Source File in Sender FTP adapter
Hi All,
I have configured a Sender FTP adapter with Processing Mode as Archive.
I am able to read the files from FTP server and archive all the successfuly processed file in the PI aplication server directory XXX/success.
We need all the error files also to be archived on PI application server in directory XXXXX/Fail so I have checked the option Archive faulty Source Files and provided the application directory XXXXX/Fail .
I have unchecked the option Archive Files on FTP server.
But the problem is when FTP adapter is getting any error files it is not able to archive it to application directory XXXXX/Fail .
In RWB it is showing the error
Unable to archive faulty input file /data/abc.txt to /XXXX/fail/abc.txt
Cause: com.sap.aii.adapter.file.ftp.FTPEx: 550 rename: No such file or directory
This directory is existing and works fine when I give this directory name in Archive directory of processing mode.
Sender FTP adapter is trying to archive the file in FTP server which I dont want and giving us this error.
If I give any Directory which is present in FTP server my error files are getting archived on FTP server but not in the archived folder.
I have already unchecked the option Archive Files on FTP server.
Please help......
I am on PI 7.11
Regards
Henery HHi Henery,
Check the below thread, this should help you to fix the issue.
FTP adapter: exc. 550 : No such file or directory
Thanks, -
How to get a file in the same dir with the jar-executable
Hi,
I need to read/write a file that exists in the same directory with the jar-executable. How can i do that? I think that when i specify no path for the file, the file has to be in current path. (Is that right?)
Note: I do not know in which directory the jar and the file are.
Thanx in advanceHi,
I need to read/write a file that exists in the same
directory with the jar-executable. How can i do that?
I think that when i specify no path for the file, the
file has to be in current path. (Is that right?)
Note: I do not know in which directory the jar and
the file are.
Thanx in advance
When you specify no path for the file, the file has to be in the directory where the virtual machine was started. ( the directory the java command was invoked in .)
If you can't control the directory in which the vm is started, but you know the name of the .jar file you can do the following. This trick takes advantage of the fact that if you are using classes in a jar file, the name of the jar file must be in your classpath.
public static String getPathOfJar( String nameOfJar )
throws Exception
StringTokenizer st = new StringTokenizer(
System.getProperty( "java.class.path" ) ,
System.getProperty( "path.separator" ) );
String jarfile = "";
while ( st.hasMoreTokens() )
String token = st.nextToken();
if ( token.indexOf( nameOfJar ) > -1 )
jarfile = token;
break;
if ( jarfile.equals("") ) throw new Exception( "Jar not found in classpath" );
String path = jarfile.substring( 0 , jarfile.indexOf( nameOfJar ) );
return path;
//To open a file in the same directory as the sun archive tools.jar
File f = new File( getPathofJar( "tools.jar" ) + "someFile.txt" ); -
Recover Database is taking more time for first archived redo log file
Hai,
Environment Used :
Hardware : IBM p570 machine with P6 processor Lpar of .5 CPU and 2.5 GB Ram
OS : AIX 5.3 ML 07
Cluster: HACMP 5.4.1.2
Oracle Version: 9.2.0.4 RAC
SAN : DS8100 from IBM
I have used flash copy option to copy the database from production to test machine. Then tried to recover the database to an consistent state using the command "recover automatic database until cancel". System is taking long time and after viewing the alert log it was found that, for the first time, if it is reading all the datafiles and it is taking 3 seconds for each datafile. Since i have more than 500 datafiles, it is nearly taking 25 mins for applying the first archived redo log file. All other log files are applied immeidately without any delay. Any suggession to improve the speed will be highly appreciated.
Regards
SridharAfter chaning the LPAR settings with 2 CPU and 5GB RAM, the problem solved.
-
Please give me a procedure and patches to extract the cpio archives from the 10 G database ship_rel10_sol64_db.cpio.gz files in the Solaris 10 environment.
Thanksgo to Oracle site. I believe its is cpio -icbdum < filename
-
Opening an .rar file and converting flac files
I am not sure this belongs in this topic area but since iTunes is the ultimate destination of this file I posted here.
I have a .rar file. It is a compressed file when unzipped will have FLAC audio files in the folder. I need to know how I unzip the .rar file and then how to convert the FLAC file to AIFF or ALAC for use in iTunes.OK, you have 2 jobs ahead of you.
First you need to uncompress the RAR archive. Find a tool that will do this on the Mac. Although I have not personally used it, UnRARx would be a possibility.
When it is unpacked, you will see a folder containing the FLAC files. FLAC is the number one format for lossless audio, but iTunes is unable to handle it. So, use a conversion tool such as Switch for the Mac, and convert the files to AIFF, ALAC, or AAC. Add the converted files to your iTunes library.
Then unless you need them for some non-iTunes purpose, you can discard the RAR archive and the FLACs. -
Q: What is the command to verify the configuration that are not saved or sent to local controllers?
A: We can execute the command that is shown in below image to check the status of the configuration that has been made.
Note: For example I made changes to the default VAP profile and executed the command "show master-configpending" which shows the pending configuration to be saved/sent to local controllers.But that jar file loads without images and icons when it is in other directory.Images should be accessed via a URL rather than using a filename because they will exist as entries in the jar archive not as files. Typically this URL would be obtained by using the Class method [getResource()|http://java.sun.com/javase/6/docs/api/java/lang/Class.html#getResource(java.lang.String)]. There are details in this [Java World article|http://www.javaworld.com/javaworld/javaqa/2002-11/02-qa-1122-resources.html].
-
What is the exclusive criteria showing the UDB is in on-line backup mode?
We have a DB:
1) DB13 shows no backup scheduled at all;
2) LOGARCHMETH1 is pointing to a disk
3) DB14 shows there is a backup history (do not know is online OR offline);
4) no cron job for db2sid or sidadm defined at all.
How to tell
1) is this DB configured to do online backup;
2) is this very moment the DB has a backup running right now?
Thanks a lot!Hello Jennifer
1)
DB2 is capable of doing online backups when log file archiving is enabled, meaning LOGARCHMETH1 is set to a valid destination. In your case it is DISK, and a file system or directory.
You can check it by forcing a log file archive with the archive log command
2)
You can monitor backups in progress with the LIST UTILITIES command
As an alternative, "db2pd -db -util" also will work.
The following paper probably is of interest for you:
A Practical Guide to Backup and Recovery of IBM DB2 for Linux, UNIX and Windows in SAP Environments Part 1: Backup and Recovery - Overview
Regards, Hans-Jürgen -
I recently bought a new Acer laptop. I stopped using Microsoft Windows more than 10 years ago (I am a happy Ubuntu Linux user). However, when I bought my laptop, I was forced to buy it with Windows 8.1 pre-installed on it. I told the salesman I didn't need Windows 8.1 and even if it was pre-installed, the first thing I would do would be to format the hard drive and put Ubuntu Linux on it. In the end, I still had to buy it (and therefore buy a Microsoft product I will never use). I think it would be very beneficial for customers if they could choose the Operating System of their choice (or no OS at all) when buying a new computer. Of course you could still tell that the computer has been only tested and validated with a given version of an Operating System and that there will not be any technical assistance if another OS is used on a given computer. For information, in many countries in Europe, it's illegal to force people to get something when they buy something else. This is unfortunately still what is happening in 2014 in the laptop/desktop World because of Microsoft monopoly.
ML2014: I too would like to consider implementing UBUNTU on an old Acer portable with an AMD processor and a 60GB built in drive that has a known maximum address space of 2gb. It is currently using the Windows XP operating system it came with but in March 2014 Microsoft plans to discvoninue all support. Hopefully they will not take down the text archives on the corporte web, but I would not put it past them to perpetrate that crime. I'm a retired once certified Microsoft Professional that still has an identity on the web set up some years ago. (I forget how many) but Putting UBUNTU on an older portable like the one I have seems like a sensible option when compared to keeping it in a maintenance limbo. I sprang for a new LI-Ion battery for it last year and it is stable as a rock right now, but not used very much and I would like to put it in the hands of an Open Source based Non Profit I work with once it is properly set up and configured so that their one-year VISTA folks can have yet another computer to use in the field. It connects to the local urban free wireless internet and the password protected wifi server in the offices under Windows XP and I do not have a clue about UBUNTU, it would be a learning project for me. Have you come to a decision regarding UBUNTU for your portable. Mine is an ACER 5000.
-
File Sender Adapter - File overwritting in the Archiving folder
Hello Experts,
I am doing File sender to proxy Receiver Async Scenario.
In File Sender adapter, i am using the Archiving option by spacifying the
Archiving path.
Files are picked up and archiving happen successfully.
Problem is: - once the File is picked up and archivied into the Archiving location
If end user again rectifies some data in the same file and place it in the source directory
then i am getting the following error in RWB Commu. channel monitoring.
Failed to archive file 'File1.TXT' as '/Input File location/File1.TXT' after processing. The FTP server returned the following error message: 'com.sap.aii.adapter.file.ftp.FTPEx: 550 File not renamed. File already exists. You may delete the existing file and then rename.u2019 For details, contact your FTP server vendor.
I know this is because of File sender adapter is trying to archive the file with the same name(File1.txt) in the archiving location.
My Question: - Is there any option to allow the File sender Adapter for overwritting the
File in the archiving location.
Thanks & Regards
Jageshcheck if there is proper rights to over write files in the archive folder.
The problem seems to be that the rights/authorization is not there. Else the adapter usually overwrites files in the archive folder unless you use the timestamp option.
Archive
Files that have been successfully processed are moved to an archive directory.
u25A0 To add a time stamp to a file name, select the Add Time Stamp indicator.
The time stamp has the format yyyMMdd-hhMMss-SSS. The time stamp ensures that the archived files are not overwritten and it enables you to sort them according to the time that they were received.
u25A0 Under Archive Directory, enter the name of the archive directory.
u25A0 If you want to archive the files on the FTP server, set the Archive Files on FTP Server indicator. If you do not set the indicator, the files are archived in the Adapter Engine file system. -
How to enable the Archive faulty source file in File adapter
Dear XI expert,
I want to enable the Archive Faultly source file, when the exchange step detects any error then move the source file to the ERROR folder.
I've already applied patch XI ADAPTER FRAMEWORK CORE 7.00 SP10 but haven't seen anythings about this function.
Best regards,
KobsakHi,
Check out this link for info on how to archive the file.
http://help.sap.com/saphelp_nw04/helpdata/en/14/80243b4a66ae0ce10000000a11402f/frameset.htm
Regards,
Vikram -
Garbage name of the Archive File while using the FTP adapter
Hello All
I am using Oralcle FTP adapter to poll a file ,after polling I am deleting the file from the current directory and
archiving it into another directory.
Problem is after archiving the file into the another dirctory name of the is fine changed as follows :
d2wXEgGZrfypNsGa15uzOA==_20081015_082233_0015
I want same name for the archived file as orginal file with timestamp
Please help to solve this problem.
Thanks
Satendra PareYou cannot change the file name in the save dialog, it always uses the originally file name of the form.
But you can use scripting to save a form under another name.
Sample.
http://thelivecycle.blogspot.com/search/label/Save -
The import archive file does not contain a metadata archive.
when i am trying to upload template on webceter portal administrative console i am getting following error , so how to clear it "The import archive file does not contain a metadata archive."
stack trace is
SiteResourceValidateImportOperation> <doValidateImport> Operation aborted because of an exception thrown by subunit (oracle.webcenter.lifecycle.metadata.InitializeUnit)
oracle.webcenter.lifecycle.InvalidEARException: The import archive file does not contain a metadata archive.
at oracle.webcenter.lifecycle.metadata.InitializeUnit.extractTransportSet(InitializeUnit.java:372)
at oracle.webcenter.lifecycle.metadata.InitializeUnit.doImport(InitializeUnit.java:232)
at oracle.webcenter.lifecycle.metadata.InitializeUnit.doValidateImport(InitializeUnit.java:211)
at oracle.webcenter.lifecycle.siteresource.operation.SiteResourceValidateImportOperation.doValidateImport(SiteResourceValidateImportOperation.java:107)
at oracle.webcenter.lifecycle.LifecycleSiteResourceService.doValidateImport(LifecycleSiteResourceService.java:139)
at oracle.webcenter.lifecycle.LifecycleSiteResourceService.doValidateImport(LifecycleSiteResourceService.java:110)
at oracle.webcenter.lifecycle.view.siteresource.LifecycleSRMImportBean.doImport(LifecycleSRMImportBean.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.sun.el.parser.AstValue.invoke(Unknown Source)
at com.sun.el.MethodExpressionImpl.invoke(Unknown Source)
at org.apache.myfaces.trinidadinternal.taglib.util.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:53)
at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcastToMethodBinding(UIXComponentBase.java:1256)
at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:183)
at oracle.adf.view.rich.component.fragment.UIXRegion.broadcast(UIXRegion.java:148)
at oracle.adf.view.rich.component.fragment.UIXRegion.broadcast(UIXRegion.java:148)
at oracle.adf.view.rich.component.fragment.UIXRegion.broadcast(UIXRegion.java:148)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:92)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:361)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:96)
at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:102)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:92)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:361)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:96)
at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:96)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.broadcastEvents(LifecycleImpl.java:1018)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:386)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:194)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.portlet.client.adapter.adf.ADFPortletFilter.doFilter(ADFPortletFilter.java:32)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.webcenter.framework.events.dispatcher.EventDispatcherFilter.doFilter(EventDispatcherFilter.java:44)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:205)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:106)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:271)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:177)
at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.wcps.client.PersonalizationFilter.doFilter(PersonalizationFilter.java:75)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.webcenter.content.integration.servlets.ContentServletFilter.doFilter(ContentServletFilter.java:168)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.webcenter.lifecycle.filter.LifecycleLockFilter.doFilter(LifecycleLockFilter.java:151)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:179)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)
at java.security.AccessController.doPrivileged(Native Method)
at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442)
at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:139)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
<SkinFactoryImpl> <getSkin> Cannot find a skin that matches family portal-admin and version v1.2. We will use the skin portal-admin.desktop.As in your other post, {forum:id=354} is a better place to ask
-
Retrieving the file name in the adapter module in the sender file adapter
hi,
i need to retrieve the file name, in the adapter module. This module is placed in the sender file channel.
After the file adapter has picked up the file from the file directory, the file is placed in the archived directory.Custom adapter mofule is place in the file shanel. i need to retrieve the file name of the file in the adapter module. Is it possible to retrieve the file name?
Also is it possible to retrieve the archive directory path in module?
Regards,
MeenkashiHi Meenakshi,
I guess you are looking for this
/people/daniel.graversen/blog/2006/10/05/dynamic-configuration-in-adapter-modules
Regards
Suraj
Maybe you are looking for
-
Profit center in Asset Reports
Guys, Is it possbile to derive profit center field in asset transfer reports or any other trans.report or it will be just on the GL side? I know in FI document posted for asset reco. accounts ,profit center field is available , but in asset reports
-
Dialogue failure from ICM Router send 404
Hi, It is a fresh installation of ucce 9.0(3) with CVP 9.0 I am using sip comprehensive model (without SIP proxy). After I have finished the installation, all the pims are active and the same for the call server and vxml server. For some reason, the
-
Aperture 3.03 sync issue with Apple TV
Hi to all, I would like to ask you for a help in the following issue: When I sync Aperture with Apple TV I then see that only masters were transferred. When I make some photo adjustments (without creating a version from master) they are not visible o
-
Cant accept/decline License Agreement
I really cant accept this (when i clicking it, nothins occurs) [URL=http://img178.imageshack.us/img178/7431/licensehc2.jpg][IMG]http://img178.imageshack. us/img178/7431/licensehc2.th.jpg[/IMG][/URL] Crap =(
-
Scrollview only releasing image data when scrolled out of bounds
Hi all, I cannot understand why my memory isn't released. On my iPhone program I have a tableview with an image in each cell. When the images are loaded the I can see a thread in Instruments with ObjectAlloc, that calls CALayerPrepareCommit about 10