Script error when using Data parameter.

Post Author: despec
CA Forum: General
Hello,I'm not sure what's going on here, but when I try to use a data parameter and run the report, upon clicking on the calander icon, I get a JS error saying that an object was expected in line 80.  A referring URL to a prompting htrml is listed, but I'm just not sure what I need to do to straighten this out.  Service pack perhaps? David

Post Author: V361
CA Forum: General
I have had a similar problem with CR XI,  if I put the date in manually no worries, if I use the calendar, I get some sort of error as well,  "a runtime error has occured, error line 742", this happens on my CR XI on one machine, it is running on product version 11.5.8.963,  I also have CR XI, on a test server, running 11.5.8.826 and I do not have an issue with this one.  So... Long story made short, it may well be the service patch.  When I debug the error it tells me there is a "Microsoft Jscript runtime error"  It is pointing to c:/program files/business objects/common/3.5/crystalreportveiwers115/prompting/js/promptengine_calendar.js

Similar Messages

  • Error when using data postion delay

    I obtained this error when using data position delay. Can anyone please
    tell me the reason why I can not configure the delay to be between 0.7
    and 0.8.
    Possible reason(s):
    Driver Status:  (Hex 0xBFFA403F) Unable to configure requested delay property given the current clock rate.
    Ensure that the delay value specified is within the valid range for the
    frequency specified or do not configure property for delay operation.
    Device: PXI1Slot2
    Property: Data Position
    Sample Rate: 40000000.0
    Requested Value: 0.71875
    Supported Values: 0.000 through 0.200, 0.300 through 0.700, 0.800 through 1.000,
    Status Code: -219401

    Timothy,
    The 656x devices have a limit on the available data delay values based
    on frequency.  Between 25MHz and 50MHz there are "holes" in the
    available delay range.  Above 50MHz, the full 0 to 1 data delay is
    valid.  If you look in the specifications installed with NI HSDIO
    for the NI 656x, on page 7, Figure 1, there is an illustration showing
    how to compute what the valid range is for the frequency of interest.
    For example, at 40MHz, valid values are:
    0 to 0.2
    0.3 to 0.7
    0.8 to 1
    In the error message posted below, you tried to input a value of 0.71875 which is not within these ranges.

  • Error when using Date Parameters...

    Hi everybody,
    I have a little issue.
    Ever since I upgraded my CRXI R2 to SP4 I've had a little problem using date parameters.
    The little calendar icon next to the parameter field no longer works.
    When I click it I get the following error message:
    An error has occurred in the script on this page.
    Line:       79
    Char:      1
    Error:      Object Expected
    Code:      0
    URL:       file://C:\Documents and Settings\jlong\Local Settings\Temp\prompting1.html
    I'm thinking this is probable a quick registry fix, but I have no idea where to start looking.
    Hopefully one of you CR guru's knows the answer.
    Thanks in advance,
    Jason

    It seems you are having a scripting issue.
    Go onto the Internet explorer settings (internet options under control panel)
    click on security and then click on Internet and then Custom tab.
    Scroll right down where it says Scripting and enable it.
    That should resolve the issue.
    Here is the full list of browsers with scripting options:
    Windows Internet Explorer
    (all versions except Pocket Internet Explorer)
    Note To allow scripting on this Web site only, and to leave scripting disabled in the Internet zone, add this Web site to the Trusted sites zone.
    1. On the Tools menu, click Internet Options, and then click the Security tab
    2. Click the Internet zone.
    3. If you do not have to customize your Internet security settings, click Default Level. Then do step 4
    If you have to customize your Internet security settings, follow these steps:
    a. Click Custom Level
    b. In the Security Settings u2013 Internet Zone dialog box, click Enable for Active Scripting in the Scripting section.
    4. Click the Back button to return to the previous page, and then click the Refresh button to run scripts.
    ===========
    Mozilla Corporationu2019s Firefox version 2
    1. On the Tools menu, click Options.
    2. On the Content tab, click to select the Enable JavaScript check box.
    3. Click the Go back one page button to return to the previous page, and then click the Reload current page button to run scripts.
    ===========
    Opera Softwareu2019s Opera version 9
    1. On the Tools menu, click Preferences.
    2. On the Advanced tab, click Content.
    3. Click to select the Enable JavaScript check box, and then click OK.
    4. Click the Back button to return to the previous page, and then click the Reload button to run scripts.
    ===========
    Netscape browsers
    1. Select Edit, Preferences,Advanced
    2. Click to select Enable JavaScript option
    Hope this helps.
    Regards
    Jehanzeb
    Edited by: Jehanzeb Navid on Jul 28, 2008 4:38 PM
    Ok I think I got this totally wrong. this isn't what you are looking for.
    Sorry!!! can't delete this reply arggghh!!!
    Edited by: Jehanzeb Navid on Jul 28, 2008 4:40 PM
    Maybe this might help?
    Remove Web Customization
    If multiple folders are causing the script error, remove Web customization from any folder that generates the error message.
    To remove customization from a folder, use the following steps:
    1. Open the appropriate folder.
    2. On the View menu, click Customize This Folder, click Remove Customization, click Next, and then click Finish.
    3. Close the folder.

  • Script Error when using IE on my iMac

    Thanks to all the people that helped me with my previous problems.
    I have another problem though. When I'm using IE on my iMac, on about 80% of the pages I go to, it'll say "A script error occured. Some scripts on the affected page may not work correctly. Do you want to continue running scripts on the affected page?" then it asks for yes or no, and i choose yes. Some times the page will open correctly, but sites like www.aim.com will only display the background image, but no text. I can't even see any thing on www.apple.com (I'm using my PC right now). Is there some thing I can download to fix this problem? Thanks.

    Internet Explorer is no longer supported on the Mac. There are numerous alternatives like Wacom Mozilla, Netscape, iCab, Opera which are available for Mac OS 8.6.
    You may though find more and more websites which don't work properly on Mac OS 8.6. Disabling Javascript and Java will make many work better, though some buttons and menus may be missing. This is as much a problem of the webmaster not following the good practices of making the website accessible to all people who use it. http://www.anybrowser.org/ has a great website about writing websites following standards that are usable on all browsers, as well as letters you can write webmasters that aren't able to make their website visible on all browsers.
    Some alternative web browsers I've listed on http://www.macmaps.com/browser.html
    I'd add, Mac OS X has much better support of websites than Mac OS 8.6 or earlier, and if you are finding websites you use frequently don't support any Mac OS 8.6 web browser, it may be time for you to upgrade. The G3/233 iMac's maximum operating system is 10.3.9, though you must upgrade its firmware before attempting to install 10.2 or later.

  • Scripting error when using 64 bit internet explorer

    Could you please give me a solution to the following:
    Laptop  HP Pavillion dv7-3112sa  Windows 7
    Printer  HP Photosmart B209
    Wireless connection Netgear DGND 3300 v2
    When I use internet explorer 64 bit and try to print, I get a message "Scripting Error" and it will not print.
    This is OK on 32 bit.
    I cannot update my HP software because I lose wireless communications altogether and have to do a restore to get it to work again.
    This question was solved.
    View Solution.

    Scripting errors are related to how the website behaves with a browser.
    In this case, it is printing script that is having an issue and it appears to be with the 64bit Internet Explorer since it works fine with Internet Explorer 32bit.
    Review this article from Microsoft regarding this issue.
    You have already found the best resolution to this issue:  Using 32bit Internet Explorer.
    64bit web browsing is still a very small portion of web sites and very few fully support the 64bit browsing experience.  I highly recommend using a 32bit web browser for viewing websites as this will give you the best compatibility as every website still supports 32bit browsing, but not all sites are fully compatible with 64bit browsers.  
    ↙-----------How do I give Kudos?| How do I mark a post as Solved? ----------------↓

  • Java script error when using a "Table" component (jsc2)

    using a table component, I get a js errors, when lodiing the HTML page, sorting rows etc.
    can some one helpe me or can some one have the same problem ?

    Hi,
    Please post JSC2 related queries at:
    https://feedbackprograms.sun.com/login.html
    Cheers
    Giri

  • Getting error when using the "/parameter" switch in command line run

    Has anyone experienced this problem before?
    My report queries over 100,000 records from a view. When the report is run from the command line every thing works fine.
    But when I add a condition using a "parameter", although the report still runs fine from the destop, when launched from the command line it errs.
    "Oracle Discoverer Desktop has encountered a problem and needs to close. ..."
    "The instruction at "0x0044397c" referenced memory at "0x0000004e". The memory cound not be "read"...."
    I'm guessing its a memory issue with my PC. I've tested using a parameter with other reports using fewer records and it doesn't err from the command line.
    I can work around the issue by not using a parameter but then I have 20 versions of the same report each with a different condition.
    Any suggestions would be appreciated.
    Lise McGillis

    Hi Michael,
    I'm using an DELL Intel Pentium 4 CPU 3.00 GHz with 1 GB of RAM. We use Microsoft Windows XP Prof version 2002.
    As for Discoverer we are using 10G, Desktop Client 10.1.2.48.18 - 1047500 KB available memory , 2099744 KB Free disk space.
    I'm not sure I have acess to a computer with more RAM but I'm looking into it.
    What I'm frustrated by is the fact that the parameter works fine when run directly from the desktop but when passed from the command line it bombs... but only when dealing with mega records.
    Lise.

  • "access denied" error when using data bindings in region

    Whenever I use data boundings in a region jspx or even in a subview page, I got "access denied" error in other page that uses this region or subview.
    Anybody know if there is any workaround?
    Thanks a lot!

    Thanks Frank.
    I tried to copy all the bindings in subpage pageDef to mainpage pageDef - no luck.
    I was trying to use region to implement tile like templating following this nice article
    http://technology.amis.nl/blog/?p=1709
    Because of this access denied issue, seems this nice article is not that useful.

  • Script error when using oberon games

    I can't load jewel quest or another Oberon game. I get a script error message and everything stops and I have to reboot.

    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Firefox/Tools > Add-ons > Appearance).
    *Do NOT click the Reset button on the Safe Mode start window.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    You can check for problems with current Flash plugin versions and try these:
    *disable a possible RealPlayer Browser Record Plugin extension for Firefox and update the RealPlayer if installed
    *disable protected mode in the Flash plugin (Flash 11.3+ on Windows Vista and later)
    *disable hardware acceleration in the Flash plugin
    *http://kb.mozillazine.org/Flash#Troubleshooting

  • CRViewer XI R2 Select Expert error when using dates

    I am using RDC.  CR XI R2 w/ SP2/3.  When I open any report with dates in the output and then use Select Expert and choose a date from the browse or dropdown list I get an error.
    "Error - the ) is missing"
    -Thanking you in advance.... Brent
    Edited by: Brent Lawrence on Jun 11, 2008 2:15 PM
    Edited by: Brent Lawrence on Jun 11, 2008 2:18 PM

    Hello Brent,
    I'm sorry the RDC viewer and the Select Expert do not meet your expectations.  The RDC was deprecated with the release of Crystal Reports 10.  Once the RDC was deprecated it stopped receiving development focus for issues like this.  The RDC remained available for two more versions (XI / XI R2) but it has now been retired with the release of CR 2008 a few months ago.
    I'm surprised to hear that the Select Expert wasn't showing this issue in CR XI (v11.0), unfortunately I won't be able confirm this.
    If you want to roll back to the viewer for CR XI (v11.0) you have to roll back entirely to work with CR XI (v11.0).  You should not mix versions of DLLs (e.g crviewer.dll v11.0 and craxdrt.dll v11.5).  This may work, but it would not be supported for any issues you might encounter.  You indicated in your post that you moved to CR XI R2 (v11.5) to get past another issue that was resolved in CR XI R2, so rolling back entirely won't be a solution.
    With the retirement of the RDC the recommended upgrade path for Windows application development is to move to the Crystal Reports .NET SDK.  The Crystal Reports .NET SDK is available in CR XI R2 so if you want to explore this SDK as well you can visit the online developer library for additional information.  Here's the link:
    http://devlibrary.businessobjects.com/BusinessObjectsXIR2SP2/en/devsuite.htm
    Sincerely,
    Dan

  • Tomcat error when using data source.

    Hello,
    I have a problem in that Tomcat does not seem to be recognising my DB Driver. I have tried linking a global data source to my application as well as adding a project specific one with no luck. Here is some of my files:
    //Web.xml
    <?xml version='1.0' encoding='UTF-8'?>
    <web-app
    version="2.4"
    xmlns="http://java.sun.com/xml/ns/javaee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
    http://java.sun.com/xml/ns/javaee/web-app_2_4.xsd"
    >
    <display-name>DataSourceExample</display-name>
    <servlet>
    <display-name>welcome</display-name>
    <servlet-name>welcome</servlet-name>
    <jsp-file>/welcome.jsp</jsp-file>
    </servlet>
    <servlet>
    <display-name>DataSourceExample</display-name>
    <servlet-name>DataSourceExample</servlet-name>
    <jsp-file>/DataSourceExample.jsp</jsp-file>
    </servlet>
    <welcome-file-list>
    <welcome-file>welcome.jsp</welcome-file>
    </welcome-file-list>
    <resource-ref>
    <res-ref-name>jdbc/DataSourceExample</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
    <res-sharing-scope>Shareable</res-sharing-scope>
    </resource-ref>
    </web-app>
    //server.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <Server>
      <Listener className="org.apache.catalina.core.AprLifecycleListener"/>
      <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"/>
      <Listener className="org.apache.catalina.storeconfig.StoreConfigLifecycleListener"/>
      <Listener className="org.apache.catalina.mbeans.ServerLifecycleListener"/>
      <GlobalNamingResources>
        <Environment
          name="simpleValue"
          type="java.lang.Integer"
          value="30"/>
        <Resource
          name="jdbc/DataSourceExample"
          type="javax.sql.DataSource"
          maxActive="4"
          maxIdle="2"
          username="hr"
          maxWait="5000"
          driverClassName="oracle.jdbc.driver.OracleDriver"
          password="secret"
          url="jdbc:oracle:thin:@127.0.0.1:1521:xe"/>
        <Resource
          auth="Container"
          description="User database that can be updated and saved"
          name="UserDatabase"
          type="org.apache.catalina.UserDatabase"
          factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
          pathname="conf/tomcat-users.xml"/>
      </GlobalNamingResources>
      <Service
          name="Catalina">
        <Connector
            port="8084"
            redirectPort="8443"
            minSpareThreads="25"
            connectionTimeout="20000"
            maxThreads="150"
            maxSpareThreads="75">
        </Connector>
        <Connector
            port="8009"
            redirectPort="8443"
            protocol="AJP/1.3">
        </Connector>
        <Engine
            defaultHost="localhost"
            name="Catalina">
          <Realm className="org.apache.catalina.realm.UserDatabaseRealm"/>
          <Host
              appBase="webapps"
              name="localhost">
             <Context
                path="/DataSourceExample"
              <ResourceLink
                global="jdbc/DataSourceExample"
                name="jdbc/DataSourceExample"
                type="javax.sql.DataSource"/>
            </Context>
          </Host>
        </Engine>
      </Service>
    </Server>
    //A java snippet I am using to access the DB
    InitialContext context = new InitialContext();
    DataSource dataSource =
    (DataSource) context.lookup("java:comp/env/jdbc/DataSourceExample");
    Connection conn = null;
    Statement stmt = null;
    ResultSet rset = null;
    try {
    conn = dataSource.getConnection();
    stmt = conn.createStatement();I also have my DB drivers in the commons/lib file. I know the connect string works fine because I can access the DB from Eclipse when writing standard Java code.
    This is a common problem and I have been searching Google for the last 3 hours but nothing I have tried has fixed my problem.
    I am using Tomcat 5.5 and J2EE 5. I am creating the links and resources in Tomcat manager.
    I don't get any logs or stacktrace, the only error I get is as follows in the returned JSP page:
    DataSource Example
    Cannot create JDBC driver of class '' for connect URL 'null'What am I doing wrong?
    Cheers
    EDIT:
    Actually there was some output from the shell. Here it is:
    org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of cla
    ss '' for connect URL 'null'
            at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDat
    aSource.java:780)
            at org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSo
    urce.java:540)
            at org.apache.jsp.DataSourceExample_jsp._jspService(DataSourceExample_js
    p.java:61)
            at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
            at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper
    .java:332)
            at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:3
    14)
            at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
    icationFilterChain.java:252)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
    ilterChain.java:173)
            at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
    alve.java:213)
            at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
    alve.java:178)
            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
    ava:126)
            at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
    ava:105)
            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
    ve.java:107)
            at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
    a:148)
            at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
    :869)
            at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.p
    rocessConnection(Http11BaseProtocol.java:664)
            at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpo
    int.java:527)
            at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFol
    lowerWorkerThread.java:80)
            at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
    ool.java:684)
            at java.lang.Thread.run(Thread.java:619)
    Caused by: java.lang.NullPointerException
            at sun.jdbc.odbc.JdbcOdbcDriver.getProtocol(JdbcOdbcDriver.java:507)
            at sun.jdbc.odbc.JdbcOdbcDriver.knownURL(JdbcOdbcDriver.java:476)
            at sun.jdbc.odbc.JdbcOdbcDriver.acceptsURL(JdbcOdbcDriver.java:307)
            at java.sql.DriverManager.getDriver(DriverManager.java:253)
            at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDat
    aSource.java:773)
            ... 22 more
    org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of cla
    ss '' for connect URL 'null'
            at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDat
    aSource.java:780)
            at org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSo
    urce.java:540)
            at org.apache.jsp.DataSourceExample_jsp._jspService(DataSourceExample_js
    p.java:61)
            at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
            at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper
    .java:332)
            at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:3
    14)
            at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
    icationFilterChain.java:252)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
    ilterChain.java:173)
            at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
    alve.java:213)
            at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
    alve.java:178)
            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
    ava:126)
            at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
    ava:105)
            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
    ve.java:107)
            at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
    a:148)
            at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
    :869)
            at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.p
    rocessConnection(Http11BaseProtocol.java:664)
            at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpo
    int.java:527)
            at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFol
    lowerWorkerThread.java:80)
            at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
    ool.java:684)
            at java.lang.Thread.run(Thread.java:619)
    Caused by: java.lang.NullPointerException
            at sun.jdbc.odbc.JdbcOdbcDriver.getProtocol(JdbcOdbcDriver.java:507)
            at sun.jdbc.odbc.JdbcOdbcDriver.knownURL(JdbcOdbcDriver.java:476)
            at sun.jdbc.odbc.JdbcOdbcDriver.acceptsURL(JdbcOdbcDriver.java:307)
            at java.sql.DriverManager.getDriver(DriverManager.java:253)
            at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDat
    aSource.java:773)
            ... 22 moreI am using ojdbc14.jar driver and as I mentioned it is in commons/lib
    Message was edited by:
    helloWorld
    Message was edited by:
    helloWorld

    Putting the driver into [TOMCAT]/common/lib is sufficient.
    The error I think is not related to finding the driver, but actually not retrieving the correct connection string info.
    I never had much luck putting this definition info into server.xml
    I have had success putting it into a custom context.xml file for a web app as described [url http://tomcat.apache.org/tomcat-5.5-doc/config/context.html]here
    in individual files (with a ".xml" extension) in the $CATALINA_HOME/conf/[enginename]/[hostname]/ directory. The name of the file (less the .xml) extension will be used as the context path. Multi-level context paths may be defined using #, e.g. context#path.xml. The default web application may be defined by using a file called ROOT.xml.
    eg [TOMCAT]/conf/catalina/localhost/DataSourceExample.xml
    Hope this helps,
    evnafets

  • "Too Few Arguments" error when using Date Format

    I'm attempting to format some date information. I'm taking the following query:
    mysql_select_db($database_adventcms, $adventcms);
    $query_rsDatedetails = sprintf("SELECT * FROM tbEvents WHERE id = %s", GetSQLValueString($colname_rsDatedetails, "int"));
    $rsDatedetails = mysql_query($query_rsDatedetails, $adventcms) or die(mysql_error());
    $row_rsDatedetails = mysql_fetch_assoc($rsDatedetails);
    $totalRows_rsDatedetails = mysql_num_rows($rsDatedetails);
    and changing it to this:
    mysql_select_db($database_adventcms, $adventcms);
    $query_rsDatedetails = sprintf("SELECT *, DATE_FORMAT(datestart, '%b') AS whichMonth, DATE_FORMAT(datestart, '%Y') AS whichYear, DATE_FORMAT(datestart, '%D') AS whichDate FROM tbEvents WHERE id = %s", GetSQLValueString($colname_rsDatedetails, "int"));
    $rsDatedetails = mysql_query($query_rsDatedetails, $adventcms) or die(mysql_error());
    $row_rsDatedetails = mysql_fetch_assoc($rsDatedetails);
    $totalRows_rsDatedetails = mysql_num_rows($rsDatedetails);
    When I run it I get this error:
    Warning: sprintf() [function.sprintf]: Too few arguments in /home/iasindia/public_html/beta/newsandevents/eventdetails.php on line 60
    Query was empty
    which refers to the query line above. The odd thing is that same query works on a different query like this:
    $query_rsDates = "SELECT *, DATE_FORMAT(datestart, '%b') AS whichMonth, DATE_FORMAT(datestart, '%Y') AS whichYear, DATE_FORMAT(datestart, '%D') AS whichDate FROM tbEvents WHERE status = 'Live' AND datestart >= CURDATE() ORDER BY datestart DESC";
    $query_limit_rsDates = sprintf("%s LIMIT %d, %d", $query_rsDates, $startRow_rsDates, $maxRows_rsDates);
    $rsDates = mysql_query($query_limit_rsDates, $adventcms) or die(mysql_error());
    $row_rsDates = mysql_fetch_assoc($rsDates);
    But I can't get it to work on the $query_rsDatedetails above.
    Any help would be appreciated!

    The sprintf function is interpreting the date format type as an input. There are several solutions:
    http://stackoverflow.com/questions/5835534/mysql-query-date-format-and-sprintf

  • Custom Sql fails when using Date Parameter

    I need to do following using DB adapter
    select count(*) from some_table where creation_date >= #from_date and creation_date <= #to_date
    I used Custom sql options, but It did not asked for add params. so I added manually above params in the query. I am getting following query. I don't know how to get this working. i am on 10.1.3.
    Here I am getting from and to dates from a AQ message. AQ has from and to_date as date type elements. I am doing copy assign of these to SQL input params
    below is the error.
    <messages><input>
    <RecordCount_service_InputVariable><part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    name="XI_RecordCount_serviceInput_msg"><XI_RecordCount_serviceInput xmlns="http://xmlns.oracle.com/pcbpel/adapter/db/XI_RecordCount_service">
    <ns0:v_fromdate1 xmlns="" xmlns:ns0="http://xmlns.oracle.com/pcbpel/adapter/db/XI_RecordCount_service">2008-01-01T00:00:00.000-06:00</ns0:v_fromdate1>
    <ns0:v_todate1 xmlns="" xmlns:ns0="http://xmlns.oracle.com/pcbpel/adapter/db/XI_RecordCount_service">2008-01-31T00:00:00.000-06:00</ns0:v_todate1>
    <ns0:v_fromdate2 xmlns="" xmlns:ns0="http://xmlns.oracle.com/pcbpel/adapter/db/XI_RecordCount_service">2008-01-01T00:00:00.000-06:00</ns0:v_fromdate2>
    <ns0:v_todate2 xmlns="" xmlns:ns0="http://xmlns.oracle.com/pcbpel/adapter/db/XI_RecordCount_service">2008-01-31T00:00:00.000-06:00</ns0:v_todate2>
    </XI_RecordCount_serviceInput>
    </part></RecordCount_service_InputVariable></input><fault><bindingFault xmlns="http://schemas.oracle.com/bpel/extension"><part name="code"><code>1861</code>
    </part><part name="summary"><summary>file:/u01/app/oracle/product/10.1.3/bpm/bpel/domains/arun/tmp/.bpel_XI_P2EU_Allegro_Service_1.0_79d8666bc8efe5a375691e0a5f06e2e4.tmp/XI_RecordCount_service.wsdl [ XI_RecordCount_service_ptt::XI_RecordCount_service(XI_RecordCount_serviceInput_msg,XI_RecordCount_serviceOutput) ] - WSIF JCA Execute of operation 'XI_RecordCount_service' failed due to: Pure SQL Exception.
    Pure SQL Execute of select count(*) record_count FROM XI_TABLE WHERE ( (trunc(CREATION_DATE) >= ? AND TRUNC(CREATION_DATE) &lt;= ?) OR (trunc(last_update_date) >= ? AND TRUNC(last_update_date) &lt;= ?) ) failed. Caused by java.sql.SQLException: ORA-01861: literal does not match format string
    ; nested exception is:
         ORABPEL-11633
    Pure SQL Exception.
    Pure SQL Execute of select count(*) record_count FROM XI_TABLE WHERE ( (trunc(CREATION_DATE) >= ? AND TRUNC(CREATION_DATE) &lt;= ?) OR (trunc(last_update_date) >= ? AND TRUNC(last_update_date) &lt;= ?) ) failed. Caused by java.sql.SQLException: ORA-01861: literal does not match format string
    The Pure SQL option is for border use cases only and provides simple yet minimal functionality. Possibly try the "Perform an operation on a table" option instead.
    </summary>
    </part><part name="detail"><detail>ORA-01861: literal does not match format string
    </detail>
    </part></bindingFault></fault></messages>

    I think the database accepts only your database format' dd-mm-yyyy'.
    Try to define #from_date & #to_date as string and use to_date() in your custim sql statement.
    Marc

  • Script Error: when use euc-kr encoding in Internet Browser

    When I use euc-kr encoding, there are some javascript error. so I can't access any page except the start page. and when I insert/update/delete/find with the Korean language, it's failed. how can I user euc-kr (Korean language) with JHeadStart?
    thanks.

    Check out the section about Internationalization in the JHeadstart User's Guide. It includes an explanation about how to change the default character encoding in the web.xml file.
    Hope this helps,
    Sandra Muller
    JHeadstart Team

  • Error when using LOV on date-field (qms0012F)

    We are using QMS0012F.fmb (Headstart Template Package 6.5) to
    launch all our reports. However, when a date-parameter is
    defined as the last field in this form and when you select a
    date using the LOV (windows-calendar), an error appears: 'FRM-
    41051, you cannot create records here'. Therefore, when
    possible, we defined the date-parameters as the first one in
    row. In a couple of reports this is practically not possible,
    simply because the date-field is the only one which has to be
    filled. Is there a property to adjust or another solution to
    solve this?
    By the way: happy new year!

    The Designer library ofgcall65 contains a package calendar, which contains a procedure close_calendar.
    This procedure does a NEXT_ITEM (to implement an AUTO_SKIP) as its last action.
    You will need to correct the problem with a customization to that library.
    Regards,
    Lauri

Maybe you are looking for

  • Airprint wired vs wireless

    I have a supposedly air print capable  Lexmark M810N printer connected to our domain with a hard wired LAN connection, however I am told I can not use its air print capabilities with my IOS 8.11 device unless I take off the domain and hard wire it to

  • Can I load several files in parallel through one file infopackage?

    Can I load several files in parallel through file datasource?

  • Safari 3.0.4 misbehaving

    Hi, I use a content management system, for the website I run, that is accessed over the internet. As the system was set up to run on Internet explorer there have always been little problems using the system on a mac but most of these were ironed out

  • How to center page in Pages

    Hey im used to the word templates and i dont like how the actual page in Pages is aligned to the left, how would i get it in the middle?

  • Why does my Flash player freezes/crashes on all browsers. Mouse will flicker, etc

    I've reinstalled flash, cleared settings, cleared cache, checked on another user account, etc. All was working fine before I did a new SSD install. I copied the older hard drive to the SSD and everything else seems fine. When loading a page with flas