Quantcast
Channel: SCN : Unanswered Discussions - Semantic Layer
Viewing all 1291 articles
Browse latest View live

Invalid prompt Error in derived table

$
0
0

hello All,

 

I have the below query which works in SQL server...but the same query in derived table is giving invalid prompt error when instead of hardcoding the value...I gave  @prompt for user input value.

 

 

SELECT

  convert(varchar(6), dateadd(MM,-3, convert(datetime, substring(cast(EMR_REPORTING.dbo.vMH_MEASURE_PRACTICE.RPT_YEAR_MONTH as varchar), 5,2) + '/' + '30' + '/'+ substring(cast(EMR_REPORTING.dbo.vMH_MEASURE_PRACTICE.RPT_YEAR_MONTH as varchar), 1,4))), 112) as prequarter,

  Primed_Status,

  EHR

FROM

  EMR_REPORTING.dbo.vMH_MEASURE_PRACTICE

 

 

  where RPT_YEAR_MONTH = '201406'

Untitled1.png

 

SELECT

  convert(varchar(6), dateadd(MM,-3, convert(datetime, substring(cast(EMR_REPORTING.dbo.vMH_MEASURE_PRACTICE.RPT_YEAR_MONTH as varchar), 5,2) + '/' + '30' + '/'+ substring(cast(EMR_REPORTING.dbo.vMH_MEASURE_PRACTICE.RPT_YEAR_MONTH as varchar), 1,4))), 112) as prequarter,

  Primed_Status,

  EHR

FROM

  EMR_REPORTING.dbo.vMH_MEASURE_PRACTICE

 

 

  where RPT_YEAR_MONTH = @Prompt('Enter values for Rpt Year Month:','N','Folder\MeasurePractice\Rpt Year Month',Mono,Constrained)

 

Thanks in advance for any inputs.

 

Regards.


List of values based on business layer objects" unavailable

$
0
0

Hello All,

 

In my  data foundation layer - in parameters and list of values layer . I do not see “List of values based on business layer objects” option.

Is there something I am missing here...Please see image


Thanks

Untitled3.png

Writting a measure in IDT.

$
0
0

Dear Gurus:

 

I want a measure to be written in IDT. I have three conditions and once these three conditions fulfilled i want a sum of the specific field.

Kindly guide me with syntax and which statement should I use to achieve this, as I am not a programmer.

Unable to connect to the infoStore network layer ( DAC0002) Universe Design Tool

$
0
0

Hi,

 

We're having this error when trying to Edit a Connection trough the Universe Creation Wizard. We have been working the last months with the tool and everything has worked properly, we created connections and universes.

 

If we click Next with on the wizard we have a Microsoft Visual C++ Runtime Library / runtime error and the Universe Design Tool get closed.

 

 

Our configuration is :

SAP Business Objects Platform 4.1 Support Pack 2

Product Version: 14.1.2.1121

We have created connections with a Microsoft SQL Server 2008 R2 .

 

Someone could give us some clues to know what is the problem?

 

Thank you

 


WHERE clause in index awareness key definition

$
0
0

On the "Keys" tab of a business layer object definition, there are five columns: "Key Type," "SELECT," "WHERE," "Data Type," and "Active."

 

Four of the five columns are fairly self-explanatory once you understand index awareness, but I'm confused about the "WHERE" column.  When is it used, and what is its purpose? 

 

I've tried adding it to an object to understand its behavior, but so far it doesn't seem to have any effect.

 

For info, I'm working with a monosource universe in IDT on BI 4.1.

Passing date prompts of different data types from one query to others

$
0
0

Dear Experts,

 

I have a requirement where I need to pass date prompts of different data types from one query to another and so on.

 

Steps to reproduce

1. In Webi Add a first query (Universe 1) with a date filter to be entered by the user

2. The data type defined in DB is time stamp. (MM/DD/YYYY hh:mm:ss a)

3. Add another query (Universe 2) with the date filter to be entered by user

4. The data type defined in DB is MMDDYYYY (Character)

5. Add another query (Universe 2) with two date filters to be entered by user

6. The data type defined in DB is MM and DD

7. The user wants to see one single prompt, i.e, just enter the date range.

8. My idea is to give the prompt text same for three queries, so that user will see only one Prompt to enter/ or use object from another query.

9. Capture the user response from Query 1 and convert the date in #2 dynamically to date in #4 and #5.

 

Is this achievable, or is there a different method? Please let me know any questions and advise

 

Sincerely,

Peter

Alias Question

$
0
0

Hi,

I have two tables (customer and Alignment table) that are joined on Customer ID e.g.

 

Customer Table           Alignment Table

Customer ID   ----------- Customer ID

  Zip                               Region

                                              Zip

 

 

There is a situation where Customer ID can be Null so whenever it is null i need to use zip to zip join rather than Customer Id to customer ID join.

I created a alias of the Alignment table and joined the alias with the customer table on zip e.g.

 

Alignment table zip (alias)                     Customer Table           Alignment Table

    Customer ID                                       Customer ID   ----------- Customer ID

         Zip  ----------------------------------------          Zip                             Region

                                                                                                                 Zip

 

If i run a query on Alignment table Zip (alias) and Customer Table and another on Alignment table and Customer table and merge on report level it works fine. But that requires me to have two alignment classes in the universe (one for Zip join and other for Cmid join). I want to have one class with region defination but have the condition working such as : records where Customer Id is NOT null then get the region information using Customer ID join but records where it is NULL then use the Zip join with the Alignment table zip alias . I am trying to replicate the running of two queries on report level and merging dimension creteria on the uiverse side.

 

Let me know if that is possible !

 

Thanks,

Sheikh

LOV's Tuning

$
0
0


Hi ,

 

For my report List of Values are taking long time to load.

 

Can you please help me  how we can tune that List of values at Universe or report level.

 

Thanks

Siva


LOST INPUT COLUMN IN DATA FOUNDATION

$
0
0

Hi everyone.

I have create a data foundation base on relational connection .

1.if  i choose single datasource ,It lost the input column in the fountation.

QQ截图2.png

2. if I choose multi datasource,It will  return a error when create  crystal report for enterprise  on the .UNX:

QQ截图.png

com.sap.connectivity.foundation.impl.Connection.getInstance(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljavax/xml/parsers/SAXParserFactory;)Lcom/sap/connectivity/foundation/impl/Connection; - [Internal Error ConnectionManagerL146]

 

here is my step:

create a relational connection on SAP R3 DRIVER  (JCO)   AND TEST SUCESSFULLY.

Create a data foundation on this connection .

If create a multi datasource  unx

apend two paramters link to the two input column .

can anyone tell the reason or the correctly step?

ad hoc webi reporting in BOXI 3.1?

$
0
0

Hi

 

actually in one universe i have to use 2 independent tables along with the regular tables.

Tables:

1) current data table

2) historical data table

 

So user requirement is -

 

When user tries to query for current data then it should refer 1) current data table for the condition

When user tries to query for Historical data then it should refer 1) historical data table for the condition

and generate the report data for the user.

 

Even i am confused with this requirement. Never experienced.

 

 

Thanks,

Bhaskar

Can a new Business Layer be tied to a specific schema?

$
0
0

I feel like I'm missing something rather simple.

 

We have a dedicated Connection that provides exposure to multiple schemas (SQL Server) and we have a universe already built (dev environment), we want to use the same Connection, but build out a new Business Layer aimed at a different schema.

 

Any thoughts or suggestions on this would be appreciated.

 

Regards,

 

Alain

how do we know, who has changed universe lastly

$
0
0


Hi Experts,

 

I can see in CMC, only time stamp of the Universe changed, but i want know the name of the person who has changed the Universe lastly.

 

Could please let me know, how can find out this ?

 

Best Regards.. Sai

SAP ERP connection (SAP JCO)

$
0
0

Hello,

 

Specs: SAP BO 4.0 sp6

Information Design Tool version 14.0.6 (installed on client machine)

BO Application server: Microsoft Windows Server 2008

 

I'm receiving the following error message when trying to create a connection from BO (Information Design Tool) to ECC. I have selected the SAP Java Connector type of connection. The connection works as I have tested it. However in the data-foundation layer of the Information Design tool when I want to see the list of tables, it errors out. Please advice as to what does the error message indicate. thanks

 

 

Error2.png

 

Jco Error.png

 

SAP ERP Jco.png

 

Regards,

samique

Outer join with where clause in the universe

$
0
0

Hi,

I have two tables such as:

 

Patient Table (P)                          Territory Table (T)

P. Alignment ID --------------------------   T.Alignment ID

P. Patient ID                                    T. Region

 

Two tables are joined on alignment ID, follow is how the data looks like

 

When i run the query only on Patient Table  i get the following

e.g.

Select P.Patient ID, P.Alignment ID

from Patient Table (P)

Where P.Data_date=P.Latest data date

 

----Note that there is a Where clause here always & i get the following result

 

P.Patient ID         P.Alignment ID      

    1                            1a

    2                             2a

    3                            3a

    4                            Null

    5                            Null

 

Now when i join two tables on Alignment ID

e.g.

Select P.Patient ID, P.Alignment ID,T.Region

from Patient Table (P)

LEFT OUTER  JOIN Territory Table (T)

ON P. Alignment ID =  T.Alignment ID

Where P.Data_date=P.Latest data date

AND T.Data_date=T.Latest data date

 

Following is the result:

P.Patient ID         P.Alignment ID      

    1                            1a

    2                            2a

    3                            3a

 

Even with the left outer join it is not brining in the Null values , it seems that because of the WHERE clause the LEFT OUTER is working as a INNER join.

How can i get the Null rows with my join to the territory table ?

 

Please Advise,

Thanks,

Sheikh

 

 

 

 

 

 


Sequence of prompts

$
0
0

Hello Everyone,

 

Does using nested lov's effect sequence of prompts in report query ?

My prompts sequence is

 

1. date

2. Rso

3. Group name based on input value for RSO (used nested lov's)

 

I changed the query properties prompt order still "Date" prompt shows up at the end.

 

I will need prompt in the below sequence 1. Date . 2. RSO 3. Group name based on RSO value.How do i achieve this.Please see screenshotUntitled1.png

 

 

Thanks Everyone


@prompt in derived table

$
0
0

Hello,

 

 

I am trying to use @prompt in  my derived table its not parsing even though it works as a univ filter. So I created a parameter 'new_param(select disticnt rpt_year_month). The object in Universe for rpt_year_month is 'Numeric'

 

 

 

error in derived table:

 

 

 

Conversion failed when converting the varchar value 'answer' to data type int.

 

Derived table :

 

Declare @rpt_year_month as int

set @rpt_year_month =@Prompt(new_param)

 

 

SELECT

a.group_name, a.primed_status as curr_prim_status, b.Primed_Status as prev_prim_status, a.EHR as curr_EHR, b.EHR as prev_EHR

from (select practice_id, group_name, primed_status, ehr, RPT_YEAR_MONTH from EMR_REPORTING.dbo.vMH_MEASURE_PRACTICE

where RPT_YEAR_MONTH = @rpt_year_month) a inner join

       (select practice_id, group_name, primed_status, ehr, RPT_YEAR_MONTH

          from EMR_REPORTING.dbo.vMH_MEASURE_PRACTICE

          where EMR_REPORTING.dbo.vMH_MEASURE_PRACTICE.RPT_YEAR_MONTH = convert(varchar(6), dateadd(MM,-3, convert(datetime, substring(cast(@rpt_year_month as varchar), 5,2) + '/' + '30'

   + '/'+ substring(cast(@rpt_year_month as varchar), 1,4))), 112)) b

on a.Group_Name = b.Group_Name

 

i am not sure why the converion is failing....when i hardcode in SQL server with rpt_year_month = '201406' i get results

Derived table @prompt

$
0
0

Hello,


 

I am trying to use @prompt in my derived table its not parsing even though it works as a univ filter. So I created a parameter 'new_param(select disticnt rpt_year_month). The object in Universe for rpt_year_month is 'Numeric'

 

error in derived table:

 

Conversion failed when converting the varchar value 'answer' to data type int.

 

 

 

Declare @rpt_year_month as int

set @rpt_year_month =@Prompt(new_param)

 

SELECT

a.group_name, a.primed_status as curr_prim_status, b.Primed_Status as prev_prim_status, a.EHR as curr_EHR, b.EHR as prev_EHR

from (select practice_id, group_name, primed_status, ehr, RPT_YEAR_MONTH from EMR_REPORTING.dbo.vMH_MEASURE_PRACTICE

where RPT_YEAR_MONTH = @rpt_year_month) a inner join

(select practice_id, group_name, primed_status, ehr, RPT_YEAR_MONTH

from EMR_REPORTING.dbo.vMH_MEASURE_PRACTICE

where EMR_REPORTING.dbo.vMH_MEASURE_PRACTICE.RPT_YEAR_MONTH = convert(varchar(6), dateadd(MM,-3, convert(datetime, substring(cast(@rpt_year_month as varchar), 5,2) + '/' + '30'

+ '/'+ substring(cast(@rpt_year_month as varchar), 1,4))), 112)) b

on a.Group_Name = b.Group_Name

BI 4.1 and SQL server 2000

$
0
0

hi everyone,


has anyone ever used sql server 2000 as a datasource for an universe (unx)?


Thanks and regards

Simone

[Microsoft][ODBC SQL Server Driver][SQL Server]Conversion failed when converting date and/or time from character string.

$
0
0

Hello All,

 

I am getting this error when I try to use @prompt in derived table. I am not sure if it is a bug since a bit of search led me to few discussions that it might be.

 

In any case....using @prompt(param) did not solve my problem. The object in backend(DB)is INT and i defined the object as numeric in Universe.I am using BI 4.0. The prompts do work independently .Only when included in derived table I have a problem.Also this query gives results in SQL server.I just replaced with @prompt(new_param). where the parameter is select distinct values for rpt_year_month.

 

prompt 1.png

Universe Using Multisource(SQL Server,Oracle) in information designer tool(IDT)

$
0
0

hi,

when i am trying to create universe using multisource (sql,oracle DB) in IDT i am getting following error

in data foundation errormsg is   :"this data source is not supported in multi source-enabled data foundations" and connections are not selective mode  to create  required connection.


i have checked adaptive processing server(APS) it's working fine.

please let me know why connections are not showing up, even i have created short cuts to connections .


DB's i am using are for connections are  SQL Server ,Oracle DB.



Regards,

Sanjeev

Viewing all 1291 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>