Unwanted change to queries

We have a view with the following query:
SELECT purord903.ORDERS_ID,
purord903.ORDER_NUMBER,
purord903.COMPANIES_ID_1,
purord903.USERS_ID,
purord903.COMPANIES_ID_2,
purord903.CURRENCIES_ID_1,
purord903.COUNTRIES_ID,
purord903.ADDITIONAL_COSTS,
purord903.CURRENCIES_ID_2,
purord903.PURCHASER_RECEIVED,
purord903.CANCEL_DATE,
purord903.SHIPMENT_DATE,
purord903.EXPECTED_ARRIVAL_DATE,
purord903.SETTLEMENT_TERMS_ID,
purord903.TRANSPORT_TERMS_ID,
purord903.PAYMENT_TERMS_ID,
purord903.DELIVERY_TERMS_ID,
purord903.ORDER_DESCRIPTIONS_ID_1,
purord903.ORDER_DESCRIPTIONS_ID_2,
purord903.ORDER_DESCRIPTIONS_ID_3,
purord903.EQS,
purord903.GSP,
purord903.READY_TO_DISTRIBUTE,
purord903.DISTRIBUTED,
purord903.COMPLETED,
purord903.DELETED,
purord903.RE_SUP,
purord903.CREATED_BY,
purord903.CREATED_DATE,
purord903.CHANGED_BY,
purord903.CHANGED_DATE,
purord903.CAMPAIGN,
purord903.DELIVERY_MONTH,
purord903.DEPARTMENTS_ID,
purord903.COLLECTIONS_ID,
purord903.ROWID FROM PURCHASE.V_PURCHASE_ORDERS purord903
WHERE (purord903.DEPARTMENTS_ID= 55)
But when we do an executequery the query is changed to the following:
SELECT count(1) FROM (***same as above***)
And that results in an error.
Why is the count(1) added to my query?
Best regards
Peter Skriver

Peter:
But when we do an executequery the query is changed to the following:
SELECT count(1) FROM (***same as above***)
And that results in an error.
Why is the count(1) added to my query?SELECT COUNT(1) is for trying to figure out an estimated count of rows (not for actual retrieval of rows--for that we issue another query).
What specific error do you get? Can you post the entire stack trace?
Thanks.
Sung Hi Sung
In the meantime we solved the error, now we are just currious to WHY it added the count function??????????????
Regards
Jeppe Jensen

Similar Messages

  • When using BW Bex query analyzer users cannot change reporting queries ....

    Issue: When using BW Bex query analyzer users cannot change reporting queries. Any attempt to change queries results in errors.
    Error: BEx Query Designer: Run-time error '-2147221499 (80040005) Fatal Error - Terminating
    Impact: Business reporting is currently being negatively impacted because users cannot modify queries, cannot change filters for fiscal period and fiscal year.
    OS / MS Office Suite being used: Vista & Office 2007
    Backend System: BW 2.0B
    Frontend System: Being a large organization, we have a controlled environment wherein all users will have the following applications installed by default:
    1. SAP Client Base 7.10
    2. SAP BW 3.5 Patch 4
    3. SAP BI 7.10 Patch 900
    4. SAP GUI 7.10 Patch 12
    Does anyone has any idea as to why we are getting this error? Is it a Vista issue? Is it a front-end issue?

    Just a thought - did you guys apply any Microsoft security patches before this started happening - we had a similar issue in other SAP application due to MS security update. Raise an OSS with SAP

  • [svn:fx-4.x] 15360: Removing a few unwanted changes to the positioning of drag proxy.

    Revision: 15360
    Revision: 15360
    Author:   [email protected]
    Date:     2010-04-12 23:23:29 -0700 (Mon, 12 Apr 2010)
    Log Message:
    Removing a few unwanted changes to the positioning of drag proxy.
    QE notes:
    Doc notes:
    Bugs: FLEXDMV-2365 ( When layoutDirection is 'rtl', image of the chart item which is being dragged is seen away from mouse pointer)
    Reviewer:
    Tests run: checkintests - PASS
    Is noteworthy for integration:
    Ticket Links:
        http://bugs.adobe.com/jira/browse/FLEXDMV-2365
    Modified Paths:
        flex/sdk/branches/4.x/frameworks/projects/datavisualization/src/mx/charts/chartClasses/Ch artBase.as

    Is letterboxing on in your preferences?
    Yes - that's checked. I've removed it and started a
    new import. It says 19 mins - so I'll follow up when
    done.
    Done. And - still looks like a letterbox
    Am not sure I'm describing it properly.
    Here's a capture of the QT window:
    http://www.chrissearle.org/stuff/QT.tiff
    And here's the iMovie window - two clips - both the same import - one with letterboxing turned on (first clip in clips list) and one turned off (second clip and selected in main part of window)
    http://www.chrissearle.org/stuff/iMovieHD.tiff
    You can see that the aspect ratio from QT and iMovieHD is different
    Mac Mini   Mac OS X (10.4.5)  

  • Will updating from CS6 to CC Indesign cause any unwanted changes to existing CS6 documents?

    Will updating from CS6 to CC Indesign cause any unwanted changes to existing CS6 documents?

    The update itself will not affect exisiting files, but if you open and save them in CCC you will no longer be able to open them in CS6.

  • Reg: How to change Multiple Queries in WebI Report

    Hi all,
    I am woking in Xcelsius Dashboard. I used WebI approach for creating dashboard. I have two customers which one customer has SAP and another customer does not have SAP. so intially I have used Excell as data source. now I want to replace the Excel with BI Queries.Both having same structure.while replacing I faced the following problem.
    I created one WebI report based on Excel as data source that has two Queries(Two universes).I  want to replace excel based universe with BI query based universe.If I change the universe in an one query ,the univese is changed in an another query also.  How can I replace two different universes that based on BI queries with existing universes ?
    How can i resolve the problem?
    Thanks & Regards,
    Hemalatha J

    hema,
    As Thomas mentioned, changing one Data Provider causes the other Data Provider to get changed as well -- this is a problem for trying to change the universe on one tab and the system automatically goes and goofs up the other tab(s) as well.  I'm still on XI R2 and the problem happens so maybe someone with XI 3.1 or higher loaded can confirm that this unwanted occurrence has been cleared up or not.
    Thanks,
    John

  • Changing many queries with a "script"

    A SAP-BI newbee here. I would like to add a characteristic to a cube and have all existing queries filter on this characteristic. Is there a way to create some sort of script to update all queries and automatically insert this filter so that the users don't need to manually touch each query?

    Hi Robert,
    You can find some sample code and tables here:
    Re: Query-InfoObject - Tables
    I think there are some more threads out here that have programs modifying the RSZ* tables.
    Hope this helps...

  • OSB (ALSB 2.6) Unwanted changes to XML messages

    I have a customer who would like to pass the following XML to OSB 2.6 (ALSB):
    </Parameter><Parameter Encoding="plain"><Name>TestParameter2</Name><Value>&lt;firsttag&gt;&lt;secondtag&gt;text_in_secondtag&lt;/secondtag&gt;&lt;/firsttag&gt;</Value></Parameter>
    The problem is that once the XML is consumed by OSB it gets changed to the following:
    </Parameter><Parameter Encoding="plain"><Name>TestParameter2</Name><Value>&lt;firsttag>&lt;secondtag>text_in_secondtag&lt;/secondtag>&lt;/firsttag></Value></Parameter>
    Is there any way to prevent this from happening?

    Sorry, the 2nd XML I pasted here actually got transformed on the forum, I didn't notice that when I first posted this. Let me try to explain in another way.
    the sequence "& l t;" is changed to "<"
    (I added the spaces this time so it did not get changed again.)
    The problem is that the message is a signed message so when it is finally received the signature is different.

  • OS 10.8.3 saves unwanted changes

    Just upgraded OS to 10.8.3 from 10.6.?.  Have a couple of quirks I'm hoping someone can resolve.
    1st one is, when I make any changes to a document in pages or a spreadsheet in numbers, I don't always want to save the changes.  In the past I would simple  close the document by hitting the red circle, but NOW it automatically saves my changes.  I need to control what changes I make and sometimes I don't want to save things.  After a 2nd review of the program, I don't even see a save option. 
    Please tell me how to correct this so when I close a document I don't have to save it.
    2nd issue involved safari.  I use to be able to have a screen open with whatever content I was looking at.  I then could select a website from my desk top and it would open a 2nd window.  Now it doesn't, unless I select a new window from the File before selecting a website off my desk top.  How do I make my safari program open a new window without me having to select one first.

    You can enable a preference in Mountain Lion to ask you to save changes in System Preferences > General.

  • Sybase unwired platform change Download queries

    Hellow Experts!
    I'm currently facing those of that non-sence errors the problem is:
    I do the preview of the MBO in the workspace and The results come perfect.
    Then I Deploy the project and the data that is downloaded is much less than i saw in the preview.
    I'm Using Load Argument to filter data, and I use the sabe input to filter data in the preview.
    So I'm Wondering what could be in the Middle of this cause I'm Not Getting it.
    It there a way of checking/Alter the Download Queries?
    Thanks a Lot!
    Laguerta

    Hi Daniel,
    Double check whether you defined a wrong parameter as primary key in the MBO ? CDB (cache DB) will have only one copy of each primary key value. 
    Ex.
    Data in backend: {Midhun, bangalore, india}, {Midhun, Chennai, India}. And if you are defining name (Midhun) as primary key in MBO only one data will be present in CDB.
    Provide more information on the configurations to help you further.
    Regards,
    Midhun VP

  • Why unwanted change in proxy settings at each startup of firefox blocks internet

    The browser keeps giving blocked proxy server message. Found a proxy entered in connect settings. I click no proxy and it will function again. But as soon as I restart firefox the manual proxy setting is back and internet is blocked

    Calvin W.:
    Your extensions list shows an enabled "Torbutton 1.2.5" extension, so it is possible that that extension is responsible for that change.

  • DAC Change Capture for Siebel OLTP - Customizing Change capture queries

    h4. I want to change the OOTB Change Capture SQL for few of the siebel OLTP base tables , basically want to include some parallel connection details into it. Also the same for Change Capture Sync with Siebel OLTP.
    h4. I think its not possible to achieve this through ChangeCaptureFilter.xml or Custom.SQL from the DAC server backend. I couldnt change the sqls that are available in DAC Console too. SO is there any other places out there to do this customization ?
    h4. Please let me know if anyone have come across such a custom.
    Thanks,
    Madasamy M."

    This is a forum for the OLAP Option of the database. You may have more luck on the "Business Intelligence Applications" forum:
    Business Intelligence Applications

  • Multiclips - unwanted change in clip speed / velocity causing sync problems

    I am multiclipping 6 angles together. However, 1 angle always seems to be out of sync despite checking in points to make sure it should sync. What is really weird is that its audio is in sync but the video is not. Checking all the item properties the only thing I have noticed is that somehow its 'time remap' settings have changed from constant speed to variable speed and scrolling through the clip in this window shows that it starts at 100% but every now and again changes to 50%. The variable speed setting is greyed out so I can't switch it back to constant. I checked the source angle though and that IS set to constant and stays at 100%. Can anyone explain why multiclipping it screws up this setting? And better still how to stop it?!
    Many thanks...

    Subsequently I've noticed that clicking the red 'x' in the time remap box changes the tab from variable to constant speed but still some frames seem to switch from playing 100% velocity to 50%, which seems the logical reason why it's making itself out of sync... Still doesn't help me get it in sync though!!!!

  • Unwanted change of Start-Monitor

    I use 2 Monitors at my Mac Mini (mid 2010)
    - at the MiniDisplay-Port with an adapter to DVI is a 24'' MainMonitor (in the Office)
    - at the HDMI-Port is a TV (in the Livingroom with a 5m Cable)
    Normally the grey Screen with the Apple Logo is at my MainMonitor.
    But after some days (this happens regulary!) the MainMonitor will sleep until the Window with the User Account comes up.
    If I want to change the Start-Up-Disk, I have to go in the Livingroom, turn on the TV and have to use the bluetooth mouse to change the Disk!
    Even the Window with the User Account vanishes sometimes to the TV, which is worse!
    The Screensaver ends only if I use my password, but I can't see nothing. And we are two users!
    Sometimes we don't know if the Mac hangs or if the Signal is at the TV!
    If I put out the HDMI-Cable, the Mini starts as it should.
    When I put in the HDMI-Cable, this bug will appear again!
    Who knows a method to fix my MainMonitor?

    Yesterday I used my old G3 (b/w) System 9!
    I connected the Main Monitor withDVI and the TV with VGA
    In the ControlPanel, I can rearange the Monitors and the Symbol Bar  (as in SnowLeopard) but there was also a button to set the StartUpMonitor!
    Is this really gone today?
    Is there a a "HDMI first" in the Mini-Firmware?

  • Google Contact Sync - Unwanted Changes

    Often I will find that a contact either will suddenly have a different phone number from one day to the next always matching the phone number of another contact.  This happens while using the Gmail Contact Sync built-in to BIS.  For example:
    Day 1
    John Smith with a mobile number of 123-456-7890.
    Jack Jones with a mobile number of 555-555-5555.
    Day 2
    John Smith has a mobile number of 555-555-5555.
    Jack Jones has a mobile number of 555-555-5555.
    This change will happen with no intervention on my part in either Google Contacts or on my phone.  John Smiths' old number will be lost (or worse, moved to a third contact unknown to me).
    The result has been phone calls and text messages meant for one person going to another person entirely and unexpectedly.
    Has anyone else experienced this?  Is there a way to send feedback that this is happening and have it fixed?  Or anything I can do on my end to have this not happen any longer?  It is getting to be quite a problem.
    Thanks,
    Robert

    Hi,
    In this case we can try to reload the software on the BlackBerry smartphone to make sure it is running the latest version and there are no issues with the OS.
    To do this we would need to back up the BlackBerry smartphone. Please open the BlackBerry Desktop Manager and connect your BlackBerry smartphone. Click on the Backup and Restore button and select Back Up. Please note the location where the backup is being saved as we will need to access it later to restore the BlackBerry smartphone.
    Once you have backed up your BlackBerry smartphone please follow the link below to complete a clean reload of the BlackBerry smartphone software.
    Link: http://www.blackberry.com/btsc/KB11320
    Thank you
    -DrP
    Come follow your BlackBerry Technical Team on Twitter! @BlackBerryHelp
    Be sure to click Kudos! for those who have helped you.
    Click Solution? for posts that have solved your issue(s)!

  • LR makes unwanted changes on opening an image

    I'm a Mac user that usually takes RAW+JPG with my Canon SLR. If I view the RAW or JPG file using the Preview app on my Mac the colours usually look pretty good. If I open the same images with DPP (Canon Raw converter) the images look virtually identical to when viewed in Preview. However if I view the same file in LR, momentarily as the file opens the image looks the same as in DPP and Preview, but than LR does something to make the image different, often darker and more saturated. File attached shows a less extreme example - compare preview on the left and LR on the right
    Note my Apple cinema screen is fully calibrated
    Does anyone know what is happening here and how I can stop this from happening? I love LR but this is really annoying me.
    Thanks for your help.

    Does anyone know what is happening here and how I can stop this from happening? I love LR but this is really annoying me.
    The question has been so often that we have an FAQ explaining why http://forums.adobe.com/thread/358016?tstart=0

Maybe you are looking for