Multi-Value error when merging queries

I am merging 2 different tables to generate a report with combined information. I want to pull data from one table where there is no matching dimension I have declare the dimensions as detailed objects. This works fine, I am however getting an issue with multiple values in some rows.
I have 2 queries that I merge
Query1
Application_name
Version     
Query 2
Server hostname
Application_name
Report
Application_name  (Query 1)
Version (Query 1)
Server hostname (Query 2)
The issues comes when I have multiple Server hostnames for an Applicaiton_name, they are showing a error message of u201C#MUTIVALUEu201D I presume this is due to the fact that the merge is trying to put more that one value in the Server hostname
How can I rectify this so that multiple servers are show for one application?
e.g.
Report Data
Application_name (Query 1)     Version (Query 1)     Server hostname (Query 2)
Application  X                            Version 10.1          server1
Application  X                             Version 10.1          server2
Application  X                             Version 10.1          server3
Adam

Try to use Report level context.
Like
Server hostname ForEach (Server ) In (Query)
Hope this will help you out.

Similar Messages

  • Multi value error in webi

    Hi,
    We have 5 Data providers.
    Merging on
    Plant Id, Vendor Id, Company Code, Doc Id, Line item id, Material Group Id, Material Id
    Output on the report
    Vendor_Id, Vendor_Name, Plant_Id,Plant_Name, Comp_Id, Comp_Name, Order Date, Rec Date
    I am getting multi value error for Order Date, Rec Date.
    I have created detail object for order Date, Rec Date associated  with Line Item Id dimension.
    Used the following formula for
    Order Date=[Order Date] ForEach([Comp_Id];[Plant_Id];[Vendor_Id];[Material Group Id];[Material Id];[Doc Id];[Line Item Id])
    Rec Date=[Rec Date] ForEach([Comp_Id];[Plant_Id];[Vendor_Id];[Material Group Id];[Material Id];[Doc Id];[Line Item Id])
    We have multiple order Dates, rec Dates For each Line Item
    Let me know where is the problem.

    Hi Jyothy ,
    One of Rule when using Merge is the dimensions other than merge dimension should only be in 1:1 relationship .
    Since you have more than 1 order date/rec date for line item ,it is throwing #Multivalue error.

  • Multi value error in bar chart

    Hi,
    I am getting the following error in bar chart for recp_id versus actual and budget.
    "Formula Evaluation- Error in dataset: Multivalue check formula definition in this dataset context"
    I have following report in the tab1, chart on tab2
    Class, Eq No, Recp_Id, Status, hrs_used, hrs_avail, rate, Actual, Budget
    2         123            R1      A         10        10              5      50     50
    2          123           R1      A         _         20              5      0       100
    1           234          R2      A         10        5               10    100    50
    I have 3 data providers:
    hrs_used Dp1: Eq No, hrs_used, compcode,recp_id
    hrs_avail Dp2: Eq No, Eff_st_dt,Eff_end_dt,compcode, recp_id
    master data Dp3: Eq No, compcode,status, Eq name, class
    Merging on Eq No, compcode, recp_id
    I was getting multi value error for hrs_avail, actual,budget and resolved it in the report using below formula for hrs_avail. I have multi value error in Budget in the report
    [Includingweekends]=Sum(DaysBetween([Eff_st_dt];RelativeDate([Eff_end_dt];1) )  ForEach([Eq No];[Recp_Id];[Eff_st_dt];[Eff_end_dt]))
    hrs_avail=If([Prompt for Weekends]="N") Then ([Prompt for Available Hours] * [Excluding weekends]) Else ([Includingweekends] * [Prompt for Available Hours])
    Actual=[hrs_used] * [rate]
    Budget=[hrs_avail]* [rate]
    Report output now:
    Class, Eq No, Recp_Id, Status, hrs_used, hrs_avail, rate, Actual, Budget
    2          123     R1               A         10        30        5          150     50
    1          234     R2               A         10        5         10         100    50
    I have an issue with the graph with multi value alert on the top of chart for recp_id versus actual and budget.

    Hi Jyothy ,
    Chop down your formula ,place each section of formula as a column and check for error .
    use below
    [Includingweekends]=Sum(DaysBetween([Eff_st_dt];RelativeDate([Eff_end_dt];1)   ForEach([Eq No];[Recp_Id];[Eff_st_dt];[Eff_end_dt]))
    hrs_avail=sum(If([Prompt for Weekends]="N") Then ([Prompt for Available Hours] * [Excluding weekends]) Else ([Includingweekends] * [Prompt for Available Hours]))

  • Getting multi value error for measures

    We have two queries, (1)  Cost Center (2) PS
    I merged on Company Code, Internal Order, Equipment id
    Record Category are LBR, MTL, Others
    Fields on the report are
    Equip class, Equip Id, Equip ownership, Actual_Amt_Lbr, Budget_Amt_Lbr, Actual_Amt_MTL, Buget_Amt_MTL
    001_eclass
    Actual_Amt_Lbr= If ([Record Typ ]="04" And [Record Category]="LBR") Then Sum([Sum Actual]) Else 0
    Buget_Amt_Lbr= If ([Record Type Id]="01" And [Record Category]="LBR") Then Sum([Sum budget]) Else 0
    Actual_Amt_MTL= If ([Record Typ ]="04" And [Record Category]="MTL") Then Sum([Sum Actual]) Else 0
    Buget_Amt_MTL= If ([Record Type Id]="01" And [Record Category]="MTL") Then Sum([Sum budget]) Else 0
    I am getting multi value for measures i.e. Actual_Amt_Lbr, Budget_Amt_Lbr, Actual_Amt_MTL, Buget_Amt_MTL
    My scenario is
    One Euipment class has many Equipment id with record typ 01 and 04 and the same Equipment id has record category LBR and MTL
    Data is as follows:
    Equip_class, Equip_id, Equip_own, LBR_actual, LBR_Budget, Record_Type, Record_cat
    001_eclass   001       owner       0       2100   01          LBR
    001_Eeclass  001        owner           0       500        01          MTL
    001_eclass   001       owner       0       100   01          others
    001_Eeclass  001        owner           500      0         04          LBR
    001_Eeclass  001        owner           200      0         04          MTL
    001_Eeclass  001        owner           500      0         04          Others
    001_Eeclass  002        owner           500      0         04          LBR
    Used sum([Sum Actual] ForEach ([Record_Type];[Record_cat]) is not working

    Hi
    try this-
    Actual_Amt_Lbr= Sum(If ([Record Typ ]="04" And [Record Category]="LBR") Then [Sum Actual] Else 0)
    Buget_Amt_Lbr= Sum(If ([Record Type Id]="01" And [Record Category]="LBR") Then [Sum budget] Else 0)
    Actual_Amt_MTL= Sum(If ([Record Typ ]="04" And [Record Category]="MTL") Then [Sum Actual] Else 0)
    Buget_Amt_MTL= Sum(If ([Record Type Id]="01" And [Record Category]="MTL") Then [Sum budget] Else 0)
    ~Anuj

  • OpenDocument.aspx - pass multi value parameter when report type is actx

    We are running Crystal Reports XI R2 against a business objects infoview server.
    We have been successfully using the OpenDocuments method for opening crystal reports but have run into a snag.  When using a multi-value parameter, we can only get it to work when the viewer is set to HTML.  Setting to ActiveX prompts us to enter in the parameter values manually.
    This address works (using sViewer=HTML):
    http://vsx2af0x/businessobjects/enterprise115/infoview/scripts/opendocument.aspx?sType=rpt&sViewer=html&lsMpSiteIDs=[1235880],[1235891],[1235902],[1235913]&sPath=[Development][CGIS][Intranet Mapping][COS_Base]&sDocName=DetailedSite&sRefresh=Y
    This address does not work (using sVIewer=actx):
    http://vsx2af0x/businessobjects/enterprise115/infoview/scripts/opendocument.aspx?sType=rpt&sViewer=actx&lsMpSiteIDs=[1235880],[1235891],[1235902],[1235913]&sPath=[Development][CGIS][Intranet Mapping][COS_Base]&sDocName=DetailedSite&sRefresh=Y
    Any thoughts on the problem?

    As I understand what you need is to use LookupSet function. 
    Suppose if your dataset is like this (for simplicity I'm showing only required fields)
    PersonID Project Company
    ID1 P1 C1
    ID1 P2 C1
    ID1 P3 C2
    ID1 P4 C2
    ID1 P5 C3
    If you want to get the full project list for the person just send the PersonID alone and filter using it in the subreport. You can keep the project/company parameters optional in that case and put a default value. This would be the easiest thing.
    Now if you want pass the project parameter also you need to pass it like this
    =Join(LookupSet(Fields!Person.Value,Fields!Person.Value,Fields!Project.Value,"DatasetName"),",")
     This would act like a self lookup and return you full list of projects for the person and then you can use this to set the parameter value in the subreport.
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • -6502 ORA-06502: PL/SQL: numeric or value error when using 'Create CAPI Definition'

    I get an error when I try to create a CAPI definition with Headstart untilities (6i). I use HSU_CAPI revision 6.5.2.0
    The detailed information says the following:
    Message
    BLAPI.OPEN_ACTIVITY
    Start HSU_CAPI.run
    Number of Tables to create CAPI for 1
    Initial checks for table KCS_TENDERS with id 692754610572409851363604771392473242
    HSU_CAPT.initial_checks for table KCS_TENDERS
    HSU_CAPF.initial_checks for table KCS_TENDERS
    HSU_CAPC.initial_checks Custom Services for table KCS_TENDERS
    HSU_CAPB.initial_checks BRDD for table KCS_TENDERS
    bltext.get_lines_from_repository, p_text_type=CDINOT
    bltext.get_line_containing
    bltext.get_line_containing
    bltext.get_lines_from_repository, p_text_type=CDIPLS
    bltext.get_line_containing
    bltext.get_line_containing
    bltext.get_line_containing
    bltext.get_line_containing
    bltext.get_line_containing
    bltext.get_line_containing
    KCS_TENDERS Business Rule Design Definition BR_TNR001_CEV does not have any Trigger Columns. Rule will fire when any column is updated.
    bltext.get_lines_from_repository, p_text_type=CDINOT
    bltext.get_line_containing
    bltext.get_line_containing
    bltext.get_lines_from_repository, p_text_type=CDIPLS
    bltext.get_line_containing
    bltext.get_line_containing
    bltext.get_line_containing
    bltext.get_line_containing
    bltext.get_line_containing
    bltext.get_line_containing
    Creating CAPI for table KCS_TENDERS with id 692754610572409851363604771392473242
    Recreating KCS_TENDERS Table API/Trigger Logic - Event: Pre-Before-Insert-stmt, Open transaction.
    Write Text for element type APPLOG with id 753236628580304413262318236391196826 - Text type: ALCODE number of text lines = 6 - REPLACE
    Deleted old text
    Write Text for element type APPLOG with id 753236628580304413262318236391196826 - Text type: ALCMNT number of text lines = 1 - REPLACE
    Deleted old text
    Recreating KCS_TENDERS Table API/Trigger Logic - Event: Pre-Before-Update-stmt, Open transaction.
    Write Text for element type APPLOG with id 753236628580332747461215454262479002 - Text type: ALCODE number of text lines = 6 - REPLACE
    Deleted old text
    Write Text for element type APPLOG with id 753236628580332747461215454262479002 - Text type: ALCMNT number of text lines = 1 - REPLACE
    Deleted old text
    Recreating KCS_TENDERS Table API/Trigger Logic - Event: Pre-Before-Delete-stmt, Open transaction.
    Write Text for element type APPLOG with id 753236628580361081660112672133761178 - Text type: ALCODE number of text lines = 6 - REPLACE
    Deleted old text
    Write Text for element type APPLOG with id 753236628580361081660112672133761178 - Text type: ALCMNT number of text lines = 1 - REPLACE
    Deleted old text
    Recreating KCS_TENDERS Table API/Trigger Logic - Event: Post-After-Insert-stmt, Close transaction.
    Write Text for element type APPLOG with id 753236628580389415859009890005043354 - Text type: ALCODE number of text lines = 6 - REPLACE
    Deleted old text
    Write Text for element type APPLOG with id 753236628580389415859009890005043354 - Text type: ALCMNT number of text lines = 1 - REPLACE
    Deleted old text
    Recreating KCS_TENDERS Table API/Trigger Logic - Event: Post-After-Update-stmt, Close transaction.
    Write Text for element type APPLOG with id 753236628580417750057907107876325530 - Text type: ALCODE number of text lines = 6 - REPLACE
    Deleted old text
    Write Text for element type APPLOG with id 753236628580417750057907107876325530 - Text type: ALCMNT number of text lines = 1 - REPLACE
    Deleted old text
    Recreating KCS_TENDERS Table API/Trigger Logic - Event: Post-After-Delete-stmt, Close transaction.
    Write Text for element type APPLOG with id 753236628580446084256804325747607706 - Text type: ALCODE number of text lines = 6 - REPLACE
    Deleted old text
    Write Text for element type APPLOG with id 753236628580446084256804325747607706 - Text type: ALCMNT number of text lines = 1 - REPLACE
    Deleted old text
    Recreating KCS_TENDERS Table API/Trigger Logic - Event: Pre-Before-Delete-row, Save old data.
    Write Text for element type APPLOG with id 753236628580474418455701543618889882 - Text type: ALCODE number of text lines = 404 - REPLACE
    Deleted old text
    Write Text for element type APPLOG with id 753236628580474418455701543618889882 - Text type: ALCMNT number of text lines = 1 - REPLACE
    Deleted old text
    Recreating KCS_TENDERS Table API/Trigger Logic - Event: Pre-Insert, Call CAPI.
    Write Text for element type APPLOG with id 753236628580568865785358936523163802 - Text type: ALCODE number of text lines = 4 - REPLACE
    Deleted old text
    Write Text for element type APPLOG with id 753236628580568865785358936523163802 - Text type: ALCMNT number of text lines = 1 - REPLACE
    Deleted old text
    Recreating KCS_TENDERS Table API/Trigger Logic - Event: Pre-Update, Call CAPI.
    Write Text for element type APPLOG with id 753236628580597199984256154394445978 - Text type: ALCODE number of text lines = 4 - REPLACE
    Deleted old text
    Write Text for element type APPLOG with id 753236628580597199984256154394445978 - Text type: ALCMNT number of text lines = 1 - REPLACE
    Deleted old text
    Recreating KCS_TENDERS Table API/Trigger Logic - Event: Pre-Delete, Call CAPI.
    Write Text for element type APPLOG with id 753236628580625534183153372265728154 - Text type: ALCODE number of text lines = 17 - REPLACE
    Deleted old text
    Write Text for element type APPLOG with id 753236628580625534183153372265728154 - Text type: ALCMNT number of text lines = 1 - REPLACE
    Deleted old text
    Recreating KCS_TENDERS Table API/Trigger Logic - Event: Post-Insert, Call CAPI.
    Write Text for element type APPLOG with id 753236628580653868382050590137010330 - Text type: ALCODE number of text lines = 7 - REPLACE
    Deleted old text
    Write Text for element type APPLOG with id 753236628580653868382050590137010330 - Text type: ALCMNT number of text lines = 1 - REPLACE
    Deleted old text
    Recreating KCS_TENDERS Table API/Trigger Logic - Event: Post-Update, Call CAPI.
    Write Text for element type APPLOG with id 753236628580682202580947808008292506 - Text type: ALCODE number of text lines = 144 - REPLACE
    Deleted old text
    Write Text for element type APPLOG with id 753236628580682202580947808008292506 - Text type: ALCMNT number of text lines = 1 - REPLACE
    Deleted old text
    Recreating KCS_TENDERS Table API/Trigger Logic - Event: Post-Delete, Call CAPI.
    Write Text for element type APPLOG with id 753236628580767205177639461622139034 - Text type: ALCODE number of text lines = 282 - REPLACE
    Deleted old text
    Write Text for element type APPLOG with id 753236628580767205177639461622139034 - Text type: ALCMNT number of text lines = 1 - REPLACE
    Deleted old text
    HSU_CAPF.create_or_find_capi_pack
    hsu_capi.find_plm (kcs_tnr_capi, 692754610572409851363604771392473242, CAPI).
    capi package found in the context folder
    BLPLM.UPD
    FREE_FORMAT_TEXT_FLAG......... = Y
    IMPLEMENTATION_NAME........... = kcs_tnr_capi
    PLSQL_MODULE_TYPE............. = PACKAGE
    SCOPE......................... = PUBLIC
    COMPLETION_STATUS............. = COMPLETED
    NAME.......................... = kcs_tnr_capi
    PURPOSE....................... = Custom API package for implementing Business Rules and supporting TAPI
    Recreated Package KCS/ KCS_TNR_CAPI, preserving only the Revision History.
    HSU_CAPF.add_tags_er_av
    bltext.get_lines_from_repository, p_text_type=CDINOT
    bltext.get_line_containing
    bltext.get_line_containing
    bltext.get_lines_from_repository, p_text_type=CDINOT
    bltext.get_line_containing
    bltext.get_line_containing
    bltext.get_lines_from_repository, p_text_type=CDINOT
    bltext.get_line_containing
    bltext.get_line_containing
    bltext.get_lines_from_repository, p_text_type=CDINOT
    bltext.get_line_containing
    bltext.get_line_containing
    HSU_CAPF.create_specification
    HSU_CAPF.create_c_tabalias
    HSU_CAPF.create_c_tabalias_all
    HSU_CAPF.create_aggregate_value
    HSU_CAPF.create_aggregate_value
    HSU_CAPF.create_aggregate_value
    Activity aborted with ORACLE internal errors.
    -6502 ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    What can I do about it???
    Thanks in advance.
    Menno Hoogsteen

    Working on the same project as Menno, I had the time to look into the problem.
    The problem is caused by the creation of the capi-function agregate_char_value in the packages hsu_capf. While creating this function the following code is executed:
    add(' -- allowable values:');
    add(' -- '||l_col_name_list);
    This last statement causes the problem because this table is very big. L_col_name_list contains 2391 characters wich is 393 characters to long. So i changed this code into:
    add(' -- allowable values:');
    add(' -- '||substr(l_col_name_list,1,1990));
    add(' -- '||substr(l_col_name_list,1990));
    and everything works fine. Perhaps something for a patch?
    Kind regards,
    Ruben Spekle

  • Numeric or value error when Attribute Usage Retrieve is set to Yes

    When using the Business Rule Design Transformer in Headstart Utilities a Numeric or value error occurs when one of the attribute usages of an entity has the operation Retrieve set to Yes.

    Sandra,
    Thanks for your quick response!
    The following debug detail info is logged:
    -- START --
    Transformation of Business Rule BR_3ARE1007_CEV.
    Determine rule type for BR_3ARE1007_CEV.
    BR_3ARE1007_CEV is change event with DML.
    Stage 1: Populate in memory table with all triggering tables and columns.
    Triggering event CREATE ARTICLE found.
    Checking attribute usages for business rule 724784 and entity 720389
    Attribute: PRIORITY
    Column is:
    Checking relationship usages for business rule 724784 and entity 720389
    Stage 2: loop over all tables found and create BRDD.
    ...Create BRDD for table XPS_ARTICLES.
    hsu_capi.find_plm
    Business Rule Design Definition for BR_3ARE1007_CEV
    Activity aborted with ORACLE internal errors.
    -6502 ORA-06502: PL/SQL: numeric or value error
    -- END --
    If you want to reproduce the problem use the following data:
    EVENT:
    Name = CREATE test
    Type = Change
    On condition = CREATE
    Entity = test
    BUSINESS FUNCTION <BR_..>
    Triggered by = Above event
    Using entities = test
    Using attributes = test_att
    Retrieve? = Yes
    This should create the error...

  • Numeric or value error when submitting form

    I have a form based of a stored procedure. The form has about 20 fields on it. For some reason the form only allows data entry on only about 10 of them. If I put data in any of the other 10, I get: "An unexpected error occurred: ORA-06502: PL/SQL: numeric or value error (WWV-16016)"
    I have looked everywhere to see what's going on. I checked the procedure to make sure its parameters are good. It takes takes all VARCHAR2's, so thats OK. I checked the fields in the form editor for validation, and none are being validated, so thats OK. I made sure all the fields are updatable and they are. I even checked the table to make sure that the data can go into the fields, even though I know that the error returned there would be through the procedure, not Portal. I am stumped. What am I missing?
    Rich

    Follow Up: While troubleshooting this, I filled in all the fields with one character each and the form submitted. I added characters little by little to each field until I got the error. It seems like Portal has a problem when I pass X amount of characters from a form. I say "Portal" because I thought this might be an OS parameter, but I get the same error in both Win2000 and Solaris.
    Any ideas where this setting is? Or how to change it?
    Rich

  • Unexpected "numeric or value error" when using CAST COLLECT

    I am having trouble with string aggregation using CAST / COLLECT and the to_string function described on various sites around the net including AskTom and http://www.oracle-developer.net/display.php?id=306.
    I am getting "numeric or value error: character string buffer too small" but cannot see which limit I am exceeding.
    I have put together a simple test case to highlight this problem which I have pasted below.
    The error does not seem to be coming from the to_string function itself (else I expect we would see "TO_STRING raised an exception" in the returned error message).
    Any thoughts much appreciated,
    Thanks, Andy
    SQL*Plus: Release 10.1.0.4.2 - Production on Tue Jun 15 09:56:53 2010
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> CREATE TYPE table_of_varchar2 AS TABLE OF VARCHAR2(32000);
      2  /
    Type created.
    SQL> CREATE OR REPLACE FUNCTION to_string (
      2              nt_in IN   table_of_varchar2
      3      ,       delimiter_in    IN VARCHAR2 DEFAULT ',')
      4      RETURN VARCHAR2
      5      IS
      6          l_idx   PLS_INTEGER;
      7          l_str   VARCHAR2(32767);
      8          l_dlm   VARCHAR2(10);
      9
    10      BEGIN
    11
    12          l_idx := nt_in.FIRST;
    13          WHILE l_idx IS NOT NULL LOOP
    14              l_str := l_str || l_dlm || nt_in(l_idx);
    15              l_dlm := delimiter_in;
    16              l_idx := nt_in.NEXT(l_idx);
    17          END LOOP;
    18
    19          RETURN l_str;
    20      EXCEPTION
    21          WHEN OTHERS THEN
    22              raise_application_error(-20000
    23                                  ,   'TO_STRING raised an exception. '||
    24                                      'The reported error was: '||sqlerrm);
    25     END to_string;
    26  /
    Function created.
    SQL> DECLARE
      2      l_longstring varchar2(32000);
      3  BEGIN
      4      SELECT  to_string(CAST( COLLECT( substr(object_name,1,1) ) AS table_of_varchar2 ) )
      5      INTO    l_longstring
      6      FROM    all_objects
      7      WHERE   rownum < 2001;
      8
      9  EXCEPTION
    10      WHEN OTHERS THEN
    11          raise_application_error(-20001
    12                ,   'The anonymous block raised an exception: '||
    13                    sqlerrm||'. '||DBMS_UTILITY.format_error_backtrace);
    14  END;
    15  /
    PL/SQL procedure successfully completed.
    SQL> DECLARE
      2      l_longstring varchar2(32000);
      3  BEGIN
      4      SELECT  to_string(CAST( COLLECT( substr(object_name,1,1) ) AS table_of_varchar2 ) )
      5      INTO    l_longstring
      6      FROM    all_objects
      7      WHERE   rownum < 2002;
      8
      9  EXCEPTION
    10      WHEN OTHERS THEN
    11          raise_application_error(-20001
    12                ,   'The anonymous block raised an exception: '||
    13                    sqlerrm||'. '||DBMS_UTILITY.format_error_backtrace);
    14  END;
    15  /
    DECLARE
    ERROR at line 1:
    ORA-20001: The anonymous block raised an exception: ORA-06502: PL/SQL: numeric
    or value error: character string buffer too small
    ORA-06512: at line 1. ORA-06512: at line 1
    ORA-06512: at line 4
    ORA-06512: at line 11

    Aha, of course.
    I was aware of the 4000 character SQL VARCHAR2 limit but didn't think it would apply here since we are calling a PLSQL function and trying to assign the value it returns into a PLSQL varchar2(32000) variable. BUT... we are of course doing this via a SELECT statement and hence via SQL. Therefore the SQL 4000 limit applies.
    With this in mind, I changed the RETURN type of the to_string function to be CLOB. This solved the problem.
    Thank you,
    Andy

  • Numeric or value error when doing to_number

    I have a source file where I have field1 character field with value say -5757.31. I need to map this feild to target table which is numeric field.
    When I do the to_number of field1, do I need to specify the format?
    When I am just doing to_number without any format, iam getting numeric or value error.
    Thanks

    Hi,
    the implicit conversion depends on the nls parameters of your session. To be on the save side, define them explicitly: to_number('-5757.31', '9999999D99', 'NLS_NUMERIC_CHARACTERS = ''.,''')
    Regards,
    Carsten.

  • PL/SQL: numeric or value error when extracting xml file from tables.

    create or replace FUNCTION proc_generate_xml_from_tables(p_directory in varchar2,
    p_areaname in varchar2)
    return integer
    AS
    qryCtx DBMS_XMLGEN.ctxHandle;
    result CLOB;
    clob_len number := 0;
    file_ptr utl_file.file_type;
    oTableName restore_metadata.table_name%type;
    o_filename restore_metadata.table_name%type;
    cursor metadata_restore_list(p_area varchar2) is
    select * from restore_metadata
    where instr(area_name,upper(p_Area)) > 0
    order by degree;
    vtabcount number := 0;
    sql_stmt varchar2(300);
    BEGIN
    dbms_lob.createtemporary(result, true,dbms_lob.session);
    oTableName := upper('MAINT_ACTVS');
    vtabcount := 0;
    sql_stmt := 'select count(*) from ' || oTableName;
    execute immediate sql_stmt into vtabcount;
    o_filename := oTableName || '.xml';
    file_ptr := utl_file.fopen(p_directory,o_filename,'W');
    dbms_output.put_line(oTableName);
    qryCtx := dbms_xmlgen.newcontext('select * from ' || oTableName);
    result := dbms_xmlgen.getxml(qryCtx);
    --dbms_output.put_line(result);
    clob_len := dbms_lob.getlength(result);
    dbms_output.put_line('Length of the clob file' || clob_len);
    utl_file.put_line(file_ptr,result);
    utl_file.fclose(file_ptr);
    dbms_xmlgen.closeContext(qryCtx);
    dbms_lob.freetemporary(result);
    return 0;
    EXCEPTION
    when others THEN
    utl_file.fclose(file_ptr);
    dbms_output.put_line('Table Name into Consideration :- ' || oTableName);
    dbms_output.put_line('Oracle Error Number:- ' || sqlcode || ' Ora Message :- ' || sqlerrm);
    return -1;
    END;
    I am getting the following errors..
    SQL> @temp1.sql
    MAINT_ACTVS
    Length of the clob file34245
    Table Name into Consideration :- MAINT_ACTVS
    Oracle Error Number:- -6502 Ora Message :- ORA-06502: PL/SQL: numeric or value error
    What am I doing wrong here?
    DB version is Oracle 10g
    Edited by: userAtoZ on May 6, 2011 2:55 PM

    >
    My problem lies that my xml file is having data more than 32 K.
    When I write it 32K at a time then it work fine.
    >
    Then break it down.
    l_pos number;
    WHILE (l_pos <= clob_len)
      LOOP
        UTL_FILE.PUT_LINE (file_ptr,DBMS_LOB.SUBSTR ( RESULT , 32767,l_pos));
        l_pos := l_pos + 32767;
      END LOOP;
    utl_file.fclose(file_ptr);
     

  • ExternamSystemId identical values error when InsertOrUpdate Campaign Object

    Hello,
    My requirement is want to insert or update the values in Campaign object to linking with List object(its Child object of campaign)
    I'm using CRMOD webservice InsertorUpdate method using proxy class.
    Whenever i try to import the same data with different/same child object. Its throws the following error
    For instance of Integration Component 'Campaign', using user key '[External System Id] = "1-7QH3N"', a record with identical values already exists in the Siebel database.
    Please ensure that the field values in the input message are unique.(SBL-EAI-04381)
    I'm getting this error when i was pass the same value for ExternamSystemId and Campain's SourceCode fields
    eg: (ExternamSystemId = 1-7QH3N and SourceCode = 1-7QH3N )
    is ExternamSystemId and SourceCode values should be different in Campaign object ??? if i pass different values or pass just 2 or 3 records per request then i didn't get any error. if i pass 20 records per request then it throw the above error.
    Please give some advice for this issue
    Thansk in advance
    Best Wishes
    Sathis Kumar P

    Hi All,
    Below is my SOAP Message
    <SOAP-ENV:Envelope>
    <SOAP-ENV:Body>
    <SOAPSDK1:AccountWS_AccountInsertOrUpdate_Input>
    <SOAPSDK2:ListOfAccount>
    <Account>
    <ParentAccountExternalSystemId>990038131</ParentAccountExternalSystemId>
    <stLEID>11207733</stLEID>
    <stSubProfileID>2</stSubProfileID>
    <plGroup_Status>Subsidiary</plGroup_Status>
    *<ExternalSystemId>11207733/2</ExternalSystemId>*
    </Account>
    </SOAPSDK2:ListOfAccount>
    </SOAPSDK1:AccountWS_AccountInsertOrUpdate_Input>
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    Here I'm calling Upsert and a Client is already found with this Exact ExternalSystemId.
    I am not updating any Name or location It should go ahead and update the Account based on the ExternalSystemId field is my understanding correct ?
    I wonder why am I getting
    *'For instance of Integration Component 'Account', using user key '[External System Id] = "11207733/2"', a record with identical values already exists in the Siebel database.'* in the response..
    Any reasoning .....

  • Constraint error when merging workspace

    Hi,
    We have a problem with Workspace Manager. I believe there are duplicate rows in the underlying OWM tables that are causing lots of problems. Firstly, we're trying to merge a child with it's parent and we get constraint violation on the xx_AUX table. Secondly, when trying to do a difference between the workspaces, we get a "multiple rows returned from subquery" error when accessing the xx_DIFF table. These errors seem to indicate some duplication, but I have no idea how it got there.
    We had a similar problem a couple years back, and there was a post in this forum at that time.
    Any suggestions? 1) how to fix this problem? 2) how to keep it from happening again?

    Ben,
    We have not been able to reproduce the problem on a dev system, so no help there. I guessed that you would need the metadata, but that is not an option right now (we need a quick solution).
    Newly created children of LIVE merge just fine, so I'm writing a program to duplicate the differences in the original child into a new child. I will then merge the new child and remove all the children workspaces (leaving only LIVE).
    Hopefully, this will clear up all our problems. Next, I will have to keep a very close eye on the state of the workspaces to see if this ever happens again. With luck, I will then be able to replicate the conditions and let you know.
    Thanks for your reply. I will post again if I ever determine how this problem occurred.
    Edited by: user9179477 on Feb 24, 2010 7:36 AM

  • Unknown error when merging files

    I have encountered an unknown error when trying to combine files into a single pdf.  It specifically states: "No PDF file was created because Acrobat encountered an unknown error."  This is unusual as just yesterday I was able to perform this task with ease - and being able to do this task will save me hours of work time.  What has been done between yesterday and today - I updated my windows 7 and maybe even updated Adobe  Acrobat.9 Pro - I also deleted some malware that was unnecessary for my computer: Qwiklinx; yontoo; ... I did a restore to when this action worked but to no avail.
    Thank you for your thoughts on this matter.

    Hi Kylie,
    Which version of Premiere Pro are you using? Can we get more details about this case? FAQ: What information should I provide when asking a question on this forum?
    Thanks,
    Kevin

  • Authorization Error when running queries built on IP Aggregation Levels

    Hi,
    Did anyone encountered this kind of issue.
    We are in NW04s SP 9.
    When running a query built on Integrated Planning aggregation levels getting authorization error
    " Do not have authorization Component !! ARMMGASL ".  (ARMMGASL is the name of Multi Provider)
    Queries built directly on Multi Provider "ARMMGASL" works fine.
    Security trace doesn't show any failures
    Any help or info on this highly appreciated.
    Thanks,
    Suresh Yalavarthi

    Hi Frank,
    We have the same issue. What did you do to solve it?
    The suggestions you received are already investigated/done, but don't provide a solution.
    regards, André

Maybe you are looking for

  • How to call A Seesion Bean from a standalone java program

    i want to call a session bean vis a standalone java program on the same machine. i am having some problem with CORBA. i really do not understand what is going on. help me please. Thank you

  • Getting POP3 Accounts to Connect to Native Playbook Email.

    My e-mail accounts which are hosted at namespro.ca will not connect with the Playbook Native e-mail client.   I have setup my Gmail account and it works fine.   The Namespro accounts need port 110 no SSL for incoming and port 2525 no SSL for outgoing

  • Perform XSLT on XML as data source?

    Crystal Reports 2008 (12.0.0.549) can use XSLT when exporting an XML document. Can the XML driver, however, be configured to perform a XSLT on an XML document that will result in a document that will be used as a data source?  When I attempted to do

  • .mts files in FCP 5

    I'm still working of Final Cut Pro 5.1.4. I might be taking on a new project that works with .mts files. Can FCP 5 handle that? Is there a free converter available? (I don't have Toast) Thanks!!

  • Is Fireworks buggy or is this just the way it usually is?...

    Im new to Fireworks CS4 so I dont know what to expect. But: Is there supposed to be nothing in the behavior pallette? It's blank. For the 25 years I have been using every other Adobe app there is, usually the palettes I want to use have something ins