UNIX Script Not running - Sender File Comm Channel

I have written a script to split a large file into smaller files . It works great when I log into the server via putty, and run it from the command prompt .
However, when I  run it from the Sender File Channel "Run OS command before/after processing", nothing happens .  I put in some code to write a log file after every line , but it never gets generated if I run the channel , so im assuming its never called by PI .
However, the channel monitoring says "Success" for  "Execute OS command "/home/Int001/Inbound/File_Split.sh" . So  if it is successfully called, how come i dont get my expected results?
1. What is the credentials used by PI to run scripts ?
2. Does PI need some special permissions to run the script ?

Hi Johannd,
To change Password for Sap System User, you can follow this help:
http://help.sap.com/saphelp_nwmobile71/helpdata/en/aa/1dc94af0fa11d3a6510000e835363f/content.htm

Similar Messages

  • Sender file comm channel shows error status when no file is in source

    Hello,
    I have this sender file communication channel which is picking up files using ftp. <b>It’s working fine</b> but if there is no file in the source directory during polling, it shows an error status in communication channel monitor. The error message is that directory/file does not exist and also ‘*’ in file name is invalid character.
    I have the same settings on our dev, QA and prod system but this strange thing is happening only on the dev and prod. It’s not happening on QA whereas QA access the same directory as dev.
    Any idea ???

    Hi,
    The error is strange one.
    I suggest you to check Visual Admin to findout the exact trace/log file.
    May be because of some connection problems etc..
    Just go thru this SAP Note about File Adapter- 821267
    Regards,
    Moorthy

  • Sender File Comm Channel Fails after system refresh

    Hi,
    we did a system refresh of our PI system and since then the sender file communication channels donot work with the following exception:
    Error: com.sap.aii.af.ra.ms.api.ConfigException: Some of the IS access information is not available. SLDAcess property may be set to true, but SLD is not available.
    I have seen many threads in this forum related to this issue but couldn't find a proper solution.
    Any help is very much appreciated.
    Thanks
    MLS

    You may do the following:
    1. Perform SLDCHECK on XI.
    2. Check if XIAFUSER is not locked or its password has been changed recently.
    3. Goto SLD-> Business sytems-> Integration server, check Pipeline URL. It should be
    http://hostname:8000/sap/xi/engine?type=entry
    Regards,
    Prateek

  • Sender File Comm Channel

    Hi,
    I have a unique problem.  My file sender communication channel picks and process files only when the filename extension ends in .txt.
    I had checked the configuration directory and made sure it is not *.txt type and had given star.star.
    Still am not sure why this is happening.
    When i dump a normal file without any .txt extension, it is not been picked up and the file remains in the same place, morever no errors are also coming.
    Please share any light on this.
    Regards,
    Anandh
    Edited by: Anandha Krishnan on Jun 9, 2008 6:37 PM

    The other way to check if your changes are being correctly in the RWB, please deactivate the comm channel and then lookup RWB communication channel monitoring. check if the correct version is showing up out there. It could be the RWB is not getting the correct upated version. Activate the comm channel again and re-start the comm channel and then check.
    You can also follow the path of using * in the filename instead of . as suggested by others.
    Regards,
    Indranil
    Award points if appropriate

  • Sender File Communication Channel Configuration

    Hi guys,
    We are trying to develop a file-to-Idoc scenario and we are facing some problems in the configuration of the sender file communication channel as far as the file format is concerned. The file, which is a material master file has the following structure:
    00.00 FileHeader
    30.00 Material n° 1
    30.01 Material n° 1
    30.00 Material n° 2
    30.01 Material n° 2
    30.00 Material n° n
    30.01 Material n° n
    99.00 FileFooter
    Initially, I developed 4 datatypes, FileHeader, Record1, Record2 and FileFooter, and 1 datatype to incorporate all of these, but I faced trouble in 'Recordset Structure' attribute in communication channel, where "FileHeader,1,Record1,,Record2,,FileFooter,1" did not work.
    After that I thought of creating one more datatype, called Record, with 0..* cardinality, that incorporates Record1 and Record2 with 1 cardinality.
    Although I have declared them correctly as "FileHeader,1,Record,*,FileFooter,1" in 'Recordset Structure', I face trouble in the table with the attributes. What shall I use: I have Record1.fieldNames and Record2.fieldNames and fieldFixedLengths, but XI requires Record...
    What you suggest?
    Evaggelos

    Hi,
    I understand your problem....
    I actually didn't look at the key fields...properly..
    You have said that when you had tried taking Record1 and Record2 in your structure you had problems...
    I  think the second way which you are trying would not work..!
    Can you try this..I am not sure if it will work..
    Have your structure as
    MT
    +Record
    ++Header
    ++Record1
    ++Record2
    ++Trailer
    So your Recordset name would be :Record
    RecordsetStructure would be Header,1,Record1,,Record2,,Trailer,1
    and then all the other parameters like fieldNames,fixedFieldLength,keyFieldValue...for Header,Record1,Record2,Trailer
    U might just try out with this
    Regards,
    Manjusha.

  • Firefox is taking a long time to open. When it does open, I get a pop up box with "Script not running". Bookmarks on my tool bar don't load. Scrolling is unreliable--it will stop in the middle of a page

    What is causing the "script not running"? Why so long to open? Etc.

    Hi Donekes,
    First off I need a little more information to help with troubleshooting.  You say that an error occurs when you "try to re-open the same problem app before the old session completely exits".  Does the error have an error code or dialog display?  It may also be possible to receive an error log.  Here is a knowledge base that explains how to retrieve error logs.
    http://digital.ni.com/public.nsf/websearch/54E361E3FF477EC186256C320068184F?OpenDocument
    If you are able to get that information then please post.  Have a good day.
    Brian K.

  • Unix script not working when executed from SAP PI communication channel

    Hi Experts,
    I am currently using the Run OS command after message processing functionality of the file adapter.
    However, the unix script doesn't seem to work when run via communication channel.
    The script runs properly when executed manually.
    The communication channel logs don't show any error as well.
    Do you have any ideas as to where the error might be.
    Thanks,
    Mike

    Hi All,
    Thank you for your replies. I appreciate this.
    @Anand, here is the script:
    #!/usr/bin/sh
    #version 1
    hostname=$(uname -a | cut -f 2 -d " ")
    MAILTO="[email protected] "
    homedir=$PWD
    echo $homedir | mailx -m -s "OB10 $hostname" $MAILTO
    /opt/java6/bin/jar -xvf OB10.zip
    ll | mailx -m -s "OB10 $hostname" $MAILTO
    What's puzzling me is that I am able to receive the email alerts.
    This means that the user has sufficient authorization to execute the script.
    But the unzip command is not working.
    I have seen the unzip work when run manually.
    Thanks,
    Mike

  • Adapter engine field blank in File Comm channel (Sender)

    Hi,
    I am not getting any value in drop-down list of adapter engine in file adapter communication channel.System is allowing me to save the comm channel but when I am trying to create sender agreement, system is giving me following error
    <b>Unable to find an associated SLD element (source element: SAP_XIIntegrationDirectory, [CreationClassName, SAP_XIIntegrationDirectory, string, Name, directory.s01., string], target element type: SAP_XIIntegrationServer)</b>
    I m getting values of adapter engine when I select some other adpter like IDOC or RFC.
    Please help...

    Hi,
    1) Can you check your Post Installation.
    2) Look for SAP NOTES.
    3) Try cache refresh
       a)Start transaction SXI_CACHE.
       b)From the context menu XI Runtime Cache select Start Complete Cache Refresh.
    If you still face issue try this .
    Many actions require to access System Landscape Directory content from the Integration Builder. To optimize performance, this content is loaded into a cache so that the System Landscape Directory does not have to be accessed directly each time that System Landscape Directory content is required.
    However, this cache is not automatically updated if changes are made to the content of the System Landscape Directory. For this reason that we delete the System Landscape Directory cache if changes have been made to content in the System Landscape Directory. The cache is then filled each time that the System Landscape Directory is accessed. If we log on to the Integration Builder after we have made a change in the SLD, we do not need to delete the SLD cache.
    To clear the SLD cache, from the Integration Builder main menu, choose Environment ® Delete Cache for SLD Data.
    Once we have deleted the cache for SLD data, accessing objects in the SLD may take longer than usual initially.
    Regards
    Agasthuri Doss

  • Comm channel not available in RWB comm channel monitoring

    Hi All,
              I've gone through this(Comm channel missing in comm channel monitoring) unanwered forum. I've facing the same issue.
    In my ID, I created XI receiver adapter comm. channel. And data is flowing successfully to the receiver side through this Comm. channel
    I'm aware that XI adapter in ID is used to send data via Proxy.
    But why i'm not see that in the Comm. channel monitoring in RWB. If anyone has documentation please let me know.
    Thanks.

    Hi ,
              The XI adapter resides in Integration engine thus you cannot see it in RWB. RWB shows comm channels which are in adapter engine. The simple proof is that you cannot enhance this adapter with your own modules on the Module tab page in the module processor.  Here is the link to documentation
    http://help.sap.com/saphelp_nw04/helpdata/en/f4/0a1640a991c742e10000000a1550b0/content.htm
    regards
    Anupam

  • VB startup script not running on Win7

    Hi,
    my startup VB script not working on Windows 7. The script should install or uninstall office 2010 based on group membership. 
    I tested scipt on Windows XP and everything works. When I run script manually, it works.
    Quite similiar batch file works, office are installed but not same functionality for me.
    I turn UAC off, bot not working.. Also add dword EnableLinkedConnections  but nothing change.
    Batch file works but VBScript not!
    Any advice? Thx

    Hi Tomas Cink,
    Based on my understanding, the start VB script which is deployed via GPO could not works fine on Windows 7 clients, although it can works fine on Windows XP clients and it can
    run sucessfully if manually. Right?
    Firstly, please run the following command on the problematic workstation.
          Gpresult /h > C:\temp\gpresult.html  (“C:\temp\” is the path of the gpresult.html, you can set it by yourself)
    This file is used for checking the result of Group Policy information. Open the file to check if the GPO has applied.
    If the GPO has applied, please follow the following step to narrow down the issue:
    Change the script to the following command: add  > %SystemDrive%\Users\test.txt
    to the script.
    Log on to a client with a regular user account, run
    gpupdate/force, and then re-log on to this client.
    Check if the test.txt file exists in this location
    %SystemDrive%\Users.
    If the
    test.txt file exists, the GPO with startup script is applied successfully. But the result of running logon script achieves the goal we excepted or not which is still not sure.
    Regards,
    Lany Zhang

  • GPO Startup/Shutdown scripts not running

    I am running server 2003 SBS with windows 8.1 Pro workstations.
    My workstations run 1 start-up script and 2 shutdown scripts. All are BAT files.
    They were all working fine last week before I ran the update for 8.1.1, now they do not run at the appropriate time on any of those systems. However, if I execute them manually they work as expected.
    I have checked to see if the BAT files are still located in the GPO and they are there. They are stored locally on each machine, I have even tried to delete and re-add them and then run GPUPDATE to no avail. 
    Any help here would be great, as they deal with local encrypted containers and are specific to each workstation.

    Hi Sebastian,
    Thanks for posting.
    Whether the GPO with start-up/shutdown scripts are linked to the OU containing computers?
    FYI -  Logon/Logoff scripts could only be applied to users, whereas Start-up/Shutdown scripts applies to computers.
    Also, checkout the below thread on similar discussion,
    http://social.technet.microsoft.com/Forums/windowsserver/en-US/b193e8a9-9b2a-4993-bd74-836c65c51dc3/gpo-with-a-startup-script-is-not-working
    Regards,
    Gopi
    www.jijitechnologies.com

  • Powershell script not running in the task scheduler...

    I've created a .ps1 script to transfer a file using WinSCP can run it in the ISE environment, in the PS window, and with the run command. I've transferred the command I used in the run prompt to the task scheduler but it is not running. It is running everywhere
    else just not in the scheduler. It says that it completes okay and gives a return code of OpCode=2
    The action is set to run this: c:\Windows\System32\WindowsPowerShell\v1.0\Powershell.exe
    The Arguments: -ExecutionPolicy Bypass -file "C:\Users\me\scriptsWCP\FileTransferPS.ps1"
    Also have it running with the highest permission and as SYSTEM

    Hi,
    To run a powershell script with parameters in the Task Scheduler:
    Program: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
    Add argument (optional): -Command "& c:\scripts\test.ps1 -par1 2 -par2 3"
    Hope the below two articles be helpful for you:
    Schedule PowerShell Scripts that Require Input Values
    https://blogs.technet.com/b/heyscriptingguy/archive/2011/01/12/schedule-powershell-scripts-that-require-input-values.aspx
    How to Schedule a PowerShell Script
    http://dmitrysotnikov.wordpress.com/2011/02/03/how-to-schedule-a-powershell-script/
    Regards,
    Yan Li
    Regards, Yan Li

  • Exception "JMSSecurityException: Not permit" when starting Comms Channel...

    Hi,
    We have XI 3.0 that has been running without issues in the comms channels for a long time.
    All of a sudden on one of our systems we are getting an error when starting the comms channel. The stacktrace is shown below:
    Channel error occurred; detailed error description: com.sap.aii.adapter.jms.api.connector.ConnectorException: Error creating message consumer: javax.jms.JMSSecurityException: Not permitted
    at com.sap.aii.adapter.jms.core.connector.ConnectorImpl.buildMessageConsumers(ConnectorImpl.java:446)
    We have tried resrting the J2EE engine, the whole XI instance, etc. and still this one channel continues to fail.
    I have tried creating new channels and they fail too.
    Has anyone seen this error before? Any idea how to resolve this?
    thanks
    Brian

    Hi Brain,
    It is showing security exception, so it is related to the credentials (may if you use the passwords or certificates those are expired) so check those credentials validity.
    Check this link
    http://help.sap.com/saphelp_nw04/helpdata/en/f5/2f2c4142aef623e10000000a155106/frameset.htm
    Regards
    Ramesh

  • Gpo computer startup scripts not running

    Hi,
    I´m making some test with a windows 7 pro 64 bit computer and a 2008 r2 domain controller where I have created a computer startup script. I give you more info:
    Domain functional level: 2008 R2
    DC: 2008 R2
    Client: Windows 7 pro x64
    Gpo: Computer configuration -> Windows configuration -> Script -> Startup
    Type of script: bat file copied on \\domain_name\SysVol\domain_name\Policies\{461E688A-E8F8-4C9B-8419-FE83DCDD4C26}\Machine\Scripts\Startup
    The windows 7 machine is full updated, windows firewall disabled, uac disabled, windows defender disabled.
    The bat file works and the gpo is applying, i have seen it via gpresult, another gpo which is in a top level works fine.
    I need some help please, because I don´t know what to try.
    Thanks in advance.

    Hello Egoitz28,
    Do you mean that you add the bat file in the startup group policy and gpresult shows that it is applied, but the bat is not run?
    Please share us the bat file to test.
    Logon/Logoff scripts could only be applied to users, whereas Start-up/Shutdown scripts applies to computers.
    I create a test.bat start %windir%\system32\notepad.exe, and add it to the User Configuration->Policies->windows Settings->Scripts->Logon in the Default domain policy. And it works.
    If I create in the startup policy in Computer configuration, I can see it in the gpresult, but it doesn’t work.
    Please test if the bat works in the Logon policy.
    Best regards,
    Fangzhou CHEN
    Fangzhou CHEN
    TechNet Community Support

  • Sender file communication channel polling only when the file is written

    Hi guys,
    I have the following scenario:
    I have developed an XI interface that takes a .txt file from SAP R/3's file system, usr/sap/trans/ and delivers it into another ftp location. The problem that we face is that the file is written into source directory from an ABAP program. As a result, XI go and polls into source directory when the file is not completely written, or when it is empty, which blocks the process.
    Is there a way to force XI in order to poll the source directory only when the file is complete?
    We have thought of exporting the file into a name that XI does not expect and as soon as the file is complete to rename the file from inside ABAP program into what XI expects.
    However, the command inside ABAP changed the Code page of the file and we cannot see some special characters in the file that is delivered to the ftp location.
    Any ideas??

    Hi Evaggelos,
    from <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/e3/94007075cae04f930cc4c034e411e1/content.htm">SAP help: Configuring the Sender File/FTP Adapter</a>:
    Advanced Mode
    To specify additional parameters in the adapter configuration, set the Advanced Mode indicator.
    &#9679;      Msecs to Wait Before Modification Check
    Enter the number of milliseconds that the adapter must wait before it checks whether the files have been changed
    Regards,
    Udo

Maybe you are looking for

  • Hi there how are you guys out there of this forum? I got a question for y'a

    Hi there how are you guys out there of this forum? I got a question for y'all I wanted to know how I could record different folders using iTunes Cause when recorded 2000 thongs on the DVD There were 2000 songs to go through So I really wanted to have

  • Panels preferences in DW 8 for Mac

    The help section mentions a Preference where I can check which panels float on top, and which ones drop behind the active document window. I had this set correctly, but when I reinstalled Dreamweaver, I cannot find it. My problem, I have the Files Pa

  • CSM IPS Manager doesn't display IPS sensors.

    I am doing inital configuration of the CSM v3.0 The IPS sensor 4250xl that I have added to CSM doesn't show up in the IPS Manager. Moreover, the Devices->Sensor window doesn't appear to be displayed correctly - there is a browser icon indicating miss

  • Publish Web Service

    Hi, We have created Web Service and checked in T-code "SICF" generated WSDL file. WsNavigator also tested the service with sample data input. Now I want to access publish Web Service URL from my browser. How I can do it and check my End Point URL is

  • My iphone is slow to respond, how can I fix this?

    I have an hone which is very slow in responding to touch screen actions. How can I fix this?