Sitemap

Amicuk Programming Answers

Operating System Command After File Processing in Sender File Adapter

2015-10-11   Views:2

Advertisement

Hello guys, actually we have different interfaces, and the client to take all the files from only one directory, for example D:/DPI. Unitl now we had one adapter for every file with the content conversion, so we didn't have problems with that. Now we

Hello guys,
actually we have different interfaces, and the client to take all the files from only one directory, for example D:/DPI.
Unitl now we had one adapter for every file with the content conversion, so we didn't have problems with that. Now we have the problem that we sould maintain an order processing files.
We thougth that an idea could be to execute one file pointing to D:/DPI and at the Operating System Command put like: copy D:/DPI/file.txt D:/DPI/outbound/file.txt, so when file is executed, we move the next file to another directory where is pointing the adapter. Doing this we have an error on the adapter giving us the message: Could not process due to error: java.lang.NullPointerException
We are using a Windows.
There is anyway to do in our way, or there is a better solution to resolve this problem?
Any other idea to do this?
Many thanks in advance.
Regards,
Xavi.

The replay answer
Advertisement
Helo Guys,
maybe I haven't explained well.
We have one directory with different files. We have one adapter for every file( we need for the content conversion ) using NFS and all the adapters are pointing to the same directory.
The problem is that if we have files A.txt, B.txt and C.txt we need to process in an order.
And the problem we see is that for every file we have one adapter, so for example if we process file A.txt with one adapter, when this part is finished, we want to process file B.txt with another adapter, and the same for the rest of the files.
So the idea we had is to create another directories, and when A.txt has finished move file B.txt to another directory.
However this way is not running, if we log on the PI machine and execute cmd, we can do a copy of one file from one directory to another, but when we put this sentence in the adapter in OS command if we see the adapter log we see an error executing the OS command, but we don't know what is the error, there is no more information.
There is any way to do this or maybe we have to manage in a different way?
Many thanks in advance.
Regards,
Xavi.

Go to See the other 5 answers

RUN OPERATING SYSTEM COMMAND BEFORE MESSAGE PROCESSING

Category:DefaultRelease time:2015-10-11Views:130

hi. just i want to know what is the purpose of run operating system command before message processing,after message processing under file sender adapter. waiting for your great answer. bye. regards. seeta ram.Hello Seeta, let me see if I give it usin[More]

Operating system command in file receiver adapter

Category:DefaultRelease time:2015-10-11Views:130

Hi, How to use the Run Operating system command after message processing option in the parameters tab of the file receiver adapter. I am working on a scenario wherein a batch file needs to be invoked after the file is written on the file system. So h[More]

Is it possible to call operating system command after file receive?

Category:DefaultRelease time:2015-10-11Views:130

Hi expert, I'm trying to call operating system command after file receive comm.channel receive a txt file. operating system command uses txt file name as parameter. Is it possible? How? Thanks.Hi, It should be possible, actually we have two options t[More]

Operating system command in file adaptor

Category:DefaultRelease time:2015-10-11Views:130

Hi, I am doing file to Idoc scenario, can i use the Operating system command in file adaptor to compress the file at FTP server and decompress the file at IE. I don’t know is it possible and if yes then how or is there any other way to handle the big[More]

Operating System Command After File Processing in Sender File Adapter

Category:DefaultRelease time:2015-10-11Views:130

Hello guys, actually we have different interfaces, and the client to take all the files from only one directory, for example D:/DPI. Unitl now we had one adapter for every file with the content conversion, so we didn't have problems with that. Now we[More]

Unzip file using operating system command in file/ftp receiver adapter

Category:DefaultRelease time:2015-10-11Views:130

Hi, I'm wonderdering how to unzip a zip-file in the receiver file/ftp adapter. I know it is possible to do it using the 'Operating system command' feature, but somehow the command I use seems to be ignored! (I'm using SP14, unix). The command I enter[More]

Using operating system command on file receiver comm.channel

Category:DefaultRelease time:2015-10-11Views:130

Hi, I pepared a XI 3.0 message generating .txt file. I must append content of this file to the and of the file with same name but different extension(.bak extension). I know it is achieved with copy name.bak+name.txt it appends txt file to the .bak f[More]

Run Operating System Commands

Category:DefaultRelease time:2015-10-11Views:130

Hi, There is an urgent requirement, i want to know about Run Operating System Commands in file adapter. What are all possible commands for windows operating system? and how it works? Kindly send me your suggestions and links at the earliest. Your hel[More]

Run Operating Systems command.

Category:DefaultRelease time:2015-10-11Views:130

Hi Experts, Please provide information on Run Operating Systems commands for File adapter. I have gone through t he below mentioned link already: [http://help.sap.com/saphelp_nw04s/helpdata/en/e3/94007075cae04f930cc4c034e411e1/frameset.htm] Also , pl[More]

File Receiver Adapter:Run Operating System COmmand after message Processig:

Category:DefaultRelease time:2015-10-11Views:130

Dear All, I have gone through this link [http://help.sap.com/saphelp_nw2004s/helpdata/EN/e3/94007075cae04f930cc4c034e411e1/content.htm] But i have a problem. In the scenario which we have, File name is DYNAMICALLY GENERATED by a UDF I want to call th[More]

Unable to run a Batch File Operating System Command

Category:DefaultRelease time:2015-10-11Views:130

Using XI 3.0, I am unable to run a Batch File Operating System Command After Message Processing. My Batch file: gpg -se -r BOA3RSKY --armor --passphrase-fd 0 %1 < C:\Progra~1\GNU\GnuPG\gpgin My Command Line (ID scenario) exec "cmd.exe /c C:\Progra[More]

Hot
I need to know how to get back into my laptop!!! Please help.This is the OS X Server 10.6 forum, and the server software isn't usually found on MacBook Pro systems - I'll guess that you're really not running the server software here.   (I mention thi [More]
Hi, I have numerous different Apple products, an iphone 5c, iPad mini and iPod touch 5th gen. I have had them all for only relatively short periods of time yet the lightning cable has stopped working on all of them? On the touch, charging has stopped [More]
How can I convert MPEG files (stored on a PC) to use in iMovie on my Macbook Pro?Get a free app called MPEG Streamclip. Available here. http://www.squared5.com/svideo/mpeg-streamclip-mac.html Drag your clip or clips into MPEG Streamclip. Then use FIL [More]
I purchased Mountain Lion around a month and a half ago. Since then, my computer has slowed considerably--like i could go get a cup of coffee while the page loads like old-school. Does anyone out there have any suggestions how to fix this?How much RA [More]
Restore Error 3 in iPad 3 plz help meiTunes: Specific update-and-restore error messages and advanced troubleshooting http://support.apple.com/kb/TS3694 If you can't update or restore your iOS device http://support.apple.com/kb/ht1808  Cheers, Tom Su [More]
I have seen people do 1. full export 2. backup with control files 3. put a repository in another database and cross backup What do you use? I am in 10.1, but this is a general question.Hi, 1. full export This is a logical backup - don' treat it as pe [More]
Hi i am trying to develop a simple JSF application,that work fine with sun application server9.when i use tomcat it starts throwing following exception... java.lang.NoClassDefFoundError: javax/faces/context/ExternalContext please can anybody tell me. [More]
Lately some parts of my system have been "disappearing." I "lost" the Activity Managet over a year ago but never really knew what I was missing. But now somehow I've lost System Preferences (It shows up with a big question mark when I [More]
I would like to create an error log table in sql where every time there is an error in sql and every time a stored procedure rolls back it should submit an entry into the error table to show where and what the error was. Thank you Debra has a questio [More]
hi i just got an ipod video for x mas and i have all my songs on my itunes on my computer. i go to file( to transfer the songs to my ipod) and the update my ipod icon is not avaible. also when i first click on itunes, it say itunes cannot read the co [More]