Solved

Business Objects universe error

Posted on 2014-01-15
6
704 Views
Last Modified: 2014-01-30
I have 5 identical universes in Business Objects V.4.0. Four of them work, but 1 doesn't. This is a query statement for one that works:

SELECT
  RUSSDW4618.dbo.INVOICE_DETAIL.Invoice_Number,
  sum(RUSSDW4618.dbo.RUS_INVOICE_STANDARD_COST.Cost_Price),
  sum(RUSSDW4618.dbo.RUS_INVOICE_STANDARD_COST.Quantity * RUSSDW4618.dbo.RUS_INVOICE_STANDARD_COST.Cost_Price),
  RUSSDW4618.dbo.PRODUCT.Product_Code_Unpacked
FROM
  RUSSDW4618.dbo.PRODUCT INNER JOIN RUSSDW4618.dbo.INVOICE_DETAIL ON (RUSSDW4618.dbo.INVOICE_DETAIL.Product_Code_Packed=RUSSDW4618.dbo.PRODUCT.Product_Code_Packed and RUSSDW4618.dbo.INVOICE_DETAIL.Invoice_Date >= RUSSDW4618.dbo.PRODUCT.Start_Date and RUSSDW4618.dbo.INVOICE_DETAIL.Invoice_Date < RUSSDW4618.dbo.PRODUCT.End_Date)
   INNER JOIN RUSSDW4618.dbo.RUS_INVOICE_STANDARD_COST ON (RUSSDW4618.dbo.INVOICE_DETAIL.Invoice_Number=RUSSDW4618.dbo.RUS_INVOICE_STANDARD_COST.Invoice_Number  AND  RUSSDW4618.dbo.INVOICE_DETAIL.Invoice_Date=RUSSDW4618.dbo.RUS_INVOICE_STANDARD_COST.Invoice_Date  AND  RUSSDW4618.dbo.INVOICE_DETAIL.Invoice_Number=RUSSDW4618.dbo.RUS_INVOICE_STANDARD_COST.Invoice_Number and RUSSDW4618.dbo.INVOICE_DETAIL.Invoice_Date=RUSSDW4618.dbo.RUS_INVOICE_STANDARD_COST.Invoice_Date and RUSSDW4618.dbo.INVOICE_DETAIL.DbCr_Line_Number=RUSSDW4618.dbo.RUS_INVOICE_STANDARD_COST.DbCr_Line_Number)
GROUP BY
  RUSSDW4618.dbo.INVOICE_DETAIL.Invoice_Number,
  RUSSDW4618.dbo.PRODUCT.Product_Code_Unpacked

This is the statement created in the one that doesn't work:

  SELECT
    PUSSDW4618.dbo.INVOICE_DETAIL.Invoice_Number,
    sum(PUSSDW4618.dbo.PUS_INVOICE_STANDARD_COST.Quantity * PUSSDW4618.dbo.PUS_INVOICE_STANDARD_COST.Cost_Price),
    sum(PUSSDW46184.dbo.PUS_INVOICE_STANDARD_COST.Cost_Price),
    PUSSDW4618.dbo.PRODUCT.Product_Code_Unpacked
  FROM
    PUSSDW4618.dbo.INVOICE_DETAIL
  GROUP BY
    PUSSDW4618.dbo.INVOICE_DETAIL.Invoice_Number


I've checked all the joins, and they're identical in all universes. Can you advise me in what else to check?
0
Comment
Question by:ked2000
  • 3
  • 3
6 Comments
 
LVL 100

Expert Comment

by:mlmcc
ID: 39785455
What error do you get?

mlmcc
0
 

Author Comment

by:ked2000
ID: 39786214
Sorry, this is the error message:

Error:
[] <com.businessobjects.dsl.commons.exception.NestedException: Failed to execute: SELECT
  PUSSDW4618.dbo.INVOICE_DETAIL.Invoice_Number,
  sum(PUSSDW4618.dbo.PUS_INVOICE_STANDARD_COST.Quantity * PUSSDW4618.dbo.PUS_INVOICE_STANDARD_COST.Cost_Price),
  sum(PUSSDW46184.dbo.PUS_INVOICE_STANDARD_COST.Cost_Price),
  PUSSDW4618.dbo.PRODUCT.Product_Code_Unpacked
FROM
  PUSSDW4618.dbo.INVOICE_DETAIL
GROUP BY
  PUSSDW4618.dbo.INVOICE_DETAIL.Invoice_Number
>

Cause of Error
[Microsoft][SQL Native Client][SQL Server]Statement(s) could not be prepared.
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 39786471
Can you look at the SQL in the report when you edit the query?

DId you install the services packs for B) 4.0?

mlmcc
0
Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

 

Author Comment

by:ked2000
ID: 39786553
Yes, the service packs are installed. I can't get as far as a report. When I create the query I receive an error message. If I paste the query generated by BO into SQL Server, I get an error. Only one table is referenced in the BO query, when I'm using fields from 3 different tables.
0
 
LVL 100

Accepted Solution

by:
mlmcc earned 500 total points
ID: 39786710
Have you tried doing an integrity check in the universe?

mlmcc
0
 

Author Closing Comment

by:ked2000
ID: 39821733
Sorry for the delay in getting back here. I received a new laptop at work and was unable to log in to the server for a couple of weeks. The data foundation was fine, but the business layer was somehow disconnected from the database. I had to bring each element in again.
0

Featured Post

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This guide will walk you through the essential considerations and tech stack for building scalable websites. Know how to grow your business the smart way!
All of the resources available today make learning a new digital media easier than ever-- if you know where to begin. This is a clear, simple guide to a few of the basic digital art mediums and how to begin learning them on your own.
This video demonstrates how to use each tool, their shortcuts, where and when to use them, and how to use the keyboard to improve workflow.
Using Adobe Premiere Pro, the viewer will learn how to set up a sequence with proper settings, importing pictures, rendering, and exporting the finished product.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question