WinSCP not being executed when package is ran from job

I have a package in the SSIS catalog. It worked fine when it ran in the file system, but like so many others, died when I called it from a job. I ran the problem down to the fact that the account that the job was running under didn't have access to the directories
that the package was trying to access. That solved half my problem.
In my package I'm calling WinSCP from a script task. I can tell the executable is not getting called. No errors are being thrown. I gave the account in question full access to the folder where WinSCP resides but that didn't fix the issue. What else do I
need to look at?

Arthur, WinSCP has logging functionality. When the executable gets called a log file is created. No log file is being created. I did pull that particular piece of functionality out of the package and unit tested it and it worked fine which has only caused
me further frustration.
I am currently getting this series of errors which I only just found:
The expression for the variable "InitialDirectoryFullPath" failed evaluation. There was an error in the expression.
The variable "User:RootFileDirectory" was not found in the variables collection.
Attempt to parse the expression "@[User:RootFileDirectory] + @[InitalDirectory]" failed and returned error code 0xC00470A6. The expression cannot be parsed.
This makes no sense as it runs just fine in other environments under other accounts. Only when I push this thing to a certain box does it fail like this. RootFileDirectory is being populated by a Windows Environment Variable and I thought the problem was
there except there are other parts of the package that use that variable and they work just fine.

Similar Messages

  • Variant not being used when launching MDT report from Portal

    Hi,
    I have set up the reporting i-view in MSS to use MDT. In the "Define Function Codes" activity in  the IMG under Managers Desktop  I have set up Transaction Code  S_AHR_61015536 (Expired Qualifications Report) to use variant MSS.
    However when I launch the report via the MDT i-view it takes no consideration of the variant used.
    Has anyone else encountered this problem before?
    Thanks
    Tom

    Check this
    Please kindly correct the variant in the table T77I3 or you can correct
    the customizing at SPRO:
    Personnel Management->
        Manager's Desktop->
           Human Resources Information Systems->
                HIS ->  Define task functions
    Area HRTIM

  • A fix for the Mozilla Firefox SSL Certificate Validation Security Weakness vulnerability? This appears to be an issue with not revalidating certificates when loading HTTPS pages from cache.

    We have to close vulnerabilities for PCI & Cybertrust certification. We have upgraded users running Firefox to version 7.0.1 but we are still receiving the message: Mozilla Firefox SSL Certificate Validation Security Weakness. Researching the issue, it appears to be related to certificates not being revalidated when loading HTTPS pages from cache. The bug report I found is:
    Bug 660749 - Firefox doesn't (re)validate certificates when loading a HTTPS page from the cache

    cookies.squite answer is Today at 5:15 PM .
    New profile, same problem.
    We've already established it is not a add-ons problem but obviously there will be less add-ons in this new profile to help exclude.
    Since there is two PC profiles on the PC, I tried the second profile, same problem. Used the RESET FF function on the second PC profile...same thing...even followed the instruct for uninstall &re-install...same problem.
    (3) different virus scanners, no hard core problems.
    Suspect how I have something in Windows setup that no one else is using?

  • Not updating Prompts when report is moved from Dev to Prod

    Hi,
    I have a report In development which uses a Prompt ( Dynamic Lov) pointed to an existing prompt group.
    When this report is moved to production the prompt does not give any values as the it is not pointed to any prompt group.
    Could any one help me why the prompt is not being updated when it is moved from DEV to PROD.
    Thank you..!!

    Need more info...
    What version and are you using BOE or CRS?
    Thank you
    Don

  • XSLT for adding Namespace is not being executed at runtime

    Hi Gurus,
    I am trying to add a Namespace to inbound xml and I wrote a simple XSLT mapping as below, when I execute this using XML spy or in Operation mapping manually it is working fine and giving me output as expected but at runtime it is not executing, I am getting same input xml as output xml and receiver agreement is failing...
    Appreciate your thoughts..
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
         <xsl:output method="xml" encoding="UTF-8"/>
            <xsl:template match="*">
              <ns0:SalesXmlExtended xmlns:ns0="urn:/company.com/H/sndr">
              <xsl:copy-of select="//SalesReportInfo"/>
         </ns0:SalesXmlExtended>
         </xsl:template>
    </xsl:stylesheet>
    input xml is as below....
    <?xml version="1.0" encoding="UTF-8"?>
    <SalesXmlExtended>
         <SalesReportInfo>
              <SalesReport>
                   <Detail>
                        <deptNum>0270</deptNum> etc...
    output I am getting in XMLSpy and OM is as below, this is exactly what I need...
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:SalesXmlExtended xmlns:ns0="urn:/company.com/H/sndr">
         <SalesReportInfo>
              <SalesReport>
                   <Detail>
                        <deptNum>0270</deptNum>
    Thanks...
    Sukarna...

    Hi Baskar,
    Yeah, that is what my issue is , it shouldn't be failing but it is...
    I tried by manipulating the required namespace in the input file and it is working fine with out any errors....so I am guessing the XSLT is not being executed...
    I am getting below error which is valid because the transformation is not happening
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?><!-- Technical Routing --> <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
    <SAP:Category>XIServer</SAP:Category>
    <SAP:Code area="OUTBINDING">CO_TXT_OUTBINDING_ERROR</SAP:Code>
    <SAP:P1>-BS_HOUSE_OF_FRASER_DEV</SAP:P1><SAP:P2>-BD1_100,urn:.com/HoF/POS/EOD/sndr.SI_Out_HoFSales_XML</SAP:P2>
    <SAP:P3/>
    <SAP:P4/>
    <SAP:AdditionalText>No standard agreement found for , BS_HOUSE_OF_FRASER_DEV, , BD1_100, urn:/HoF/POS/EOD/sndr, SI_Out_HoFSales_XML</SAP:AdditionalText
    ><SAP:Stack>Problem occurred in receiver agreement for sender -BS_HOUSE_OF_FRASER_DEV to receiver -

  • Call to java bean but code not being executed.

    Making a call to my javabean class called ch06_03.java from a jsp program shown below:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
    <title>Using a java package.</title>
    </head>
    <body>
    <% beans.ch06_03 messager = new beans.ch06_03(); %>
    The message is: <%= messager.msg() %>
    </body>
    </html>
    The call from jsp to javabean program is only returning the hello from java and NOT EXECUTING ANY OF THE CODE in the msg() method. I am checking my table landings_hold and nothing is there, my log file shows nothing. Why is the code not being executed except for the return statement?
    My javabean program is shown below:
    package beans;
    import java.io.*;
    import java.util.*;
    import java.text.*;
    import java.sql.*;
    public class ch06_03 {
    StringTokenizer st1;
              String val1, val3, val4, val5, val9, val10, val11, val12, val13, val14, val16;
              String val2, val6, val7, val8, val15, val17, val18, val19, val20;
              int cnt;
              String filetext = "Starting RIFIS Upload";
              java.util.Date d = new java.util.Date();
              SimpleDateFormat form = new SimpleDateFormat("dd/MMM/yyyy hh:mm:ss");
              String dateString = form.format(d);
    public String msg() throws Exception {
         try {
         Class.forName("oracle.jdbc.driver.OracleDriver").newInstance();
    Connection conn = DriverManager.getConnection("jdbc:oracle:thin:@xxxxx.xxxx.xxx:1521:xx","xxxxxx","xxxx");
              Statement st = conn.createStatement();
         File f = new File("C://upload");
              FileWriter outFile = new FileWriter("C://RIFIS/log/logfile.txt", true);
              outFile.write(System.getProperty("line.separator"));
              outFile.write(filetext+" - "+dateString);
              if (f.isDirectory())
              { String [] s = f.list();
              for (int i=0; i<s.length; i++)
              { outFile.write(System.getProperty("line.separator"));
                   outFile.write("Found file - "+f+"/"+s);
              FileReader file = new FileReader(f+"/"+s[i]);
                   File inputFile = new File(f+"/"+s[i]);
                        File outputFile = new File("C://RIFIS/archive/"+s[i]);
                   BufferedReader buff = new BufferedReader(file);
                   boolean eof = false;
                   String val0="";
                   ResultSet rec = st.executeQuery("SELECT landings_hold_batch_seq.nextval FROM dual");
                        while(rec.next())
                        { val0 = rec.getString(1); }
                        cnt=0;
                        while (!eof)
                        { String line = buff.readLine();
                        if (line == null)
                        { eof = true; }
                             else
                             { cnt = cnt+1;
                                  st1 = new StringTokenizer(line,",");
                                  val1 = st1.nextToken();
                                  val2 = st1.nextToken();
                                  val3 = st1.nextToken();
                                  val4 = st1.nextToken();
                                  val5 = st1.nextToken();
                                  val6 = st1.nextToken();
                                  val7 = st1.nextToken();
                                  val8 = st1.nextToken();
                                  val9 = st1.nextToken();
                                  val10 = st1.nextToken();
                                  val11 = st1.nextToken();
                                  val12 = st1.nextToken();
                                  val13 = st1.nextToken();
                                  val14 = st1.nextToken();
                                  val15 = st1.nextToken();
                                  val16 = st1.nextToken();
                                  val17 = st1.nextToken();
                                  val18 = st1.nextToken();
                                  val19 = st1.nextToken();
                                  val20 = st1.nextToken();
                                  st.executeUpdate("INSERT INTO LANDINGS_HOLD (lh_id, lh_batch, supplier_dr_id, supplier_unique_id, supplier_dealer_id, supplier_cf_id, supplier_vessel_id, unload_year, unload_month, unload_day, state_code, county_code, port_code, itis_code, market, grade, reported_quantity, unit_measure, dollars, lh_loaddt, lh_loadlive, purch_year, purch_month, purch_day)" +
                        "VALUES (0,'"+val0+"','"+val1+"',"+val2+",'"+val3+"','"+val4+"','"+val5+"',"+val6+","+val7+","+val8+",'"+val9+"','"+val10+"','"+val11+"','"+val12+"','"+val13+"','"+val14+"',"+val15+",'"+val16+"',"+val17+",SYSDATE,NULL,"+val18+","+val19+","+val20+")");
                             } // while else end
                        } // parent while end
                        FileReader in = new FileReader(inputFile);
                        FileWriter out = new FileWriter(outputFile);
    int c;
                        while ((c = in.read()) != -1)
                        { out.write((char)c); }
                        in.close();
                        out.close();
                        outFile.write(System.getProperty("line.separator"));
                        outFile.write("Number of records inserted - "+cnt);
                        outFile.write(System.getProperty("line.separator"));
                        outFile.write("Copied upload file to archive directory");
                        outFile.write(System.getProperty("line.separator"));
                        outFile.write(f+"/"+s[i]+" - Has been removed from upload directory");
                        buff.close();
                        inputFile.delete();
                   } // for end
                   outFile.write(System.getProperty("line.separator"));
                   outFile.write("Upload Complete...NO ERRORS");
                   outFile.write(System.getProperty("line.separator"));
                   outFile.write("*************************************************************");
                   outFile.write(System.getProperty("line.separator"));
                   conn.close();
              } // if end
              else
              { outFile.write("No files to process"); }
              outFile.flush();
              outFile.close();
              } // try end.
              catch(Exception e)
              { FileWriter errFile = new FileWriter("C://RIFIS/log/errfile.txt", true);
              errFile.write(System.getProperty("line.separator"));
              errFile.write("ALERT....ALERT....ALERT");
              errFile.write(System.getProperty("line.separator"));
              errFile.write("Error Occurred in ReadSource.java - RIFIS Upload");
              errFile.write(System.getProperty("line.separator"));
              errFile.write("My Error: " + e);
              errFile.write(System.getProperty("line.separator"));
              errFile.write("*************************************************************");
                   errFile.flush();
                   errFile.close();
              } // catch exception end.
         return "Hello from java";
         } //public msg block
         public ch06_03()

    Since you didn't use code-formatting tags ([ code ] and [ /code ] without the spaces) it's kinda hard to look at it. But I'm sure it DID execute much more than just the return statement - maybe you're not closing a file or db connection, or maybe you're seeing a cached page, so it actually isn't executing ANYTHING on the server (is your browser set to never check for newer pages so it (almost) always returns from cache, for example?)

  • SubQuerry Not being executed

    Hi Gentelmen;
    I have posted this question in the Test and Playground Forum but no one has responded.
    Any of you experts in this forum may be able to help me please...
    I have this problem where I am selecting records to display on the report from table customer and trying to count how many booking are there for each customer in booking table based on the customer id from booking table.
    here is my query code below...
    select id name city custtype discount into (wa-scid, wa-scname, wa-sccity, wa-scctype, wa-scdisc) from customer
      where city = 'CityName' and
      country = 'CountryName' and exists (
      select count( distinct custid ) as wa-cnt from bookings group by custid ).
      WRITE: /1 wa-scid, 11 wa-scname, 40 wa-sccity, 70 wa-scctype, 78 wa-scdisc,'%', 90 wa-cnt.
      endselect.
    I have tried to debug the issue and seems like the sub query is not being executed. The reason i say that because the value  of wa-cnt which is a counter of type i is not changing.
    Any one can shed some light in this matter/problem please...
    Many Thanks.
    -hisheeraz

    You are using AS addition in the subquery to determine whether the subquery is being executed or not, and I think this is wrong. AS addition has only meaning when your using wither INTO or APPENDING, it wouldn't change the value of wa-cnt.
    I suggest you to try to change the subquery to
    and exists ( select count( * ) from bookings ).
    As you're using only the COUNT aggregation expression int the subquery, a GROUPING is not necessary.
    Regards

  • Transform not being executed

    Hi,
    I have a mapping as shown here:
    http://sourcebase.sourceforge.net/iviewcapture_date_12_05_2004_time_18_55_52.png
    It is a fairly simple one: there is a main table BC_DEPT from where I'm populating the ODS_DEPT table, and there is a delta table D_BC_DEPT from where I need to get the maximum watermark value and call a package procedure called SET_WATERMARK with this as the parameter.
    The problem is that the procedure SET_WATERMARK is not being executed. I have checked in the debugger and the execution stops after output from the Aggregate operator. Plus, I searched for SET_WATERMARK in the generated mapping code and there is no reference to it in the code ! Executing the Main() procedure of the mapping also does not run this transform.
    The only significant thing about the transform procedure is that it is a synonym which points to the actual package in another instance over a DB link.
    Any help / pointers would be appreciated.
    Thanks in advance,
    Biswa.

    Yes, basically I want to call a procedure with the output of the AGG operator on a table. I ftransformations must have a output, how do I achieve this ? I have currently worked around it by creating an output table to store the output and then calling a wrapper procedure from the post mapping which reads the parameters from the table. But this seems a rather messy way to achieve something rather simple and obvious: read data from a table; do some stuff; call a procedure with the output !
    Can it be done in a simpler manner in this release ?
    Regards,
    Biswa.

  • ~/.fluxbox/startup not being executed by fluxbox (SOLVED)

    It doesn't appear that my ~/.fluxbox/startup file is being executed when I run fluxbox.   No matter what I put in, nothing happens.
    Here's my ~/.fluxbox/startup file:
    #!/bin/sh
    fbsetbg -f /home/myuser/backgrounds/ArchBlue.png
    # garbage command for testing
    /usr/bin/asdfasdfadsfadfadsf
    exit 0
    None of the commands I put in this file are executed when I start fluxbox.  Fluxbox starts with no problem, though when I type startx with "exec fluxbox" in my .xinitrc.
    Any ideas why it isn't being executed?

    Well, I got it to work the way it's apparently suppose to work (I think).
    The startfluxbox manpage says that it will create the ~/.fluxbox/startup if one doesn't exist.  So, I deleted the original one (which was created when I first installed and ran fluxbox for the first time I think) and then ran exec startfluxbox from my .xinitrc again.
    It re-created a new ~/.fluxbox/startup file that was completely different than the old one (namely, it had "exec fluxbox" at the end of it).  So, startfluxbox worked with the newly created startup file.  But, the fbsetbg command in the newly created ~/.fluxbox/startup file wasn't setting the background image (it would appear for a second and disappeared).  Following iphitus's advice, I addded '&' after.
    And now, everything works.  The default startup file created by startfluxbox is kind of nice - lots of examples that are commented out by default.  However, their fbsetbg example wasn't working until I added the '&' as mentioned before.
    Thanks iphitus and ScriptDevil for the suggestions and help.
    Cheers.

  • I have installed itunes 11.0.2.26. When I delete a file or podcast I am not being prompted to delete the file from its folder at the same time.

    I have installed itunes 11.0.2.26. When I delete a file or podcast I am not being prompted to delete the file from its folder at the same time. How do I restore this facility? I am running a 64bit Windows 7 OS

    Is the media files in question in the iTunes library or elsewhere on the computer?

  • Command in .xinitrc not being executed? [SOLVED]

    Hi!
    I made some changes to my keyboard layout so I can use my hotkeys.
    When I start x I need to execute the command
    xmodmap ~/xmodmap.conf
    I added this in my .xinitrc file to be executed, but it does not work.
    When I run it from cli it works great.
    Suggestions?
    Thanks!

    phrakture wrote:
    are you using startx or xdm?
    I start x using kdm:
    My inittab says:
    id:5:initdefault:
    and
    x:5:respawn:/opt/kde/bin/kdm -nodaemon
    So do I execute xinitrc?
    Thanks for all the help sofar!
    :twisted:

  • Firefox is not remembering passwords for sites that i visit regularly. Ihave checked the box "remember passwords for sites" in the security tab under tools, but the passwords are not being remembered when I return to the sites.

    Firefox is not remembering passwords for sites that i visit regularly. Ihave checked the box "remember passwords for sites" in the security tab under tools, but the passwords are not being remembered when I return to the sites. I am running v 3.6.18

    Websites remembering you and automatically log you in is stored in a cookie.
    * Create an allow cookie exception (Tools > Options > Privacy > Cookies: Exceptions) to keep such a cookie, especially for secure websites and if cookies expire when Firefox is closed.
    Make sure that you do not run Firefox in Private Browsing mode.
    * https://support.mozilla.com/kb/Private+Browsing
    * In [[Private Browsing]] mode all cookies are session cookies that expire if that session is ended, so websites won't remember you.
    * Do not use [[Clear Recent History]] to clear the "Cookies" and the "Site Preferences"
    Clearing "Site Preferences" clears all exceptions for cookies, images, pop-up windows, software installation, and passwords.
    * http://kb.mozillazine.org/Cookies

  • ALL OF MY FILES ARE NOT BEING SAVED WHEN I CLOSE FINAL CUT PRO X ?

    ALL OF MY FILES ARE NOT BEING SAVED WHEN I CLOSE FINAL CUT PRO X ?

    WHAT FILES AREN'T BEING SAVED? WHAT FILES ARE SAVED?

  • My open tabs are not being remembered when I close and re-open Firefox 4 even though I selected this feature in Options.

    My open tabs are not being remembered when I close and re-open Firefox 4 even though I selected this feature in Options. Can anyone tell me why?

    App tabs and Tab Groups (Panorama) are stored as part of the session data in the file sessionstore.js in the [http://kb.mozillazine.org/Profile_folder_-_Firefox Firefox Profile Folder]
    * http://kb.mozillazine.org/Session_Restore
    Make sure that you do not use [[Clear Recent History]] to clear the "Browsing History" if Firefox is closed.

  • Icons for apps are not being displayed when I open the App store, just getting gray color boxes

    Icons for apps are not being displayed when I open the App store, just getting gray color boxes

    Did you update your operating system?  If so, did it solve the problem?  I have not updated my OS because so many people complained that the newer Os's had problems.

Maybe you are looking for

  • 3F0 Error, Hard drive does not exist on Pavilion dv4.

    I have a Pavilion Dv4 with windows 7 OS.  When I boot up the computer it tells me "No bootable device -- insert boot disk and press any key" I have done the F2 system diagnostics and once I get there click the Hard Disk Test which brings me to where

  • Error: Your request could not be completed because a failure occurred while the report was being processed.

    Post Author: sagimann CA Forum: Deployment Hello, I'm not sure if this is due to bad deployment, but I suspect it is, at least due to bad environment. My env is: Solaris 10 64 bit Oracle 10g client installed under /opt/oracle/app/oracle/product/10.2.

  • How to use a logical database's selection screen elements

    Hi all, I have used the logical db, pnp, in my report, however when I want to select data about a personel , ie. her name surname plans-positions, how will I join the two tables pa0001 and logical db? and the table t528t - text for plans? Thanks.

  • Import, ignore=y : what if FK, procedures, exists

    Hello, I need to re-run the full import (the data in the tables were corrupted thus deleted). The full import takes around 2 days so I would like to keep as many db objects as possible (to not drop them all)I want to do the import with IGNORE=N. Ther

  • Changing the Column Header Color

    I would like to change the foreground and background color of a column header when the user clicks on the column. I know how to detected when the user clicks on a given column, and I know there is a setBackground and setForeground method that needs t