Query fails in BI Pub but works in other interfaces

I have a query that fails in BI Publisher with an 'ORA-00920: invalid relational operator' error but I drop the same query in toad and it works fine. I don't see an error but when one tool tells me something works and another tells me it doesn't, I tend to believe the one that works. There is a case statement in the where clause that seems to be the problem (see below). If I comment it out the query works in BI Pub. The case statement WORKS in Toad. I don't know how to troubleshoot a 'non-error' to make it work in in BI Publisher. Could it be a Toad thing?
where
o.orgpoint_nm in (:p_orgpoint_nm) and
i.inventory_status_desc in (:p_inventory_status) and
i.version_num in (:p_inventory_version) and
(case
when (:p_regulation_alt_nm) is not null and instr(lreg.regulation_alt_nm,(:p_regulation_alt_nm)) > 0
then 1
when (:p_regulation_alt_nm) is null and lreg.regulation_nm in (:p_regulation_nm)
then 1
end) = 1 AND
lreq.requirement_nm in (:p_requirement_nm) and
oi.effective_dt <= sysdate and etc.........

You could use the Word Page break and see if that works better..
Thank you,
Tony Miller
Webster, TX

Similar Messages

  • Printer GPOs fail on some computers but work on others - error code 0x80070034

    Hello, I have a couple of GPOs that roll our printers. They have been running smoothly for quite some time, then suddenly started giving our errors on our newer machines. Meaning, the GPOs will work fine on some clients but will not work on others. Also
    all other GPOs work fine on all clients. The clients are similar Lenovo Windows 7 64-bit machines.
    This is the error: Event ID: 4098, Group Policy Printers. The computer '123.123.123.123' preference item in the 'Deploy printers - {3F6DE6D0-86DC-4D1F-AB99-81BC07F23F3C}' Group Policy object did not apply because it failed with error code '0x80070034 You
    were not connected because a duplicate name exists on the network. If joining a domain, go to System in Control Panel to change the computer name and try again. If joining a workgroup, choose another workgroup name.' This error was suppressed.
    I turned every stone I could think of on the problematic machines but cannot find out a reason. I disabled anti-virus/firewall, I logged in as domain admin and I tried both user & computer GPOs. No luck. Notice that I can successfully connect manually
    to the Printer shares (the ones used to distribute the drivers).
    Domain is Win2008 R2. The printers "live" on a Win2012 machine and the drivers come from there. I am using Group Policy Preferences. Ideas are welcome.
    Thanks
    Christos

    Hello and thanks for the suggestion. Yes the drivers are okay, all clients (working and not) run the same Win 7 x64. Let me summarize the situation:
    - The GPO runs because the printer IP ports are created
    - The Printer Shares (that distribute the drivers) are accessible because the printer is installed without any problems/warnings if I manually double click on them (the shares)
    - Security prompts for driver installs are disabled
    I also noticed the following. The error says "The computer '123.123.123.123' preference item in the Group Policy object ... etc" The IP mentioned in that error is NOT the computer/client running the GPO but the IP address of the target printer.
    So the client thinks the Printer already exists or the IP is already taken (or something of that sort).
    Here is the GPresult XML for this
    <GPO>
      <Name>Printers - deploy - user</Name>
      <Path>
        <Identifier xmlns="http://www.microsoft.com/GroupPolicy/Types">{5C21
    1010-F5E0-445C-99F3-0B8A9D9CB680}</Identifier>
        <Domain xmlns="http://www.microsoft.com/GroupPolicy/Types">mydomain.com</Domain>
      </Path>
      <VersionDirectory>34</VersionDirectory>
      <VersionSysvol>34</VersionSysvol>
      <Enabled>true</Enabled>
      <FilterId>MSFT_SomFilter.ID="{6272C5C1-9C4E-40B7-BD5A-277ED70B337D}",Domain="mydomain.com"</FilterId>
      <FilterName>Any Win Desktop OS</FilterName>
      <IsValid>true</IsValid>
      <FilterAllowed>true</FilterAllowed>
      <AccessDenied>false</AccessDenied>
      <Link>
        <SOMPath>mydomain.com/Configuration/Sites/MainOffice</SOMPath>
        <SOMOrder>3</SOMOrder>
        <AppliedOrder>1</AppliedOrder>
        <LinkOrder>4</LinkOrder>
        <Enabled>true</Enabled>
        <NoOverride>false</NoOverride>
      </Link>
    </GPO>

  • Game center wont recognise my apple ID but works with other accounts? On mountain Lion?

    Game center wont recognise my apple ID but works with other accounts? On mountain Lion? i tryed to test out the new game center on mountain lion and it will not let me log in no message pops up or forgot your password but when i try other accounts it works fine help please i really want to use game center for mountian lion!

    Game center wont recognise my apple ID but works with other accounts? On mountain Lion? i tryed to test out the new game center on mountain lion and it will not let me log in no message pops up or forgot your password but when i try other accounts it works fine help please i really want to use game center for mountian lion!

  • Follwing query fails on one database, but the same works on other Database

    Hi,
    The following SQL fails on one database with ORA-01722 but the same works on other database.
    SQL> SELECT i.version, d.name, i.instance_name, i.host_name
    FROM v$instance i, v$database d, v$parameter p 2
    3 WHERE p.name = 'instance_number'
    4 AND DECODE(p.value, 0, 1, p.value) = i.instance_number;
    AND DECODE(p.value, 0, 1, p.value) = i.instance_number
    ERROR at line 4:
    ORA-01722: invalid number
    both databases are at same version (10.2.0.1) both are on same machine.
    Initailly I suspected NLS settings, I am surprised to see NLS settings are also same on both the databases.
    Any thoughts why is it happening

    Thanks for the reply
    Yes, i know that i am comparing varchar against number.
    bu there is no way that the database where the query is working has correct types on both sides as the tables are standard oracle dictionary tables.
    Yes, i tried this earlier, it works
    AND DECODE(p.value, '0', '1', p.value) = to_char(i.instance_number)
    it is very weired to see that error, i feel it something else that causing the trouble.

  • AVI import fails for older files but works in iMovie

    I have two sets of AVI files, one from early 2000 and newer post 2008.
    Both groups of files import fine into iMovie 11.
    however, only the newer group imports into FCP X.
    I can convert the older files to MOV using QT, but this won't work well for many files.
    Seems if iMovie can read, so should FCP X.

    I have had a similar problem, where maye 8 out of 10 AVI format moves will download into iPhoto, but the rest simply never get there. I did get 107 out of 109 files OK but have seen worse. I can tell you about which camera it is, how I connect and so on, but first, this:
    A small sidebar in the Bugs & Fixes column of the April, 2007 Macworld magazine (see page 89) mentions that: "the likely cause is a problematic third-party QuickTime Plug-in." and advises the reader to check for and remove plug-ins not installed by OSX.
    I took the same camera and imported all 109 pics from my camera on a separate account of the same machine (20" i-mac but I don't think this is relevant) and got all 109 f 109 files just fine.
    So, I think "problematic third party QT plug-ins may be a good call. Need to investigate this some more, but its a flaky problem and Macs are supposed to "just plain work".

  • Remote not working on dvr but works on other boxes

    I have a Dvr box in the back of the house, It was working fine today earlier. I went back in the room and poof the remote dosent work on the box. It still works the tv. So I took it out to the other boxes in the house and it works fine on the other boxes.So I took both remotes from the other boxes and tried to use them on my dvr box. Again no response. the remote lights up when I press the button. Soooooo, I had recently switched the dvr box out for a new one. I have not sent it back yet so I have 2 working boxes. The issue I had last week was not box related so both boxes work fine. I tried swapping out the current box for the old box. Same thing,the remote will not work on it.Other remotes will not work on it yet this remote to the dvr box works every other box in the house. What happened? Did I lock the box somehow? or what can I do? The remote is working , just nt on the box in my room.Could it have to to with the signal being sent ot the box? I dont know its a mystery.

    jmich619 wrote:
    I took the box from the living room, both box and remote were working fine. Mov ed it to my room and now the remote will not operate the box, it wil manually operate, but no remotes are working boxes in this one room, how does that happen
    My guess would be IR interference from the TV.
    Trying moving the STB away from the TV as far as you can, off the the side. Or if the STB is below the TV, try putting some kind of shield between the bottom of the TV and the STB. The objective here is to try to shield the IR sensor in the STB from any IR emitted from the TV.
    IR interference from the TV is a known problem, there are lots of threads here on the Forums about this. Frequently this will occur if the TV is set to a very vivid video setting. But then again this issue frequently disappears after the TV has been on for some minutes.
    Another possibility is IR interference from some other device in close proximity to the STB. So what other electronic devices are nearby?
    Just a guess, but try moving or shielding the STB and see if there is a difference.
    Justin
    FiOS TV: Extreme HD, Internet: 50/25, Digital Voice
    VMS Enhanced Service: 1 server, 2 clients
    Keller, TX 76248 (VHO 1)

  • Sound has stopped for firefox but works on other browsers! Why?

    I no longer have sound with the Firefox browser. Sound works for other browsers (Chrome, Safari, I.E.) but not for FF. I looked in options, plug ins, etc. I have done everything I could to get the sound to work again to no avail. This all started after the latest update for FF. Please help>

    Hi Skytyler13,
    There are a few different things that might be causing your issue. Have you looked at the Knowledge Base article [[No sound in Firefox]]? It has a lot of good information that might help you.
    Hopefully this helps!

  • Airport issue on admin account but works on other accounts

    I have a Macbook Pro unibody and when I wake from sleep it doesnt find airport network. I have a Time Capsule with latest firmware.
    PLEASE NOTE - this only happens on my admin account but all other accounts on the MBP it finds it perfect upon waking. I am at a lost on what to do since I have moved the service to the top, deleted preference and removed the airport from network and added it back. Please give me help.

    Here are 3 fixes that have worked for others.
    1. Adding a new location has worked for some.
    Go System Preferences > Network > Location.
    Edit location (whatever name you want).
    Click + and then click done.
    2. And, here is another possibility that has worked for others.
    Go Finder > Your HD > Library > Preferences > SystemConfiguration.
    Move the SystemConfiguration folder to your Desktop.
    Restart.
    3. Variation on a theme.
    Go Finder > Your HD > Library > Preferences > SystemConfiguration.
    Move the SystemConfiguration folder to your Desktop.
    Go System Preferences > Network > Delete all locations, and use Automatic.
    Restart.
    You may have to reconnect to your wireless network if applicable. And, you may need to go System Preferences > Sharing and re-enter your computer's name. Check what name is given in sharing before following my instructions. If problems develop, then your can move the original folder back where it started—overwriting any folder recreated.
    8,955

  • Ipod won't stay connected to my pc, but works on others

    So, I've looked everywhere online to try and solve this issue, and I'm wondering if it is a software compat issue.
    I just got an ipod touch 4g from my buddy, works fine, but will not stay connected to my pc, works great on my fiance's dell, but seems my pc won't play with it, it just recconects instantly after about 6-7 minutes it will start charging, but that's all it will do, won't be mounted, won't even exist on the pc, is there something I can try to fix this?
    my Pc, is using a 2ghz phenom x4, nvidia 590 SLI chipset on an asus m2n-SLI.

    iTunes would open, and it would say error 9, or error 1611, I do apologize for missing that bit, looking up the error, it seems usb related, but all my other USB devices and mp3s work fine on my USB hubs, no matter which I use for the ipod, it does it.
    Edit: forgot to mention that it ONLY saw it in recovery mode, and everytime I would try to restore it would give those same errors, had to restore it on my fiances PC this morning.

  • Charger doesn't charge my battery but works on other Macs? Any help?

    So my charger doesn't charge my battery but works on my friends mac. Her charger also doesn't charge my battery. Any ideas? Thanks..

    Go to the Apple in the upper left corner and select About This Mac, then click on More Info (and then System Report if you are running 10.7 Lion or 10.8 Mountain Lion), then select Power from the left hand column of the System Profiler. Copy and paste the Battery Information from the top of the page back here.

  • Select query hangs on Oracle 9i but works fine in Oracle 8i

    Hi Guys,
    For a recap of what happened:
    Migrated from Oracle 8i to 9i for a customer, all queries and statements are working fine, except for this particular query. If i run the same query on 8i it works like a charm.
    In 9i, if i remove even one field from the query, it works else it just hangs.
    Any idea, any one???
    **Added 2:09PM: When i removed some ltrim and rtrim that i believe not necessary, the query works fine, is there any field length limitation in Oracle 9i???
    Below is the query:
    set pagesize 100;
    set linesize 1024;
    set heading off;
    set echo off;
    spool scb_xfer_hdr_npsx;
    select ltrim(rtrim(to_char(hdr_srl_no,'99'))) || ';' ||
    'P' || ';' || rtrim(ltrim(payment_type))|| ';'|| ';' ||
    ltrim(rtrim(our_ref_no))|| ';'|| 'MY;KUL;' ||
         rtrim(ltrim(debit_account_no))||';'||
    rtrim(ltrim(to_char(scb_batch_date,'YYYY/MM/DD'))) || ';'|| ';' ||
    rtrim(ltrim(payee_name_1))|| ';'|| ';' ||
    rtrim(ltrim(address_1))|| ';'||
    rtrim(ltrim(address_2))|| ';'||
    rtrim(ltrim(address_3))|| ';'|| ';' ||
    rtrim(ltrim(payee_name_11))|| ';' ||
    rtrim(ltrim(address_11))|| ';'||
    rtrim(ltrim(address_21))|| ';'||
    rtrim(ltrim(address_31))|| ';'|| ';' ||
         rtrim(ltrim(payee_bank_code)) || ';' || ';' ||
         rtrim(ltrim(payee_account_no)) || ';' ||
         rtrim(ltrim(our_ref_no2)) || ';' || ';' ||
         rtrim(ltrim(our_ref_no2)) || ';' || ';' || ';' || ';' ||
    rtrim(ltrim(payment_currency))|| ';'||
    rtrim(ltrim(to_char(payment_amount,'9999999999.99')))|| ';'||
         'C;P;;' || rtrim(ltrim(payee_bank_name))|| ';' ||
         'KL;;' ||
         rtrim(ltrim(delivery_method)) || ';' ||
         rtrim(ltrim(delivery_by)) || ';' ||
         rtrim(ltrim(counter_pickup_location))
    from scb_xfer_hdr_npsx
    order by hdr_srl_no;
    select distinct 'T;' || ltrim(rtrim(to_char(total_payments))) || ';' ||
         ltrim(rtrim(to_char(total_pay_amount,'9999999999.99')))
    from scb_xfer_hdr_npsx;
    spool off;
    spool scb_xfer_dtl_npsx;
    select ltrim(rtrim(to_char(srl_no,'99'))) || ';' || 'I' || ';' ||
         ltrim(rtrim(doc_no)) || ';' || ltrim(rtrim(to_char(doc_date,'yyyy/mm/dd'))) || ';' ||
         ltrim(rtrim(doc_description)) || ';' ||
         ltrim(rtrim(to_char(doc_amount,'9999999999.99')))
    from scb_xfer_dtl_npsx
    order by srl_no;
    spool off;
    set echo on;
    exit;
    Message was edited by:
    Logesh

    Hi,
    are you still on a 32bit kernel on AIX?
    How are the Form4.5 connected, are they on the same box, or are they using the forms GUI?
    What about the statistics, how do you collect them? Is the database set to the COST based optimizer?
    Do you use dbms_utility.analyze_schema, or this:
    exec dbms_stats.gather_schema_stats( -
    ownname => '$OWNER', -
    estimate_percent => 10, -
    granularity => 'ALL', -
    method_opt => 'FOR ALL COLUMNS SIZE 75', -
    degree => NULL , -
    options => 'GATHER $GATH', -
    cascade => TRUE -
    What does it mean the SQL hangs? Can you cancel the query? Do you have to kill the session? Do you use any diagnostic tools like TOAD to trace the session, see what it is doing? Usually if this is a performance/tuning issue, you will see the session is not dead, but you will see advancing reads.
    Regards,
    Richard.

  • Replication from 5.2 to 11g failing in Test Env, but works in my Sandbox

    I am receiving this error over & over again in error log:
    [09/Feb/2012:08:39:59 -0600] - INFORMATION - NSMMReplicationPlugin - conn=-1 op=-1 msgId=-1 - Failed to connect to replication consumer 11gserver.example.com:1636
    [09/Feb/2012:08:39:59 -0600] - ERROR<8318> - Repl. Transport - conn=-1 op=-1 msgId=-1 - [S] Bind failed with response: Failed to bind to remote (900).
    I've googled & searched here and try the couple of suggestions that I found, but still can't get this to work.
    I have gotten this setup once & it is working fine in my sandbox, but now that I am moving into our test environment it isn't working, and I can't find where I've gone wrong.
    I have installed a new instance of 11g, on this instance I have:
    - Imported Root CA for the 11g server (rootCA1)
    - imported Root CA for the 5.2 server (rootCA2)
    - Imported SSL cert for this server
    - I can perform an LDAP search over ssl without any issues.
    - Enabled replication via command line & set password
    On the existing 5.2 server I have:
    - It already had it's own cert & the CA for that Cert (rootCA2) imported
    - I can perform an LDAP search over ssl without any issues.
    - Imported the CA used by the 11g server (rootCA1)
    - Enabled replication through the admin console, and entered the replication password set on 11g
    - attempted to initialize the remote replica from the 5.2 console, this is when the error message starts.
    On both servers I have verified that the old & new root CA show up in certutil, and that both servers trust both rooth CA's with "CT,," permissions.
    I've compared everything I can think of between my sandbox environment that works & my test environment that doesn't, and I can't see any differences.
    Any thoughts? Anything I can check that I may have overlooked?
    Thanks
    Brian
    Edited by: BrianS on Feb 9, 2012 6:59 AM

    I just had a thought about this. I tried replicating data from my Test 5.2 server that is failing, to my sandbox 11g server that is successfully receiving replication from my sandbox 5.2 server.
    This fails with the same error message, so I believe my config error is on 5.2, but I still have no idea where.

  • Crystal Reports export and print fails with SSL / https but works with http

    Windows 2008 Server, 32-bit (IIS7)
    ASP.NET 2.0
    Ajax 1.0
    Crystal Reports version 10.5.3700.0
    http:  printing works, export works
    https:  printing not working, only export to MS Excel and MS Word work.
    I am able to generate reports using both http and https, and the toolbar icons are all showing.  However, I am unable to print or export properly with SSL.
    Printing prompts me with a select printer window, and then a window 'Retrieving Page 1' follow by two messages from Crystal Print Control both stating:
    A communication error occured.  Printing will be stopped.
    Exporting generates various errors depending on which export method is being selected (however Excel and Word work over https).
    I've found the same problem on this site and other forums, but never a resolution to get exporting and printing to work with SSL.  Will someone please provide me assistance or possibly relay what settings they're using if they have Crystal Reports export or printing working over SSL in IIS7?  Everything works fine when I change the address from https to http.
    Please let me know if I can help by providing further information.  We've gone through a great deal of possible solutions with code and I'm currently looking in to IIS settings again.
    Thank you.

    Thanks Ludek. I got it by searching KB number.
    Unfortunately, it didn’t fix my problem even my IE (IE8 and IE 9) has correct setting.  I double check my version. PrintControl.CAB is version 10.2.0.1146. we use VS 2005 Crystal report and VB .NET. It works fine on HTTP. But when we use HTTPS (SSL Certificate from go daddy).
    1: Crystal report export
                Export to MS Excel, Word: pop us “File download”, then click “Save”. It says “Internet Explorer cannot download ReportView.aspx from my site. Internet Explorer was not able to open this internet site. the requested site is either unavailable or cannot be found. Please try it again later”
                Export to RPt, Rich text format: It says “Internet Explorer cannot download ReportView.aspx from my site. Internet Explorer was not able to open this internet site. the requested site is either unavailable or cannot be found. Please try it again later”
                Export to PDF : nothing happened.
    2: Print:
                Pop up dialog to select printer, click “Print” “. Shows windows “Crystal Report Viewer” and pop us error message box. Title is “Crystal Print Control”. Message is “An communication error occurred. Printing will be stopped”. Click “OK” and pop up error message box again.
    Please advise.
    Thank you very much!

  • Mac Lion macbook pro, download pdf files fails, no error messages but work in Safari.

    On requesting a download of a pdf file the source supplies this but nothing appears in the Firefox download window. Same pdf appears happily in Safari. My MAC pro with same Firefox progreamme works OK also.

    Disabling a plugin worked for me
    Go to Tools, Add-ons, Plugins tab
    then disable the plugin: Adobe Acrobat NPAPI Plug-in Version 10.1.3

  • Can't Upload Large Files (Upload Fails using Internet Explorer but works with Google Chrome)

    I've been experience an issue uploading large (75MB & greater) PDF files to a SharePoint 2010 document library. Using normal upload procedures using Internet Explorer 7 (our company standard for the time being) the upload fails. No error message is thrown,
    the upload screen goes away and the page refreshes and the document isn't there. I tried upload multiple and it says throws a failed error after a while.
    Using google chrome I made an attempt just to see what it did and the file using the "Add a document" uploaded in seconds. Can't figure out why one browser worked and the other doesn't. We are getting sporadic inquiries with the same issue.
    We have previously setup large file support in the appropriate areas and large files are uploaded to the sites successfully. Any thoughts?

    File size upload has to be configured on the server farm level. Your administrator most likely set
    up the limit to size of files that can be uploaded. This size can be increased and you would then be able to upload your documents.

Maybe you are looking for

  • Oracle Apps Sys Admin -- Disabling a button on a form

    Hi Guys, I want to disable a button on a form in oracle applications. Normally, i disable a button by goin to that MENU, SUBMENU(if there are any) and take the button's sub-function and add it in FUNCTION and MENU Exclusions in the reponsibility defi

  • How to use BO SDK in local java project?

    Hi, I am trying to connect BO system using below mentioned code public void main(String args[]) throws SDKException {      try           System.out.println("main");           /ISessionMgr sessionMgr = CrystalEnterprise.getSessionMgr();/           IEn

  • SDHC Card download

    When downloading photos from sdhc card elements gives an error message file corrupt or not supported file. Only taken photo in Raw format and have not had problems downloading Raw from compactflash Photos download ok into Canon own software. Any sugg

  • How do I get VPN access

    I recently purchased a MacBook and wanted to know how I can get access to VPN? I assumed it was already installed, or do I have to get access from my IT dept? Any help would be appreciated, thanks. Mercedes

  • Osx 10.6.7 Update Causing Python Problems

    Hi, I recently updated my MacBook to 10.6.7 Doing so appears to have caused something strange with my python installation. I am running a python web framework called Django. And this is connecting to an Oracle database using the oracle instant client