Report Builder 6i Data Model

Report Builder 6i is ending in error if we try to add additional column in the data model query
select rpad('a',50,'-') cust_name_inv,
rpad('a',30,'-') cust_no_inv,
rpad('a',30,'-') sal_name, ---added column
rpad('a',4000,'-') sort_field1_inv,
rpad('a',4000,'-') sort_field2_inv,
0 inv_tid_inv,
0 contact_site_id_inv,
rpad('a',60,'-') cust_state_inv,
rpad('a',60,'-') cust_city_inv,
0 addr_id_inv,
0 cust_id_inv,
0 payment_sched_id_inv,
rpad('a',20,'-') class_inv,
sysdate due_date_inv,
0 amt_due_remaining_inv,
rpad('a',30,'-') invnum,
0 days_past_due,
0 amount_adjusted_inv,
0 amount_applied_inv,
0 amount_credited_inv,
sysdate gl_date_inv,
'x' data_converted_inv,
0 ps_exchange_rate_inv,
0 b0_inv,
0 b1_inv,
0 b2_inv,
0 b3_inv,
0 b4_inv,
0 b5_inv,
0 b6_inv,
rpad('a',25,'-') company_inv,
rpad('a',30,'-') cons_billing_number,
rpad('a',32,'-') invoice_type_inv
from dual
where 1=2
UNION ALL
&common_query_inv
We checked the number of columns passed in the lexical parameter, it tallys with the columns in the data model
Any suggestions is welcome to overcome this issue
Thanks
The lexical parameter passes the following query at run time
SELECT SUBSTRB (party.party_name, 1, 50) cust_name_inv,
cust_acct.account_number cust_no_inv,
jr.NAME sal_name,
c.segment1|| ' '|| c.segment2|| ' '|| c.segment3|| ''|| c.segment4||''|| c.segment5|| ''|| c.segment6 sort_field1_inv,
arpt_sql_func_util.get_trx_type_details(ps.cust_trx_type_id,'NAME') sort_field2_inv,
c.code_combination_id inv_tid_inv,
site.site_use_id contact_site_id_inv,
loc.state cust_state_inv,
loc.city cust_city_inv,
DECODE (:format_detailed,NULL, -1, acct_site.cust_acct_site_id) addr_id_inv,
NVL (cust_acct.cust_account_id, -999) cust_id_inv,
ps.payment_schedule_id payment_sched_id_inv,
ps.CLASS class_inv,
ps.due_date due_date_inv,
DECODE (:c_convert_flag,'Y', ps.acctd_amount_due_remaining, ps.amount_due_remaining) amt_due_remaining_inv,
ps.trx_number invnum,
CEIL (:as_of_date - ps.due_date) days_past_due,
ps.amount_adjusted amount_adjusted_inv,
ps.amount_applied amount_applied_inv,
ps.amount_credited amount_credited_inv,
ps.gl_date gl_date_inv,
DECODE (ps.invoice_currency_code,:functional_currency, NULL,DECODE (ps.exchange_rate, NULL, '*', NULL)) data_converted_inv,
NVL (ps.exchange_rate, 1) ps_exchange_rate_inv,
arpt_sql_func_util.bucket_function (:bucket_line_type_0,
dh.amount_in_dispute,
ps.amount_adjusted_pending,
:bucket_days_from_0,
:bucket_days_to_0,
ps.due_date,
:bucket_category,
:as_of_date
) b0_inv, --------------bucket 1
arpt_sql_func_util.bucket_function (:bucket_line_type_1,
dh.amount_in_dispute,
ps.amount_adjusted_pending,
:bucket_days_from_1,
:bucket_days_to_1,
ps.due_date,
:bucket_category,
:as_of_date
) b1_inv, --------------bucket 2
arpt_sql_func_util.bucket_function (:bucket_line_type_2,
dh.amount_in_dispute,
ps.amount_adjusted_pending,
:bucket_days_from_2,
:bucket_days_to_2,
ps.due_date,
:bucket_category,
:as_of_date
) b2_inv, --------------bucket 3
arpt_sql_func_util.bucket_function (:bucket_line_type_3,
dh.amount_in_dispute,
ps.amount_adjusted_pending,
:bucket_days_from_3,
:bucket_days_to_3,
ps.due_date,
:bucket_category,
:as_of_date
) b3_inv, --------------bucket 4
arpt_sql_func_util.bucket_function (:bucket_line_type_4,
dh.amount_in_dispute,
ps.amount_adjusted_pending,
:bucket_days_from_4,
:bucket_days_to_4,
ps.due_date,
:bucket_category,
:as_of_date
) b4_inv, --------------bucket 5
arpt_sql_func_util.bucket_function (:bucket_line_type_5,
dh.amount_in_dispute,
ps.amount_adjusted_pending,
:bucket_days_from_5,
:bucket_days_to_5,
ps.due_date,
:bucket_category,
:as_of_date
) b5_inv, --------------bucket 6
arpt_sql_func_util.bucket_function (:bucket_line_type_6,
dh.amount_in_dispute,
ps.amount_adjusted_pending,
:bucket_days_from_6,
:bucket_days_to_6,
ps.due_date,
:bucket_category,
:as_of_date
) b6_inv, --------------bucket 7
c.segment1 company_inv,
TO_CHAR (NULL) cons_billing_number,
arpt_sql_func_util.get_trx_type_details(ps.cust_trx_type_id,'NAME') invoice_type_inv
FROM hz_cust_accounts cust_acct,
hz_parties party,
ar_payment_schedules_all ps,
jtf_rs_salesreps jr,
ra_customer_trx_all ra,
hz_cust_site_uses_all site,
hz_cust_acct_sites_all acct_site,
hz_party_sites party_site,
hz_locations loc,
ra_cust_trx_line_gl_dist_all gld,
ar_dispute_history dh,
gl_code_combinations c
WHERE ps.gl_date <= :as_of_date
AND UPPER (RTRIM (RPAD (:p_in_summary_option_low, 1))) = 'I'
AND ps.customer_site_use_id = site.site_use_id
AND site.cust_acct_site_id = acct_site.cust_acct_site_id
AND acct_site.party_site_id = party_site.party_site_id
AND loc.location_id = party_site.location_id
AND ps.gl_date_closed > :as_of_date
AND DECODE (UPPER (:p_in_currency),
NULL, ps.invoice_currency_code,
UPPER (:p_in_currency)
) = ps.invoice_currency_code
AND gld.account_class = 'REC'
AND gld.latest_rec_flag = 'Y'
AND gld.code_combination_id = c.code_combination_id
AND ps.payment_schedule_id = dh.payment_schedule_id(+)
AND :as_of_date >= NVL (dh.start_date(+), :as_of_date)
AND :as_of_date < NVL (dh.end_date(+), :as_of_date + 1)
AND cust_acct.party_id = party.party_id
AND jr.salesrep_id = ra.primary_salesrep_id
AND ps.customer_id + 0 = cust_acct.cust_account_id
AND ps.customer_trx_id + 0 = gld.customer_trx_id
AND 1 = 1

The error is query block consists of inconsistent no of columns

Similar Messages

  • ORACLE reports Build 10g - Data Model - query - If statement in Alias ?

    I have the following select statement. It has the alias Survivors, Deaths and "All
    With the ORACLE reports Build 10g - Data Model - I have the following query statement. I require the alias to change. Can the following be done.
    Cases". Is it posible to use :P_LANGUAGE variable to say that -- IF :P_LANGUAGE = FRENCH THEN alias are Survivants for survivors, Décès for Deaths, Tous_les_cas for All Cases. Please advise
    SELECT ALL T_NTR_MULTIBAR.CAT, T_NTR_MULTIBAR.NUM_CASES_LEFTBAR AS Survivors,
    T_NTR_MULTIBAR.NUM_CASES_MIDDLEBAR AS Deaths, T_NTR_MULTIBAR.NUM_CASES_RIGHTBAR AS "All Cases"
    FROM T_NTR_MULTIBAR
    WHERE INSTANCE_NUM = :P_INSTANCENUM
    order by ORDERS

    It is no problem, you can automatically change the complete query before the report is running, which delivers you different kind of values. But the alias names does not change in the group of the data-model, although two query are running with different alias names at different times. In the data model you see the alias names of the first implemented select statement, which are the column fields in the layout.

  • Reports Builer 11g - DATA MODEL crashes

    Win 7, 64 Bit
    Reports Builder 11.1.1.2
    Report Builder Launches - OK
    Can click all items in Object Navigator +except DATA MODEL+
    Report Builder crashes.
    Anyone experience the same and find a fix?

    Correct.
    11gR1 Builders on Win 64 are only supported using 32 bits software distribution.
    Reference
         Availability of Oracle Forms/Reports Builders Version 11g R1 (11.1.1.x) on 64 bit Platforms. (Doc ID 1108940.1)
    But you can use the new 11gR2 where builder are support on 64 bits.
    You can download it from the following link.
    reference
    http://www.oracle.com/technetwork/middleware/reports/downloads/index.html
    Regards

  • Creating a report having Multiple Data Models...

    Using BI publisher for Word 10.1.3.4
    I am attempting to create a template in MS Word with the report settings I have created in BI Publisher.
    I've created two data models, both referencing different tables that I will need on the report itself. The issue I have having is whenever I use the table wizard, the rowset is grayed out and only the default data model (sql query) can be used.
    I looked around and was unable to find a solution to this.

    I have done this and it worked.
    However I created an additional data model (I need 3 total) and only 2 of them are showing up.
    I tried logging in and out of BI Publisher, setting the main data model to the new one and then back to the concatenated data source and nothing seems to work.
    Whenever I got back into BI Publisher, I attempted to run the table wizard and got the following error:
    "The table wizard can't handle this data xml."
    Please advise.

  • Report Builder truncating data

    I have inherited an application that has uses Java and CFR's
    (built with CF report builder 7) to create PDF files. On one of the
    reports is a field that an essay goes into. This essay can be up to
    10,800 characters long. That length is being controlled on the
    server side before it gets saved to the database.
    The problem I am trying to address is that when people write
    more than 7900 or so characters, their essays are getting cut off.
    In the database, the field type is text. On other CFM pages where
    this essay is shown, all the text shows up without a problem. So
    the data is being stored correctly.
    I have little experience using report builder, so I'm flying
    blind here. I have done a lot of Googling for this, and found a few
    other people that had the same problems. But nobody had a solution
    posted. I have tried changing the Stretch with Overflow setting (it
    was fasle originally) and that did nothing. And I cannot see
    anything else that could change matters.
    Somebody, please help?

    What do you mean by "conceal data features"?
    You don't want to display the data? => Don't select it in your query.
    Don't display it when data has some specific value? => Use a format trigger.
    Replace data with stars? => Do it in the query like:
    select username, '***' password from my_users

  • BI Publisher Report with Multiple data models

    I have an Oracle Report with two different data model(querys) and Layouts for Summary and Details. When the user Choses Summary it execute the summary data model query and display the result in summary Repeating frame Layout and when user choses Details it execute the other query and uses the other layout.
    Now I am creating the same report in Stand alone BI Publisher. As a company standard we are using Data Template for Data model. How can I accomplish the same feature I mentioned above in BI Publisher? Meaning How can I control and execute the querys in BIP based on a parameter "Summary" or "Details" ?
    Can Someone help
    George

    option1:
    The query should be same @ detail level, only the template has to be different for summary and details.
    @runtime, user can choose to see the detail/summary
    Disadvantage, if the data is huge,
    advantage , only one report.
    option2:
    create two separate reports summary and details
    and create diff data and diff layout and keep it as different report
    Advantage, query will perform based on the user run report, summary/detail, so that you can write efficient query.
    Dis advantage , two reports query/template to be maintained.

  • Bug report SQL DEVELOPER DATA MODELER

    Hello,
    I think i found a bug using Sql developer data modeler 2.0.0 build 584.
    When importing a DDL file to create a relational model, foreign key constraints might not be created if foreign key uses multiple-field and the fields are not referenced in the same order as the primary key was.
    ex:
    Table FOO ..... PRIMARY KEY (id_1, id_2)
    FOREIGN KEY (id_2, id_1) REFERENCES FOO (id_2, id_1)
    Benjamin
    P.S: Bellow is a portion of SQL code demonstrating the problem:
    -- "_decompte"
    CREATE TABLE "_decompte"(
    numero_rang VARCHAR2(2),
    numero_contrat VARCHAR2(13),
    id_decompte VARCHAR2(19)
    ALTER TABLE "_decompte"
    add CONSTRAINT pk_decompte PRIMARY KEY (numero_rang, numero_contrat, id_decompte);
    -- "_decompte_detail"
    CREATE TABLE "_decompte_detail"(
    numero_rang VARCHAR2(2),
    id_ligne NUMBER(4),
    numero_contrat VARCHAR2(13),
    id_decompte VARCHAR2(19)
    -- "_decompte_detail"
    -- NOT Recognized by SQL DEVELOPER DATA MODELER (fields are not in the same order as primary key definition)
    ALTER TABLE "_decompte_detail"
    add CONSTRAINT fk_decompte_detail_1 FOREIGN KEY (numero_contrat, numero_rang , id_decompte) REFERENCES "_decompte"(numero_contrat, numero_rang , id_decompte);
    -- Recognized by SQL DEVELOPER DATA MODELER
    ALTER TABLE "_decompte_detail"
    add CONSTRAINT fk_decompte_detail_2 FOREIGN KEY (numero_rang, numero_contrat, id_decompte) REFERENCES "_decompte"(numero_rang, numero_contrat, id_decompte);

    Hi,
    Well, I was recently given some database scripts and asked to correct and improve them. These scripts were not generated but rather hand made. Having no access to a DBMS I was just curious about the result of this option in Data modeler and tried it for a better DB overview. I don't need it at all, but I was surprised to discover that the result was a failure. So I tried various scripts until I found the mistake.
    regards.

  • Warehour builder Vs data model

    Can Oracle Warehouse Builder be used for any data modeling development(logical to physical)
    Any licensing required?
    Ad. thanks for the info!.

    The error is query block consists of inconsistent no of columns

  • Decision  to Build BW data model with legacy data

    Hi experts,
    I was assigned a task to take decision on  creating  new data warehouse on the following scenario's
    Option1:
    1.SAP BW + Legacy data( Separate database)
    Option2:
    2.SAP BW+ Legacy data integrate to BW.
    Please let me the pros and cons involved in integrating legacy data to BW or to report separately as two different data bases using BOBJ.Client is having SAP R/3 EEC6.0 running.SAP data is around 60% and remaining is legacy.
    My question is which option is better with some detail.
    Regards
    prasad

    Hi Prasad,
    As mentioned no need to combine Legasy data and BW data in BOBJ.You can directly extract to BI from R/3 and Legasy Data.But
    Please check the folliwng points from DB People.
    1. As per requirement how many Tables that you are using to extract the data?
    2.  You have three source tables.But there are no unique records.In this case first you need to identify the common key field.
    Note : That key field also should same as in R/3 also.
    Based on the three source tables inform the DB team Mainatain a separate table (Which should collect only common record from three tables).
    3. Now you can load the data into BI.So the above scenario will resolve issue.
    Issues & Concern :
    1. If yopu extract Lagasy and BI to BOBJ ?How u r going to combine data in BOBJ to generate a global report.
    2. Is this possible to maintain a separate table in DB by the DB team.
    Check once with DB team before proceeding further.
    Regards
    Ram.

  • Best way to produce reports if the data model is in RDBMS

    we have database available in RDBMS.we will have to create reports out of that database.
    Anyone suggest me best way(by considering all the factors) to get the reports if database is in RDBMS.
    what are all need to follow in physical layer and what are all need to follow in BMM layer.

    Thanks saichand for the response.
    Ex: lets say,if there are 25 tables in the database(in RDBMS,there are lot of joins exists between the tables like A->B->C->D->E->F->G->H, in this case if report is from A,E and G then which way i will have to create view in the physical layer)
    i have arrraged tables and columns below for better understanding
    A B c D E F G
    A1(pk) B1(PK) C1(PK) D1(PK) E1(PK) F1(PK) G1(PK)
    A2 A1(fk) B1(fk) C1(fk) D1(fk) E1(fk) F1(fk)
    A3 B2 C2 D2 E2 F2 G2
    from the above tables and columns,if the report should be with A1,E1,E3,G1,G2 fields in that case how to create view in the physical layer.
    for each and every report do we need to create seperate view?
    can you please elaborate the procedudure in different situations?
    Thanks in Advance.
    Edited by: user12077461 on Feb 5, 2011 7:59 AM

  • Authorizations for WEBI report based on BPC data model

    Hi All,
    We are strugelling with setting up authorisations for the reporting on BPC data model.
    We created Bex query on top of Multiprovider that consists of BPC cube. The Bex query is source for WEBI output. The authorisations has been set up on BPC data model (cube) in BPC application but they are not passed nor to Bex query nor to Webi. Example: The query is build on top of OPEX BPC data model, this data model is restricted based on Oranizational Unit. My test user is allowed to see only Org Unit = 'Australia' in the OPEX BPC data model, however when I'm running the report I can see absolutely everything.
    We are not connecting/using any BI cubes itself for this reporting. We are intrested only in the WEBI report based on BPC data models.
    We were trying to use BPC data model (without any extra settings) as the source for BEx report, we were also trying to use virtual BPC data model as the source for Bex transient query - but non of these have helped.
    Can you please advise how the authorisations should be set up for WEBI reporting on BPC data models?
    Kasia

    Anybody can help with this issue please?

  • Using mulitple data models in a report

    Is it possible to use more than one data model in a report? For example, we have many reports that are based on several data models. There are also various sub-templates that could be associated with a report, independent of the report's main data model. I cannot see a way to join data models, leaving me with only two apparent choices:
    1) Add (replicate) all the sub-template data sources and data sets to each data model
    2) Create a mega model that has everything.
    Any ideas for a better solution? Seems like a common problem...
    Thanks,
    Armand

    Hello, and thank you for answering.
    Puting a # infront of portal30.wwctx_api.get_user didn't work
    When i did that, it resulted in this pl/sql code in the package:
    if l_column.get_value = '#portal30.wwctx_api.get_user' then
    l_style := l_row.get_style;
    l_style.set_color('blue');
    l_style.set_background_color('red');
    l_style.set_font('');
    l_style.set_bold('NO' );
    l_style.set_italic('NO');
    l_style.set_underline('NO');
    l_style.set_blink('NO');
    l_row.set_style(l_style);
    end if;
    It looks like the portal treat all that is inside the value field as text.
    I tried to come around the problem by editing the plsql code which is stored in the database. This worked, but when i tried to edit it from the portal afterwards, my changes wasn't reflected.
    Regards Per-Jarle

  • Building data model using business modeler in demantra

    Hello.
    During this week I've been trying to build a data model using the business modeler but i keep getting an error during the process. My main problem is that I don't really know if i am making the mistake or it is a configuration problem with my demantra install. To begin with I'm trying to build the most simple of the models, 3 files or tables (tryed both) sales, items, and location, all joined by their respectives id's. So If anyone could be so kind to direct me to a tutorial with an example (besides the implementation guide) or a anything like that will be greatly appreciated.
    Thanks!
    Data tables estructure:
    Sales table:
    Item_Id|Item_Name|Org_Id|Org_Name|Site_Id|Site_name|sales_date|Quantity
    Items table:
    Item_Id|Item_Name
    Location table:
    Org_Id|Org_Name|Site_Id|Site_name
    So far I've tryed building the model with one record on each table.
    this is the error that i'm getting:
    <a href="http://imageshack.us/photo/my-images/832/errornuevo.png/"></a>
    Uploaded with ImageShack.us

    We currently don't support DataControls based on the ADF BC technology. We will consider such support if there is a strong interest in that use case.
    Independent of the IDE's you use, there are ways to expose services based on ADF BC that can then be consumed by the view layer. A Google search will point you to some of the approaches.
    HTH. Thanks for your interest in OEPE.

  • PowerPivot data model as Source on Cloud

    Hi All,
    We have an excel workbook with a heavy powerpivot model. Can we use any Cloud services to segregate the powerpivot model and use it as a data source?
    We have already accessed the PowerPivot Gallery on Sharepoint(On-Premise) and Tabular Cube solutions but both of them are On-Premise solutions and since we need a Cloud based solution; we have rejected both of them.
    Also, regarding Cloud solution(if there's any), will it answer the following problem statements:-
    Will it be possible to drive a light weight excel report by Powerpivot data model?
    On Premise database based report refresh (using gateway)?
    PowerPivot /Calculated Measures – will they be visible through data model?
    Regards,
    Amit

    This is not currently possible, but I understand that it is in the works.
    John

  • Does SQL Developer Data Modeler fit-in??

    Hi Everyone,
    Wish you happy new year 2011.
    Does SQL Developer Data Modeler support conceptual, logical and physical in our modeling or only logical and physical?
    We all use Erwin for modeling. Erwin works without database repository storing models in desktop folders and provide additional reporting. I find some place SQL Developer Data Modeler talked about repository need.
    Does SQL Developer Data Modeler store the models in local/network folders instead of Database server?
    What are the functions need database based repository to work with SQL Developer Data Modeler?
    We are thinking of using SQL Developer Data Modeler for our conceptual, Logical, and data dictionary need. Will it help in our need?
    Do we need to face any surprises on using SQL Developer Data Modeler for our need?
    Thanks in sharing your experience and helping me out.
    RI

    1) Do we need to have Oracle database at back end to work with SQL Developer Data Modeler?No, Data Modeler use Oracle database only if you create reporting repository.
    Data Modeler is free, you need database license only if you want to log service request
    2) Will SQL Developer Data Modeler create any tables (as backend repository ) in Oracle database to store Model details? no
    3) Do we need to create reporting schema in backend oracle database to generate reports of SQL Developer Data Modeler's items such as Entity/attributes etc?no, reports can be created out of current loaded design. However having reporting repository will give you additional benefits - history (reports can be generated for every snapshot of your designs there) and multi-user usage, you can create your own reports
    4) Do we to use SQL Developer Data Modeler reverse engineer from DB2, SqlServer, Terra data etc?Data Modeler has full support for Oracle, DB2/390, DB2/UDB(LUW) and MS SQL Server. Reverse engineering from other databases (including Terra Data) is at generic JDBC level - you'll get some and some will be missing (no check constraints for example).
    You can read release notes http://www.oracle.com/technetwork/developer-tools/datamodeler/ea2-releasenotes-185793.html
    Philip

Maybe you are looking for

  • Nano frozen on selection screen.

    Howdy, My iPod nano is stuck on the main selection screen. When I attempt to connect it to my computer iTunes will not recognize it, but the iPod will charge and shows the "Connected" screen. I have reset it numerous times using the Menu/Select metho

  • Delay before the Delete option is active after selecting messages

    Previously I could select numerous messages (Command-A) and immediately press the Delete button in the Mail menu bar to delete the selected emails. Since the update, there is now a delay from the time the messages are selected until when the Delete i

  • Saving interactive forms with data AND then performing further edits

    I need to produce a series of interactive PDF application forms which are long and quite complicated. This being the case, is it possible to save the file in it's partially completed state and close it down then at another time re-open and continue t

  • Upgrade from LE7

    When I upgrade to logic studio, will Express 7 still be available to launch older projects in if I want/need to? Or will it be effectively gone from my machine altogether? Thanks

  • Where is the FC Studio plug ins folder?

    Hi, Basic question here. I am trying to install a few new noise reduction filters in Final Cut since Compressor is quickly dying before my eyes! Where in the world is the Final Cut Studio plug ins folder? It used to be Library - App Support - Final C