Can Execute Report But Fails in Query Builder

I'm running into an odd issue...
I've inherited a report that was built using Visual Studio. It's going against an Analysis Services cube and the query is in MDX.
For some reason, when I view the query in Query Builder and attempt to execute the query, it throws an error. I then cancel out of Query Builder and cancel any changes. Now if I actually run the report, it runs just fine. Users have verified that the results
are correct.
I've never seen this before! I've attached the query and the error message:
WITH
SET [Selected Discipline] AS STRTOSET(@Disciplines, CONSTRAINED)
SET [Selected Department] AS STRTOSET(@Departments, CONSTRAINED)
SET [Selected Departments] AS IIF(@Disciplines = @Departments, 
  FILTER(
    DESCENDANTS([Selected Discipline], [Employee].[DISC - DEPT - EMP].[Department], AFTER), 
    NOT INSTR([Employee].[DISC - DEPT - EMP].CurrentMember.UNIQUE_NAME, "Freelance")),
  DESCENDANTS([Selected Department], [Employee].[DISC - DEPT - EMP].[Department], AFTER))
SET [TTM] AS { LastPeriods(12, StrToMember(@SelectedMonth, CONSTRAINED)) }
SELECT 
  [Measures].[Employee Hours], 
  [Measures].[Employee Hours %] 
} ON COLUMNS, 
NON EMPTY CROSSJOIN(
[Selected Departments],
[Employee].[Employee Bill Rate].[Employee Bill Rate].ALLMEMBERS,
[Employee].[Employee Level].[Employee Level].ALLMEMBERS,
[TTM]) 
DIMENSION PROPERTIES MEMBER_CAPTION, MEMBER_UNIQUE_NAME ON ROWS 
FROM [OLSON BI]
WHERE (
[Employee Hours Time Category].[Time Category].&[Client Facing],
[Employee Hours Time Category].[Utilization Category].&[PRODUCTION])
CELL PROPERTIES VALUE, BACK_COLOR, FORE_COLOR, FORMATTED_VALUE, FORMAT_STRING, FONT_NAME, FONT_SIZE, FONT_FLAGS
The error is:
A. M. Robinson

Hello,
Glad to heard that the issue had been solved and thanks for your sharing. It will be very beneficial for other community members who have similar questions.
Regards,
Katherine Xiong
Katherine Xiong
TechNet Community Support

Similar Messages

  • Financial Reporting Studio under Citrix-Can Save Report but not Revisions

    Hyperion BI+ 9.2.0.2
    Financial Reporting Studio does not run on desktop using Windows Vista so trying Citrix (Presentation Server 4.0 running under Windows 2003 SR2).
    I can edit an existing report or create and save a new report but CANNOT resave any revision using the same reportname in same folder. I CAN save the revisoin under a different name in the same folder or under the same name but in a different folder.
    When I try to save the revision to same reportname in the same location, it correctly indicates:
    the Report "reportname" already exists. Do you want to overwrite the existing report?.
    When you click YES, you get an error message:
    "Expecting a transferable end, but received -4352: 1570558, expected -4113, <-4098>, 6134 -4098"
    some of the numbers listed change with additional attempts.
    Anyone else with any similar experience.
    Thanks
    Dave

    Hi
    I can't remember exactly as it was a while ago but we had a similar issue at a client with version 9.2.0.2 with saving changes to existing report definitions and it was a bug with FR rather than an issue with how the client was hosted. We applied a patch but I can't remeber what exact version it was, try contacting Oracle or looking at the Read-mes for patch releases to see if it turns anything up.
    Hope this helps
    Stuart

  • Desname parameter works fine in Report builder but fails in Forms builder

    Hi,
    I need some help with my current task. Here is my problem.
    I am working on Oracle 10g. My reports and Forms builder version is 10.1.2.3.0.
    My objective is to use Forms builder to call a report which will direct the output directly to the printer without preview.
    First , in report builder , I use the Parameter Form builder and set Report parameter DESTYPE = PRINTER and the DESNAME automatically changes to PCL6 ( which is the network printer name I am using).
    When I run the report , the output is directed to the printer and it works just fine.
    But in Forms builder , when I call the same report, set the DESTYPE as Printer and DESNAME as 'PCL6' , it gives an error Invalid printer name 'PCL6' specified by parameter DESNAME.
    I tried searching in this forum, it says the error is due to an invalid printer name specified in the DESNAME. But if my printer name is invalid, I wonder how the same printer name works well in Report builder?
    My coding in Forms as below :
    SET_REPORT_OBJECT_PROPERTY( repid, REPORT_DESTYPE,PRINTER);
    SET_REPORT_OBJECT_PROPERTY( repid, REPORT_DESNAME,'PCL6');
    Appreciate if anyone can help. Thanks
    Regards
    Shiva

    Hi Puppethead,
    I have tried with your suggestions.
    the following condition -- did not work
    ( (mgr_name = :manager name)
    OR (mgr_name LIKE DECODE(:manager name, 'ALL', '%', NULL)))
    but for the other condition ---
    ( (mgr_name = :manager name)
    OR (mgr_name LIKE DECODE(nvl(:manager name, 'ALL'), 'ALL', '%', NULL)))
    is wrong because, :manager name cud be null, when it is null, it takes 'ALL' i.e. '%' which shud not be the case.
    if the user enters null, it has to display records with null only but with the above condition it takes '%'
    The main issue which i dont understand is, the report works fine for the first time. for the second time, the report takes null values . why is it taking null values for the second time.
    Thanks

  • HT1933 I want to report problem with my purchased, but when i click the "report problem" They replied like this.. "This feature is not currently available in your country or region. Try again later." So how can i report my failed purchased that already bi

    Hai, my name is Alex
    Last week i purchased a money game, it's already billed in my Credit card Account, but i dont receive Any money game, i already contact the game otority. They Said just Ask for refund, because They dont receive money from my Credit card, how can i Ask for refund ? Directly to my bank ? Or i need email or something from Apple ?

    Click Contact Us at the btoom of this page, then click COntact itunes support

  • I want to use a parameter againts "IN" operator in the report, but failed!

    Hi all,
    i had a report query parameter like this;
    " where customers IN :u_customer_list "
    when i assign single value to :u_customer_list, it runs report perfectly, but whenever i give more than one value to same variable, the report previewer comes out without any data, ( a blank report)
    how can i successfully use a list with "IN" operator

    Thanks Mark,
    I had already tried what you suggest like where customers in (:u_customer_list),
    :u_customer_list is character(500) report parameter,
    1) whenever i pass list of number without single quotes seperated with comma, it runs blank,
    2) whenever i pass list of number enclosed in single quotes and seperated with comma, it runs blank,
    3) it only returns report with data when i pass only a single value without single quotes, its work
    plz guide, is there any possibility to use a record variable instead of :u_customer_list, if possible then how, give me hints,
    if i store the list in a temporary table in database and run a subquery to retreive values , it works fully and correctly but it is not ideal and not easy to handle fully
    waiting

  • SSIS Package compiled successful, in SQL Server Integration Service package executed sucessful, But fail to run in MS SQL Job Scheduler

    Hi Everyone,
    I having a problem to transfer data from MS SQL 2005 to IBMAS400. Previously my SSIS was running perfectly but there is some changes I need to be done in order for the system to work well. Considers my changes are minimal & just for upgrades (but I did
    include DELETE statements to truncate AS400 table before I insert fresh data from MS SQL table to the same AS400 table), so I compile my SSIS package & it run successfully & I passed it into MS SQL Integrated Service as 1 of the packages & manually
    executed the package & the result is the same, that mean it was successful again but when I try to run it in a MS SQL Job Scheduler, the job failed with these message shown below as extracted from the job View history. 
    Date today
    Log Job History (MSSQLToAS400)
    Step ID 1
    Server MSSQLServer
    Job Name MSSQLToAS400
    Step Name pumptoAS400
    Duration 00:00:36
    Sql Severity 0
    Sql Message ID 0
    Operator Emailed
    Operator Net sent
    Operator Paged
    Retries Attempted 0
    Message
    Executed as user: MSSQLServer\SYSTEM. ... 9.00.4035.00 for 32-bit  Copyright (C) Microsoft Corp 1984-2005. All rights reserved.    
    Started:  today time  
    Error: on today time     
    Code: 0xC0202009     Source: SSISMSSQLToAS400 Connection manager "SourceToDestinationOLEDB"     
    Description: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. 
    Error code: 0x80004005.  An OLE DB record is available.  
    Source: "IBMDA400 Session"  
    Hresult: 0x80004005  
    Description: "CWBSY0002 - Password for user AS400ADMIN on system AS400SYSTEM is not correct ".  End Error  
    Error: today     
    Code: 0xC020801C     
    Source: Data Flow Task OLE DB Destination [5160]     
    Description: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER.  The AcquireConnection method call to the connection manager "DestinationClearData" failed with error code 0xC0202009.  There may be error messages posted before
    this with more information on why the AcquireConnection method ca...  The package execution fa...  The step failed.
    So I hope somebody can shed some hints or tips for me to overcome time problem of mine. Thanks for your help in advance. As I had scoured thoroughout MSDN forums & found none solution for my problem yet. 
    PS: In the SQL Integrated Services when I deployed the package I set the security of the packages to Rely on server... 
    Hope this will help.

    Hi Ironmaidenroxz,
    From the message “Executed as user: MSSQLServer\SYSTEM”, we can see that the SQL Server Agent job ran under the Local System account. However, a Local System account doesn’t have the network rights natively, therefore, the job failed to communicate with
    the remote IBMAS400 server.
    To address this issue, you need to create a proxy account for SQL Server Agent to run the job. When creating the credentials for the proxy account, you can use the Windows domain account under which you executed the package manually.
    References:
    How to: Create a Credential
    How to: Create a Proxy
    Regards,
    Mike Yin
    TechNet Community Support

  • WSDL Introspection works in Flex Builder 3, but fails in Flash Builder 4.5

    Hi - I'm getting an error trying to introspect this service in Flash Builder 4.5:
    http://85.214.51.185/mercat/IgrWebService.asmx?WSDL
    Flex Builder 3 handles it just fine though. Both IDEs are running in OS X.
    Is this an issue with Flash Builder, or with the WSDL format? Is there anything I can do to fix it?
    Thanks.

    Hi - I'm getting an error trying to introspect this service in Flash Builder 4.5:
    http://85.214.51.185/mercat/IgrWebService.asmx?WSDL
    Flex Builder 3 handles it just fine though. Both IDEs are running in OS X.
    Is this an issue with Flash Builder, or with the WSDL format? Is there anything I can do to fix it?
    Thanks.

  • Some users can't see attributes in the Query Builder

    Hi.
    I have problem. Some users can't see some of attributes of info-object in the Query Designer. Where is the problem?

    I think you would need to give more details on the problem,
    as <b>some</b> users are not able to see <b>some</b> attributes.
    Do they all share the same profile, what is the distinguishing thing among the some users who can see the attributes and the ones who cannot see the attributes.
    Need to drill down further I guess.
    Cheers
    Anurag

  • SSIS package runs from BIDS and by Executing package, but failing with Job

    I have SQL Serve 2012 SSIS. I have problems to run from SQL Server Agent Job.
    Steps runs SSIS package without configuration file. Package Run64BitRuntime is False in BIDS.
    Package is runned by SQL Server Agent Service Account.
    Server does not have Office 2010/2013 installed. Should it be installed?
    ERROR1:
    Description: The requested OLE DB provider Microsoft.ACE.OLEDB.12.0 is not registered.
    If the 64-bit driver is not installed<c/> run the package in 32-bit mode.
    ERROR2: (here SSIS package is trying to import XML source, but cannot file file)
    Description: An error occurred with the following error message: "Could not find file 'D:\Integration\Metadata\'.". 
    Kenny_I

    Hi Kenny,
    It seems like you are using Excel as source file right? If yes, then please follow below steps:
    Edit the job step and Check the option: Use 32 bit run time. Below is the screenshot for the same.
    Please let me know for any questions.
    Thanks, Madhu

  • Query builder in Reports

    In the reports when I use query builder available in the reports for the same user/owner it works fine. If I will select/use any table from other schema it creates query for it but when I again try to go to query builder it shows me blank. This behaviour is same in reports 3 and 6i. Is this a bug or there is some configuration issue?
    e.g.
    Currently I am working in the scott login and opened the query builder to build the query. I have select table EMP and the its fields I have to select. Now the DEPT table is in another schema and scott has select privs of this table. I have select the DEPT table from that schema and pressed OK and the query is now in the query window but now if I want to modify the query and want to open query builder again and it is not possible at my machine. So I have to modify the query in the query window manually.
    I hope the above detail will help u in understanding the exact situation so if still not cleared then let me know.

    Hi Sikandar,
    Make sure you are on the latest patch (patch 10), and if it still reproduces you should contact Oracle Support.
    regards,
    Stewart

  • Only Query Builder can be installed in PC?

    I'd like to know if only Query Builder from Form or Report Developer can be installed in PC. so I can continue to use stand alone Query Builder 6.0.7.
    . and if that's possible , is there any place that I can download that? or it may well be possible to install just that component?
    Regards.
    Jung Kyoo Lee.

    You can't download it separately, it part of the development environment. I think you can install it alone off of the 6i CDs though.

  • How to add a new field in Query Builder or Report

    Hi,
    I am writing a report using Oracle 6i query builder and report.
    example:
    QTY_1 QTY_2 QTY_3
    QTY_1 and QTY_2 are table fields and QTY_3 Is not. I need to show the value of (QTY_2-QTY_1) in QTY_3.
    I need to create a field QTY_3 which is not in the database table. How do I do that?
    Jun

    Hi,
    Try using formula to return the qty_1 - qty2.
    or
    select qty_1, qty_2, (qty_1 - qty_2) qty_3
    from table;
    regards,
    CB

  • Query Builder - sort order causing ORA-00979 error

    Hello,
    I'm having an issue with the "sort order" clause in the query builder tool when using a function on the same column.
    I've build a simple query in the gui and the following statement is displayed in the SQL Window
    select     "DEMO_ORDER_ITEMS"."ORDER_ID" as "ORDER_ID",
         sum(DEMO_ORDER_ITEMS.QUANTITY) as "QUANTITY"
    from     "DEMO_ORDER_ITEMS" "DEMO_ORDER_ITEMS"
    group by DEMO_ORDER_ITEMS.ORDER_ID
    and if I add a sort order of "1" on the quantity field, the following query is changed to
    select     "DEMO_ORDER_ITEMS"."ORDER_ID" as "ORDER_ID",
         sum(DEMO_ORDER_ITEMS.QUANTITY) as "QUANTITY"
    from     "DEMO_ORDER_ITEMS" "DEMO_ORDER_ITEMS"
    group by DEMO_ORDER_ITEMS.ORDER_ID
    order by DEMO_ORDER_ITEMS.QUANTITY DESC
    When running this query I get an error
    failed to parse SQL query:
    ORA-00979: not a GROUP BY expression
    It is quite obvious what is wrong with the query but I don't know how to get the query builder tool to generate the correct statement. The order by clause should be order by sum(DEMO_ORDER_ITEMS.QUANTITY) DESC.
    I've tried to do some searching and haven't found much documentation on this issue. Any assistance is appreciated.
    Thanks,
    Tony

    While this statement is generally certainly true and should also be remembered, it is not really helpful for the specific case.
    I think the behaviour described is a bug. However this might be one a little difficult to solve. The user unfortunatly can't influence much of the query builder results directly.
    Either put 1 into the order by clause or use the column alias name without table alias name ("QUANTITY" only).
    My personal solution would be NOT TO use any sort criteia in the query builder. This makes sense in so far as the generated SQL is often basis for some report. If that is an interactive report you won't add a sort order anyway. This is a layout thing and layout will be handled by the end user itself. he can choose whatever sorting he wants.
    Edited by: Sven W. on Jul 22, 2009 11:43 AM

  • Query Builder in 10g Developer Suite

    I am accustomed to using previous versions of Oracle developer (2000,6 i...), and there was "Query Builder", which is very useful for us, especially when we do statistics and complex Reports.
    Now the Staff has chosen 10g Developer Suite that unfortunately there was no "Query Builder". Is it someone can help me find such a tool like it(query Builder) in Oracle 10g.
    I saw an almost similar to Oracle SQL Developer but can not totally replace the "query Builder "I didn't find for example a way to insert a calculated field in the Query of Oracle SQL Developer, it's like SQL PLus, and the same case with Toad.

    hi,
    you can use Oracle application express tool,its a application development tool,but it contain query builder,try youy best.
    regadrs
    apexuser

  • Query builder - OR condition

    Hi,
    I'm new to Publisher and can't seem to fiigure out the best way to do an 'OR' condition in query builder. Any tips? For example if in regular SQL I wanted:
    select * from employee
    where empnbr is not null
    or empnbr > 100
    Basically two conditions on the same column. Can this be done easily in query builder or do I have to have my users work with the raw SQL to get this done? Thanks!

    Using query builder to build the SQL statement is a one-time shot. Once you've created and saved a query, you cannot go back to QB and edit the query, regardless of the change you want to make. The statement can be edited back out in the main design window. Further, you do not have to rely upon the drop down menu items in the clause/filter conditions. You can manually enter/edit the query in the report window if so desired. Not every function is available in the lists anyway. QB is a beginner's crutch (everyone starts out new to SQL, no problem with that) to scripting SQL.
    In your situation, how do you apply more than one condition to a single column? QB does not allow that directly, but what you can do is a self-join on the table, use the employee ID as the relation, and select salary in both tables. The resulting query will be like so:
    select     EMPLOYEES.EMPLOYEE_ID as EMPLOYEE_ID,
         EMPLOYEES.SALARY as SALARY,
         EMPLOYEES_1.EMPLOYEE_ID as EMPLOYEE_ID,
         EMPLOYEES_1.SALARY as SALARY
    from     HR.EMPLOYEES EMPLOYEES_1,
         HR.EMPLOYEES EMPLOYEES
    where EMPLOYEES.EMPLOYEE_ID=EMPLOYEES_1.EMPLOYEE_ID
    and      EMPLOYEES.SALARY is not null
    and     EMPLOYEES_1.SALARY > 1000
    It will be easier (and more performant) to script the first condition, and then add the second inside the report window.

Maybe you are looking for

  • Lost music downloaded on Iphone which had to be restored

    Hi I downloaded a load of music through itunes on my iphone, and hadnt backed up for a couple of months. My phone died and I had to restore it losing loads of music. Is there a way of redownloading it without having to pay out again? Thanks

  • I Just Bought a MacBook Pro, I Own an iMac as well and i cannot seem to get the same applications how do i do that?

    I purchased my MacBook Pro for school. I own my iMac and it has my "Iworks" i purchased it under my apple account, although it is not wanting me to have the program on this computer ? Do i have to purchase the i works again?

  • SAP Information

    Hello everybody, I would like to know about SAP modules. If i want to learn SAP  which module is best, if the person having 9 years of IT experience. How about SAP SD(Sales and Distribution) Functional side is good OR Technical side? if any body have

  • [SOLVED] Download speed is slow while playing certain Steam games

    This is a weird one: When playing Steam games my download speed (everywhere) drops to a fraction of what it should be (roughly 1/10th). My upload speed is unaffected. I don't know how long this has been the case but I think it's fairly recent since w

  • Problems after rebuilding iPhoto library

    After an automatic rebuild of the iPhoto library, iPhoto shows only 950 out of 7000 picture that I originally had in iPhoto. When I click on a picture, iPhoto gives me the blown up of another picture. I have actually been having problems with iPhoto