Help Please!!! - Unable to read or execute SQL with Next Run Time value.

Hello,
We have a requirement where we need to pick the results every five minutes based on the scheduler task "Next Run Time" value. The below is the SQL which was used to run the task every 5 minutes
SELECT <%RESULTS%>
FROM
<%SCHEMA%>.FCI_MAS_CONTACT T1
RIGHT OUTER JOIN <%SCHEMA%>.FCI_MAS_VENDOR T2
ON (T2.OBJECTID = T1.PARENT_OBJECT_ID)
WHERE
T1.CONTEXTID=<%CONTEXT(masterdata.Contact)%>
AND T1.INACTIVE=0
AND T2.INACTIVE=0
AND T1.CREATED_AT>=
SELECT
(ALERT_AT_DATETIME - NUMTODSINTERVAL('5','MINUTE'))
FROM
<%SCHEMA%>.FCI_SYS_MANAGED_DAEMON SD,
<%SCHEMA%>.FCI_SYS_ALERT SA
WHERE
SD.INACTIVE = 0
AND SA.OWNERREF_CLASS_ID = 10502
AND SA.OWNERREF_OBJECT_ID = SD.OBJECTID
AND SD.SYSTEM_MANAGED <> 1
AND SD.CONTEXTID=<%CONTEXT(common.ManagedDaemonType)%>
AND SD.DISPLAY_NAME = 'Vendor Sync Program'
OR
T1.MODIFIED_AT >=
SELECT
(ALERT_AT_DATETIME - NUMTODSINTERVAL('5','MINUTE'))
FROM
<%SCHEMA%>.FCI_SYS_MANAGED_DAEMON SD,
<%SCHEMA%>.FCI_SYS_ALERT SA
WHERE
SD.INACTIVE = 0
AND SA.OWNERREF_CLASS_ID = 10502
AND SA.OWNERREF_OBJECT_ID = SD.OBJECTID
AND SD.SYSTEM_MANAGED <> 1
AND SD.CONTEXTID=<%CONTEXT(common.ManagedDaemonType)%>
AND SD.DISPLAY_NAME = 'Vendor Sync Program'
While we run the above SQL as scheduler task, we do not see any output. However when we run this as a standalone, we see the results. Please advice if we have missed any step while run the report as schedule task.
Rgds,
Vinod

Hi
Have you:
1. Assigned a valid agent to your task - and have you checked that agent found is within the range of valid agents
2. If you have transported / or is testing on another client, remember that agent assignment must be made on that system as well - and remember - SWU_OBUF.
3. if this does not help check the authorizations  -  display access to authorization PLOG is required for infotype 1000, 1001 for objecttype AC.
Regards
Morten Nielsen

Similar Messages

  • Combining package configuration and Execute SQL task at run time

    Hi everyone,
    I have an issue regarding setting values at run time
    I use package configuration to manage different enviroments scenarios (DEV, PROD):
    XML file to store the connections string of SSISConfigDB
    and the actual values of parameters in that SSISConfig DB tables Filtered by ConfigurationFilter column
    Now, one of my packages needs in addition setting at run time value of a flat file name
    i used an Execute SQL task - within the task i read into a variable the file name using command line
    then, the full path of Flat File Connection is set by expression concatenating the root folder and the variable
    the problem is that the variable stays empy! as if the Execute SQL task was never executed!
     Am i doing something incorrect? in the package configuration wizard the configured value are only XML file and the connection string of the DB.
    to summerize - how can i combine package configuration, default value, Execute SQL task and expression at runtime?

    1.EvaluateasExpression=TRUE (Full Path variable)
    2. Do you mean to invlole a ISNULL() function in the expression? if so, no
    3. Of course i recieve a valid value
    4. The Full path expression is evaluated to the root folder - without the portion of the file name
    here is the syntax in Execute SQL Task:
      truncate table OnErrorFlagTable
      Declare @Path varchar(128)
      Declare @FileName varchar(128) 
      Declare @SenderID varchar(5)
      Declare @INST_COD varchar(5)
      Declare @Flag int = 0
     Declare @FileType varchar(2)='01'
      Truncate table TraumaRecords
    Select @Path = 'C:\RootFolder\'
     --***Insert into Temp table the file so we can take his name***--
    Create Table #Tmp(Txt Varchar(Max))
    Insert Into #Tmp(Txt)
    Exec master..xp_cmdshell 'Dir *.txt C:\RootFolder\/b'
    select top 1 @Filename = Txt From #Tmp
    Where ISNUMERIC(substring(Txt,1,1))=1
    order by Txt desc
    Insert into OnErrorFlagTable
    Select 2,@FileName
    Select @FileName as TraumaFileName,@FileType as FileType
    Then, in ResultSet TraumaFileName and FileType are mapped
    Expression of @TraumaFlatfileFullPath is
    @[User::TraumaFlatfilePath]+ @[User::TraumaFlatFileName]
    where the variable @[User::TraumaFlatfilePath] is evaluated in variable window (default value)
    and it's value is C:\RootFolder\
    and @[User::TraumaFlatFileName] is the ResultSet of the ExecuteSQLTask
    and for some reason when executed in SSIS return null while in SSMS return the expected value
    Can you try making this into a procedure with required parameters and call it from SQL task to see if you get return value correctly? Use OUTPUT parameters for getting back required values
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Help Please: Unable to Import or Burn CDs with iTunes

    Hello,
    At some point over the last few updates I seem to have lost the ability to import or burn CDs with iTunes. I've done so many times in the past with no problem however when I attempt to do so now my entire PC restarts or in a few cases gives me the generic Windows "iTunes needs to close" error.
    So far I've made sure my PC is not overheating. I've ruled out spyware or viruses using AVG and CCleaner. I've swapped out power supplies only to have the problem continue. I am able to listen to music and/or burn CDs and DVDs in both of my drives using other applications with no problem. I've tried fresh, clean installs of iTunes all the way back to 8.02 with no success. I've even gone as far as to completely reformat Windows only to have this problem continue.
    Any help or suggestions would be most welcome. I will be glad to provide any requested information, thank you.
    Message was edited by: Simbelmyne

    What good is buying your music through itunes if you can't burn a cd and/or back it up? Why isn't this issued solved - I can't burn a cd. I have missing registry files and warning that says to reinstall which I've tried unsuccessfully. Hopefully they'll find a fix before I lose my 500 songs I've purchased...does anyone back up on a external hard drive - any suggestions? Thanks

  • Help please - how can i change a file extension at run time

    hi all
    i have a question about file created on the run. for instance, if i need to create a file initially with a an extension of '.in'. and there are some processes writing data to it, and after the file is written. i need to change it to some thing like '.out'. is it possible to do this? can u please provide some samples if you have any solution or suggestion. thanks.

    do u have the links of these tutorials?IO tutorials...
    http://java.sun.com/docs/books/tutorial/essential/io/index.html

  • Sql loader at run time

    hi i want to load file to oracle databse using java .But at run time i want to make some changes like removiing duplicates and null values.please can body tell me how to use sql loader at run time. Thanks in advace .

    user11357554 wrote:
    hi i want to load file to oracle databse using java .But at run time i want to make some changes like removiing duplicates and null values.please can body tell me how to use sql loader at run time. Thanks in advace .Your requirements make very little sense. How do you propose to "load file to oracle databse using java" ? What does that mean ?
    Pl post details of your OS and database versions, along with your requirements, in simple English.
    Srini

  • HELP !  unable to read TLD

    Hi
    I've tried to run a jsp page that uses the following taglib attribute:
    <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
    but it comes up with the error message :
    Unable to read TLD "META-INF/c-1_0.tld" from JAR file "file:/C:/jakarta/jakarta-tomcat-5.0.19/webapps/ROOT/WEB-INF/lib/standard.jar": java.lang.IllegalStateException: zip file closed
    I've unzipped the standard.jar file to make sure that the c-1_0.tld file is there and it is actually there, I've also downloaded the latest version of the taglib but both actions have not solved my problem.
    The same error message comes up when i use the taglib
    <%@ taglib prefix="sql" uri="http://java.sun.com/jstl/sql" %>
    it says
    Unable to read TLD "META-INF/sql-1_0.tld" from JAR file "file:/C:/jakarta/jakarta-tomcat-5.0.19/webapps/ROOT/WEB-INF/lib/standard.jar": java.lang.IllegalStateException: zip file closed.
    This is really slowing things down as I cant get to use any of the standard taglib
    please I need help
    abiose

    the problem has been solved after i deleted the
    web.xml in the web-inf folder??
    could somebody please tell me why??
    could it be that there were some wrong settings in
    the web.xml?Possibly. If your web.xml had any taglib definitions in it related to JSTL, then yes, it was set upt incorrectly.
    Another possibility was that there was something wrong someplace else that had been fixed but the context not restarted and so the fix wasn't seen. Then the removal of the web.xml forced the context to be reloaded which showed the firx from earlier.
    As a side note, you should put back a web.xml, even if it is an empty <web-app ...></web-app>.

  • HT3669 Help please: Unable to connect HP4350 Laser Jet to network

    I just purchased the printer today (replaced an exact same printer) but am unable to connect it.  The printer is not appearing in the “Nearby Printers” list so I tried to manually add it with the IP address but keep getting message: “Unable to verify the printer on your network.  Unable to connect to “......” due to an error.  Would you still like to create the printer?”  I tried, & said continue but it does not work, printer que says “Printer not connected”  I feel like I must be just missing a simple step. I went through & reset the printers, did the disk utility, unplugged everything, shut off & restarted & NO LUCK!  Help Please! I have spent all afternoon trying to figure this out & am regretting not submitting my issue on here sooner...
    Thank you!

    How do you know what the IP address is?

  • Please help with fixing run time error - what is wrong ?

    Hi
    I am new with JDBC.
    I have compiled a program and am not getting any compile erors, however when trying to run it, am getting errors:
    Advanced Java : Test 1
    Programmer: C.C. Steyn
    Date: 15 July, 2008
    Filename: MakeDB.java
    Purpose: To build an initial database for the ClientNameTaxNrs application
    import java.sql.*;
    import java.io.*;
    public class MakeDB
    public static void main(String[] args) throws Exception
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    String url = "jdbc:odbc:ClientNameTaxNrs";
    Connection con = DriverManager.getConnection(url);
    Statement stmt = con.createStatement();
    // The following code deletes each index and table, if they exist.
    // If they do not exist, a message is displayed and execution continues.
    System.out.println("Dropping indexes & tables ...");
    try
    stmt.executeUpdate("DROP INDEX PK_ClientNameTaxNrs ON ClientNameTaxNrs");
    catch (Exception e)
    System.out.println("Could not drop primary key on ClientNameTaxNrs table: "
    + e.getMessage());
    try
    stmt.executeUpdate("DROP TABLE ClientNameTaxNrs");
    catch (Exception e)
    System.out.println("Could not drop ClientNameTaxNrs table: "
    + e.getMessage());
    ///////// Create the database tables /////////////
    System.out.println("\nCreating tables ............");
    // Create ClientNameTaxNrs table with primary key index
    try
    System.out.println("Creating ClientNameTaxNrs table with primary key index...");
    stmt.executeUpdate("CREATE TABLE ClientNameTaxNrs("
    +"ClientName TEXT(50) NOT NULL "
    + "TaxNr TEXT(10) NOT NULL, "
    +")");
    catch (Exception e)
    System.out.println("Exception creating ClientNameTaxNrs table: "
    + e.getMessage());
    // Read and display all ClientNameTaxNrs data in the database.
    ResultSet rs = stmt.executeQuery("SELECT * FROM ClientNameTaxNrs");
    System.out.println("Database created.\n");
    System.out.println("Displaying data from database...\n");
    System.out.println("ClientNameTaxNrs table contains:");
    byte[] buf = null;
    while(rs.next())
    System.out.println("Client Name: = "
    + rs.getString("ClientName"));
    System.out.println("Tax Nr: = "
    + rs.getString("Tax Nr"));
    rs = stmt.executeQuery("SELECT * FROM ClientNameTaxNrs");
    if(!rs.next())
    System.out.println("ClientNameTaxNrs table contains no records.");
    else
    System.out.println("ClientNameTaxNrs table still contains records!");
    rs = stmt.executeQuery("SELECT * FROM ClientNameTaxNrs");
    if(!rs.next())
    System.out.println("ClientNameTaxNrs table contains no records.");
    else
    System.out.println("ClientNameTaxNrs table still contains records!");
    stmt.close(); // closing Statement also closes ResultSet
    } // end of main()
    } // end of class
    ================================================
    here is the run time errors. How do i fix this ?
    Dropping indexes & tables ...
    Could not drop primary key on ClientNameTaxNrs table: [Microsoft][ODBC Microsoft
    Access Driver] Cannot find table or constraint.
    Could not drop ClientNameTaxNrs table: [Microsoft][ODBC Microsoft Access Driver]
    Table 'ClientNameTaxNrs' does not exist.
    Creating tables ............
    Creating ClientNameTaxNrs table with primary key index...
    Exception creating ClientNameTaxNrs table: [Microsoft][ODBC Microsoft Access Dri
    ver] Syntax error in CREATE TABLE statement.
    Exception in thread "main" java.sql.SQLException: [Microsoft][ODBC Microsoft Acc
    ess Driver] The Microsoft Jet database engine cannot find the input table or que
    ry 'ClientNameTaxNrs'. Make sure it exists and that its name is spelled correct
    ly.
    at sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.java:6879)
    at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:7036)
    at sun.jdbc.odbc.JdbcOdbc.SQLExecDirect(JdbcOdbc.java:3065)
    at sun.jdbc.odbc.JdbcOdbcStatement.execute(JdbcOdbcStatement.java:338)
    at sun.jdbc.odbc.JdbcOdbcStatement.executeQuery(JdbcOdbcStatement.java:2
    53)
    at MakeDB.main(MakeDB.java:69)
    Press any key to continue . . .

    Are you running Norton Internet Security or anything similar? There have been reports that Norton and similar firewall products treat an upgrade as a new application and so you have to go in and reallow connections for iTunes. Check the settings and if necessary remove and re-enable the exception for iTunes (consult your privacy filter's documentation for the appropriate procedure). You may also need to check the built-in Windows firewall as well.
    Hope this helps.

  • Unable to run vi with labview run time engine

    Hi All,
    I have a VI that controls and reads from an NI PXI Spectrum Analyser (5600). The VI works perfectly as expected, I can make a project of it and create a runtime application and installation with no problems, using Labview 8.6.
    When I make a call to it from Test Stand 4.1 it works lovely.
    When I change the VI adaptor in Test Stand 4.1 from development to use the LV Run Time engine 8.6 it fails to work, Test Stand gives the following dialogue (see attached).
    I have uninstalled all older versions of Labview as I've had similair issues before, I've mass compiled everything I think is associated with this VI.
    I don't really understand! And am tearing my hair out.
    The only idea I have is that perhaps there is something in one of the 5 DLLs that is causing a problem or the NI_AALBase.lvlib, NIAALPro.lvlib or NI_PtbyPt.lvlib librarys that are password locked and I presume don't get mass compiled.
    I have attached the problemVI.lvproj.
    Thanks for any advice or help.
    Matt
    Attachments:
    problem VI.lvproj ‏41 KB
    teststand.JPG ‏43 KB

    Matt,
    it sounds like you are having older versions of toolkit/driver VIs in your application. In developement environment, this works since the dev-system is capable to recompile older VIs just during loading and therefor not having issues with older versions.
    Running the VIs using the Runtime Engine, recompilation is not possible. Because every VI knows "its version", the VI will not be executable unless the RTE version matches the VI's. If the VI is older (or newer, doesn't matter), the observed error occurs.
    Please make sure that you have current versions of drivers and toolkits installed in your LV environment instead of simply copy them from older versions of LV (this would be the common source for such issues).
    hope this helps,
    Norbert 
    CEO: What exactly is stopping us from doing this?
    Expert: Geometry
    Marketing Manager: Just ignore it.

  • How do I identify an executable's path at run time?

    I am developing an application for deployment as an executable
    via an installation package. This application will need an
    accompanying initialization file which will store user configurable
    defaults (such as the root path to his data and other sundries).
    I am familiar with the configuration (.ini) VIs, as well as the
    application configuration file which resides in the same directory
    as the executable (application_name.ini) which the run-time engine
    automagically finds and loads.
    The problem arises when I want to add a custom .ini file (or possibly
    add custom entries in the application's existing file; can I do that?):
    How do I identify the path to the file (which is the same as the path
    to the executable)?
    I have no final control over where the user installs his copy, so I
    cannot use a hard-coded path to this file if I want this configuration
    file to reside in the same place as the executable. I don't want the
    application to not work simply because the user chooses to install it
    somewhere other than the default place.
    Bob

    I hate it when after an hour's searching I post a question
    and then find the answer ten minutes later...
    "Current VI's Path" on the file IO palette...
    Bob

  • How to get report (SQL Query) generating Run Time

    There is a Standard report of Payroll which show employee transfer information on the bases of location, grade job or organization, now to get actual query which is generated by run time in report builder including whether single column parameter or lexical parameter " because currently the query in not complicate but the parameter and lexical parameter is much more due to this not quite easy to under stand just copy past it into toad or pl/sql developer,
    Kindly share your experience to get such kind of query in you working time.
    thanks

    Here i try to explain contain of query.
    Parameter
    P_DEPTNO = 10
    P_WHERE_CLAUSE := ' AND EMPNO IS NOT NULL AND SALARY > 100'
    SELECT * FROM EMP
    WHERE DEPTNO = P_DEPTNO
    &P_WHERE_CLAUSE
    REPROT WILL GENERATE QUERY AT RUN TIME IS LIKE THAT
    SELECT * FROM EMP
    WHERE DEPTNO = 10
    AND EMPNO IS NOT NULL AND SALARY > 100
    Now i want to get this query out(Run time) by doing any oracle database feature or sth similar.
    thanks

  • Help Please: Unable to download images in e-mail

    Hi,
    I am a new Blackberry user and I recently purchased a new Blackberry 8900 on T-mobile (USA). I am having a number of issues with e-mail.  I am using a Blackberry Enterprise Server to connect to my personal e-mail which is hosted by the third party Microsoft Exchange hosting company.
    Basically, I am able to receive e-mails but even though I have the settings set to "Yes" for both HTML E-mail and Download Images Automatically, when I open HTML e-mails, no images are displayed.  To make matters even worse, when I open the menu and select "Get Images", they STILL do not download, even though I see the "arrow" icon on the top right corner.  I have no idea why this is happening.  I have tried rebooting and I have called T-mobile Tech Support, which is useless.  They just tell me to reinstall the phone's software, which I don't think will help.
    I am also have one other more minor issue.  When my device first synched with my Exchange Accountallmye-mail came across but only the headers were downloaded.This is not an issue for any new messages I receive, just for the ones that were synched initially.The auto more feature was and is still turned on.
    PLEASE HELP... I am desperate to solve these issues, or I think I am going to return the phone and just go back to my T-mobile Dash, which had none of these issues, despite it's shortcomings.
    Thanks,
    Matt.

    Hi,
    I am a new Blackberry user and I recently purchased a new Blackberry 8900 on T-mobile (USA). I am having a number of issues with e-mail.  I am using a Blackberry Enterprise Server to connect to my personal e-mail which is hosted by the third party Microsoft Exchange hosting company.
    Basically, I am able to receive e-mails but even though I have the settings set to "Yes" for both HTML E-mail and Download Images Automatically, when I open HTML e-mails, no images are displayed.  To make matters even worse, when I open the menu and select "Get Images", they STILL do not download, even though I see the "arrow" icon on the top right corner.  I have no idea why this is happening.  I have tried rebooting and I have called T-mobile Tech Support, which is useless.  They just tell me to reinstall the phone's software, which I don't think will help.
    I am also have one other more minor issue.  When my device first synched with my Exchange Accountallmye-mail came across but only the headers were downloaded.This is not an issue for any new messages I receive, just for the ones that were synched initially.The auto more feature was and is still turned on.
    PLEASE HELP... I am desperate to solve these issues, or I think I am going to return the phone and just go back to my T-mobile Dash, which had none of these issues, despite it's shortcomings.
    Thanks,
    Matt.

  • HELP PLEASE! Computer reads iTouch as a camera. Will not open in iTunes.

    Could an expert please answer this question. I've browsed the discussion board looking for answers but everyone just seems to have a different problem.
    I run Windows XP Pro. Everything was working fine until the new version of iTunes came out. Ok, so recently I updated my iTunes to version 7.7.1. When this happened, my iTunes no longer read my iTouch. Long story short, a couple of sytem restores later and an upgrade to the 2.0 applications program, and my iTouch was stuck in recovery mode. A couple hours ago I went to the Apple store and a genius fixed my iTouch back to factory mode. I reinstalled iTunes 7.7.1 and plugged my iTouch in, and my PC read the iTouch as a camera and had a list of 5 or so programs to open it with (not iTunes). So I opened iTunes manually and my iTouch is not being read. I checked to make sure I had the latest version and it says "This version of iTunes (7.7.1) is the current version". Then I try and do a diagnostics test and I get this message "iTunes has encountered a problem and needs to close. We are sorry for the inconvenience". When I view more information, under "The following files will be included in this error report:" it says C:\DOCUME~1\ALANIB~1.ALA\LOCALS~1\Temp\636b_appcompat.txt So yeah.
    I also don't have any pictures on my iTouch.
    What in the world is going on. It was working fine until I updated. This is really starting to **** me off. Thanks!
    Message was edited by: alski89

    SWEET I FIXED IT.
    So I went to control panel, add/remove programs, and removed the "Apple Mobile Device Support". Then I restarted my computer. I then went to add/remove programs again and this time removed iTunes. I restarted my computer again. Next I installed the latest version of iTunes and restarted my computer immediatly after. Everything worked fine after that.

  • Help Please - Pdf shows/ reads some white pages when opened by some  people

    I have made a pdf book of my artworks ( on a mac) and have a major problem. When I send it out, some people are able to read everything but others get a couple of white blank pages when they view the pdf online or download it or sometimes only either one. It seems to always be the pages that are just black and white...
    However when i try to open the same file i sent them but on my computer at home( MAC) or at work(PC), it works fine.
    But on my Iphone, i get the same problem as these people with the same pages turning blank...
    All Pages of the book were made in photoshop. I saved them as pdf individually before combining everything to a pdf book and i had this problem. Then I tries to save all in jpg and then convert and combine them to a pdf book, still get the same problem.... Some people get white pages....
    Help much appreciated.
    Thank you in advance.

    If you're using GMail see the support article here for how to enable POP
    http://support.google.com/mail/bin/answer.py?hl=en&answer=181714

  • Help Please: unable to delete "artist" from "purchased" in iTunes store

    In my purchased (in iTunes) category, I am unable to delete the artist from my purchased music category in iTunes store.. When I clicked on the artist it shows me no songs but has a 2 written beside the artist name. Are the songs hidden?

    Open your Purchased playlist, and make sure that the View menu is set to "As List" so that you can see everything that is there.
    Are you trying to delete the item from your library, or only from that list?  If the latter don't bother, because the list is rule-driven and the item will immediately pop back in.  If the former, highlight the track(s) you don't want, hold Shift, and hit Delete.

Maybe you are looking for

  • Disk Utility can't repair Macintosh HD.  What should I do?

    Here is a "quick" synopsis of what has happened thus far: About one month ago, my computer started getting very sluggish (ie, it would take forever to startup, would always freeze after sleep, etc.)  I lived with it for about two weeks, since it woul

  • How do you clear spotlight search history in mail?

    I'd like to clear search history in Mac Mail.  How do I clear this history?

  • TAB Drop Down List

    Hi Guys, My client has been upgraded to 8.81 PL10. Now when he is presseing tab say on the business partner code, he does not get the list of business partners. Previously if he click on a sales order- business parter code TAB and you get the drop do

  • ITunes freeze when on podcasts tab

    I have a problem with the latest itunes 10.2.  When i load itunes podcast tab it freezes. To sucessfully relaunch itunes, i need to delete the itunes.plist file in library/preferences directory and once i try to reload the podcast folder it freezes a

  • How do you clear history icons

    Prior to iOS7 i could double click the bottom button on my ipad and clear all the icons running in the background...how do I clear those icons now?