Solved

Business Objects universe error

Posted on 2014-01-15
6
705 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
Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

 

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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
Skype is a P2P (Peer to Peer) instant messaging and VOIP (Voice over IP) service – as well as a whole lot more.
The viewer will learn how to create multiple layers to apply various filters and how to delete areas from each layer’s filter.
Viewers will learn how to use the Hootsuite Dashboard.

791 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