PL/SQL numeric error:character buffer string too small

I am always getting this error message when I first try to run my package.
But this always happen on the first time. When I then try to run it for second time, no problem.
So it can't be due to syntax or logic.
Could it be due to package state?

How are they being initialised? Is it just a straight assignment?
Can you copy + paste the exact error you are getting...
SQL> CREATE OR REPLACE PACKAGE pkg_Test
  2  IS
3 pc_TooBig CONSTANT VARCHAR2(1) := 'AB';
  4
  5     PROCEDURE p_test;
  6  END;
  7  /
Package created.
SQL> CREATE OR REPLACE PACKAGE BODY pkg_Test
  2  IS
  3
  4     PROCEDURE p_test
  5     IS
  6
  7     BEGIN
  8
  9             dbms_output.put_line('Test');
10
11     END;
12  END;
13  /
Package body created.
SQL> exec pkg_test.p_test;
BEGIN pkg_test.p_test; END;
ERROR at line 1:
ORA-06502: PL/SQL: numeric or value error: character string buffer too small
ORA-06512: at "BULK1.PKG_TEST", line 3
ORA-06512: at line 1
SQL> exec pkg_test.p_test;
Test
PL/SQL procedure successfully completed.As it probably tells you exactly where the problem is arrising.
David

Similar Messages

  • SQL server error log size is too big to handle

    I am working with a large database on windows sql server 2008 R2 such that it has to run continuously 24x7 because of that it is not possible
    to restart the server time to time. It is kind of monitoring system for big machines. Because of this SQL server error logs are growing too big even some times up to 60-70 GB at a limited sized hard drive. I can't delete them time to time manually. Can someone
    please suggest a way using which I can stop creation of such error logs or recycle them after sometime. Most of the errors are of this kind --
    Setting database option RECOVERY to simple for database db_name
    P.S.- I have read limiting error logs to 6 etc. But that didn't help. It will be best if you could suggest some method to disable these logs.

    Hi Mohit11,
    According to your description, your SQL Server error logs are growing too big to handle at a limited sized hard drive, and you want to know how to stop the generation of such error logs or recycle them after sometime automatically without restarting the
    SQL Server, right?
    As others mentioned above, we may not be able to disable SQL server error log generation. However we can recycle the error logs automatically by running the
    sp_cycle_errorlog on a fixed schedule (i.e. every two weeks) using SQL agent jobs so that the error logs will be recycled
    automatically without restarting SQL Server.
    And it is also very important for us to keep the error log files more readable. So we can increase the number of error logs a little more and run the sp_cycle_errorlog more frequently (i.e. daily), then each file will in a smaller size to be more readable
    and we can recycle the log files automatically.
    In addition, in order to avoid the size of all the log files growing into a too big size unexpected (sometime it may happen), we can run the following query in SQL Agent job to automatically delete all the old log files when the size of log files is larger
    than some value we want to keep (i.e. 30GB):
    --create a tample table to gather the information of error log files
    CREATE TABLE #ErrorLog
    Archieve INT,
    Dt DATETIME,
    FileSize INT
    GO
    INSERT INTO #ErrorLog
    EXEC xp_enumerrorlogs
    GO
    --delete all the old log files if the size of all the log files is larger than 30GB
    DECLARE @i int = 1;
    DECLARE @Log_number int;
    DECLARE @Log_Max_Size int = 30*1024; --here is the max size (M) of all the error log files we want to keep, change the value according to your requirement
    DECLARE @SQLSTR VARCHAR(1000);
    SET @Log_number = (SELECT COUNT(*) FROM #ErrorLog);
    IF (SELECT COUNT(FileSize/1024/1024) FROM #ErrorLog) >= @Log_Max_Size
    BEGIN
    WHILE @i <= @Log_number
    BEGIN
    SET @SQLSTR = 'DEL C:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\Log\ERRORLOG.' + CONVERT(VARCHAR,@i);
    EXEC xp_cmdshell @SQLSTR;
    SET @i =@i + 1;
    END
    END
    DROP TABLE #ErrorLog
    For more information about How to manage the SQL Server error log, please refer to the following article:
    http://support.microsoft.com/kb/2199578
    If you have any question, please feel free to let me know.
    Regards,
    Jerry Li

  • Vista & Outlook 2007: Sync with second XP & Outlook 2003 - The passed buffer is too small for the reply data

    Dear Community,
    I'm synchronising my T3 with two PCs. One with Vista & Outlook 2007 and the other with XP & Outlook 2003. Both with the latest conduit & Hotsync Manager versions installed for each OS based on the availability on the Palm Website. 
    My problem is that when I synchronise the T3 with either PC and then try to sync it with the other I'm receiving the following error message for the Calendar:
    Outlook Calendar
    The passed buffer is too small for the reply data.
    OLERR:0D-0008
    OLERR:0D-0004
    OLERR:0D-0001
    - Slow Sync
    Outlook Calendar synchronization failed
     The second time the sync is successful but takes a long time and the actual problem is that it creates duplicates for records previously changed on either PC - but with a sync in between those changes, i.e. no conflict in the sense that the same record was changed in both environments since the last sync. I have configured the conflict handling to establish a hierarchy PC1-T3-PC2 but try to avoid them by synchronising as often as possible.
    Has anyone come across that problem or any ideas? Can you somehow adjust the buffer size for the sync? I have been using Lotus Organiser & then the various Outlook versions for a number of years.
    Thank you
    Rainer
    Post relates to: Tungsten T3
    Post relates to: Tungsten T3

    As they say on TV, "Doh"!!!
    I figured out the problem. I started the Sync tool, selected "Settings", then "Mcrosoft Outlook" tab and then "Select Folders" button. I browsed to the proper folders in Outlook (Calendar, Tasks, etc). Select OK enough times and retried the sync.
    It worked.

  • Error "Screen output are too small" when looping through internal table!

    Hello All:
         I have a huge internal table with some 79000 records and while looping through them and doing some other processing inside the loop, I am getting an error "Screen output are too small"! Could someone please help mw how to fix this issue? I can send the all the code if anyone wants to look at the code. Thanks in advance and rewards are assured.
    Mithun

    Hi,
    Check this
    new-page print off.
    CALL FUNCTION 'GET_PRINT_PARAMETERS'
    EXPORTING
    destination = v_dest
    IMPORTING
    out_parameters = params
    valid = valid.
    * params-linct = '58'.
    * params-linsz = '170'.
    * params-paart = 'X_58_170'.
    * params-prtxt = v_spool_text.
    * params-primm = 'X'.
    * params-prrel = 'X'.
    NEW-PAGE PRINT ON PARAMETERS params NO DIALOG.
    After the call fm GET_PRINT_PARAMETERS params internal table contains all the values for generating spool.
    aRs

  • Getting error "Screen output area too small"! Please help!

    I am getting an error "Screen output area too small" when looping through some huge internal table and sending to spool "on change of some value" in my internal table. Could someone please help me in correcting this? Rewards assured.
    Thanks.
    Mithun

    Check the simple program and have tested ,it works great( IN ECC 6 Version)
    REPORT  ztestspool.
    DATA : arc_params TYPE arc_params,
    v_print_parms TYPE pri_params,
    w_valid TYPE char1,
    w_valid_spool TYPE char1.
    CONSTANTS : lc_paart LIKE sy-paart VALUE 'X_65_132', " Paper Format
    lc_locl TYPE sypdest VALUE 'LOCL', " Destination
    c_x TYPE char1 VALUE 'X'.
    Setup the Print Parmaters
    CALL FUNCTION 'GET_PRINT_PARAMETERS'
      EXPORTING
        authority              = space
        immediately            = space
        new_list_id            = c_x
        no_dialog              = c_x
        user                   = sy-uname
      IMPORTING
        out_parameters         = v_print_parms
      EXCEPTIONS
        archive_info_not_found = 1
        invalid_print_params   = 2
        invalid_archive_params = 3
        OTHERS                 = 4.
    IF sy-subrc NE 0.
      CLEAR : v_print_parms.
    ENDIF.
    The printer destination has to be set up
    IF v_print_parms-pdest = space.
      v_print_parms-pdest = lc_locl.
    ENDIF.
    Explicitly set line width, and output format so that
    the PDF conversion comes out OK
    *v_print_parms-linsz = c_linsz.
    v_print_parms-paart = lc_paart.
    NEW-PAGE PRINT ON PARAMETERS v_print_parms NO DIALOG.
    *PERFORM display_output.
    write :/ 'This is test for spool generation'.
    NEW-PAGE PRINT OFF.
    Thanks
    Seshu

  • We are exporting data to the SAP Business one. Error: "The field is too small to accept the data you attempt to add. try inserting or pasting less data"

    Hi,
    I have exported the data from two sources, MS-Excel and SAP Business One to Sap Business One (8.81). While exporting the data, I got the error "The field is too small to accept the data you attempt to add. try inserting or pasting less data" for the first time, Immediately when I run it again, it shows export successfully completed, but nothing is changed in the SAP Business One. Could you please provide the solution as early as possible?
    Thanks & Regards,
    Chaitanya.B

    ok
    i solve the problem.i rezise the colomn size
    thanks

  • Error: ORA-06502: PL/SQL: numeric or value error: host bind array too small

    Hello,
    I am getting this error when i am trying to execute a PL/SQL script using an Oracle API
    We are using Oracle 10g release 2 database. I am getting this error only on some instances. This script is running fine in Development instances.
    Script:
    SET VERIFY OFF;
    SET serveroutput on size 100000;
    SET linesize 300;
    EXEC FND_STATS.GATHER_COLUMN_STATS ('AR', 'HZ_LOCATIONS', 'COUNTRY');
    SELECT
    hl.location_id,hl.state, hl.country,
    hcasa.org_id
    FROM hz_cust_site_uses_all hcsua,
    hz_cust_acct_sites_all hcasa,
    hz_party_sites hps, apps.hz_locations hl,
    hz_parties hp,
    hz_cust_accounts hca
    WHERE hcsua.cust_acct_site_id = hcasa.cust_acct_site_id
    AND hcasa.party_site_id = hps.party_site_id
    AND hps.location_id = hl.location_id
    AND hp.party_id = hps.party_id
    AND hca.cust_account_id = hcasa.cust_account_id
    AND hca.party_id = hp.party_id
    AND hl.country NOT IN ('US','CA')
    AND hps.party_site_number NOT LIKE 'M%';
    --PROMPT Dropping Table pmr13286_temptable
    DROP TABLE pmr13286_temptable;
    CREATE TABLE pmr13286_temptable AS (SELECT
    hp.attribute_category , hl.address_lines_phonetic,
    hps.party_site_number,hca.cust_account_id,
    hcsua.site_use_code, hcsua.primary_flag, hcsua.status,
    hl.address1, hl.address2, hl.address3, hl.address4,
    hl.city, hl.state, hl.postal_code, hl.country,
    hl.county, hl.province, hcasa.org_id,
    hl.creation_date
    FROM hz_cust_site_uses_all hcsua,
    hz_cust_acct_sites_all hcasa,
    hz_party_sites hps, apps.hz_locations hl,
    hz_parties hp,
    hz_cust_accounts hca
    WHERE hcsua.cust_acct_site_id = hcasa.cust_acct_site_id
    AND hcasa.party_site_id = hps.party_site_id
    AND hps.location_id = hl.location_id
    AND hp.party_id = hps.party_id
    AND hca.cust_account_id = hcasa.cust_account_id
    AND hca.party_id = hp.party_id
    AND hl.country NOT IN ('US','CA')
    AND hps.party_site_number NOT LIKE 'M%');
    DECLARE
    l_location_rec hz_location_v2pub.location_rec_type;
    l_object_version_number hz_locations.object_version_number%TYPE;
    p_status_code NUMBER;
    l_api_status VARCHAR2 (2000);
    l_msg_count NUMBER (15);
    l_msg_data VARCHAR2 (2000);
    v_total_count NUMBER (15);
    v_prvi_count NUMBER (15);
    v_countr_count NUMBER (15);
    v_null_count NUMBER (15);
    v_rem_recs          NUMBER (15);
    v_status_code VARCHAR2 (2000);
    l_sql_errmsg VARCHAR2 (500);
    CURSOR c_cust_addr
    IS
    SELECT
    hl.*
    FROM hz_cust_site_uses_all hcsua,
    hz_cust_acct_sites_all hcasa,
    hz_party_sites hps, apps.hz_locations hl,
    hz_parties hp,
    hz_cust_accounts hca
    WHERE hcsua.cust_acct_site_id = hcasa.cust_acct_site_id
    AND hcasa.party_site_id = hps.party_site_id
    AND hps.location_id = hl.location_id
    AND hp.party_id = hps.party_id
    AND hca.cust_account_id = hcasa.cust_account_id
    AND hca.party_id = hp.party_id
    AND hl.country NOT IN ('US','CA')
    AND hps.party_site_number NOT LIKE 'M%';
    BEGIN
    v_total_count := 0;
    v_prvi_count := 0;
    v_countr_count := 0;
    v_null_count := 0;
    dbms_output.put_line('Total Count'||v_total_count );
    dbms_output.put_line('PR/VI Conversion Count'||v_prvi_count );
    dbms_output.put_line('PR/VI to US Conversion Count'||v_countr_count );
    dbms_output.put_line('Non US/CA State Null Count'||v_null_count );
    FOR i IN c_cust_addr
    LOOP
    l_location_rec := NULL;
    v_total_count := v_total_count + 1;
    l_location_rec.location_id := i.location_id;
    l_location_rec.state := i.state;
    l_location_rec.country := i.country;
    dbms_output.put_line('Location_id '||l_location_rec.location_id||' '||'State '||l_location_rec.state||' '||'Country '||l_location_rec.country);
    BEGIN
    SELECT hl.object_version_number
    INTO l_object_version_number
    FROM hz_locations hl
    WHERE hl.location_id = l_location_rec.location_id;
    EXCEPTION
    WHEN NO_DATA_FOUND
    THEN
    raise_application_error (
    -20059,
    'object_version_number not found for location = '
    || TO_CHAR (l_location_rec.location_id)
    END;
    Update 1 - Update Addresses of 3 records that have wrong country names
    BEGIN
    IF (l_location_rec.location_id IN (1436720,119456,604649)) THEN
    dbms_output.put_line(' 3 records Location_id '||l_location_rec.location_id);
    IF ( l_location_rec.location_id = 1436720) THEN
    l_location_rec.state := 'OH';
    l_location_rec.country := 'US';
    ELSIF ( l_location_rec.location_id = 119456) THEN
    l_location_rec.country := 'US';
    ELSIF ( l_location_rec.location_id = 604649) THEN
         l_location_rec.country := 'PK';
    END IF;
    hz_location_v2pub.update_location (
    fnd_api.g_true,
    l_location_rec,
    l_object_version_number,
    l_api_status,
    l_msg_count,
    l_msg_data
         IF l_api_status <> fnd_api.g_ret_sts_success
    THEN
    dbms_output.put_line(' Error In API with status of '||l_api_status);
    IF l_msg_count > 1
    THEN
    FOR s IN 1 .. l_msg_count
    LOOP
    l_sql_errmsg :=
    SUBSTR (
    RTRIM (l_sql_errmsg)
    || ' , '
    || RTRIM (
    fnd_msg_pub.get (p_encoded => fnd_api.g_false)
    1,
    500
    END LOOP;
    ELSE
    l_sql_errmsg := SUBSTR (l_msg_data, 1, 500);
    END IF;
    dbms_output.put_line(' Error Message '||l_sql_errmsg);
    ROLLBACK;
    RETURN;
    END IF;
    END IF;
    END;
    Update 2 - Update state to 'VI','PR' where country is in 'VI','PR'
    BEGIN
    IF (i.country = 'PR' AND (i.state <> 'PR' OR i.state IS NULL))
    OR (i.country = 'VI' AND (i.state <> 'VI'OR i.state IS NULL)) THEN
    v_prvi_count := v_prvi_count + 1;
    dbms_output.put_line(' State to PR/VI Location_id '||l_location_rec.location_id);
    SELECT DECODE (i.country,'PR','PR','VI', 'VI') INTO l_location_rec.state
    FROM apps.hz_locations WHERE
    location_id = l_location_rec.location_id;
    hz_location_v2pub.update_location (
    fnd_api.g_true,
    l_location_rec,
    l_object_version_number,
    l_api_status,
    l_msg_count,
    l_msg_data
              IF l_api_status <> fnd_api.g_ret_sts_success
              THEN
              dbms_output.put_line(' Error In API with status of '||l_api_status);
              IF l_msg_count > 1
              THEN
              FOR s IN 1 .. l_msg_count
              LOOP
              l_sql_errmsg :=
              SUBSTR (
              RTRIM (l_sql_errmsg)
              || ' , '
              || RTRIM (
              fnd_msg_pub.get (p_encoded => fnd_api.g_false)
              1,
              500
              END LOOP;
              ELSE
              l_sql_errmsg := SUBSTR (l_msg_data, 1, 500);
              END IF;
              dbms_output.put_line(' Error Message '||l_sql_errmsg);
              ROLLBACK;
              RETURN;
    END IF;
                   dbms_output.put_line('Location_id '||l_location_rec.location_id||' '||'State '||l_location_rec.state||' '||'Country '||l_location_rec.country);
    END IF;
    END;
    Update 3 - Update Country code to 'US' where state code is either 'PR' or 'VI'
    BEGIN
    IF l_location_rec.state = 'PR' OR l_location_rec.state = 'VI'
    THEN l_location_rec.country := 'US';
    v_countr_count := v_countr_count + 1;
    dbms_output.put_line('PR/VI country to US Location_id '||l_location_rec.location_id);
    hz_location_v2pub.update_location (
    fnd_api.g_true,
    l_location_rec,
    l_object_version_number,
    l_api_status,
    l_msg_count,
    l_msg_data
    IF l_api_status <> fnd_api.g_ret_sts_success
              THEN
              dbms_output.put_line(' Error In API with status of '||l_api_status);
              IF l_msg_count > 1
              THEN
              FOR s IN 1 .. l_msg_count
              LOOP
              l_sql_errmsg :=
              SUBSTR (
              RTRIM (l_sql_errmsg)
              || ' , '
              || RTRIM (
              fnd_msg_pub.get (p_encoded => fnd_api.g_false)
              1,
              500
              END LOOP;
              ELSE
              l_sql_errmsg := SUBSTR (l_msg_data, 1, 500);
              END IF;
              dbms_output.put_line(' Error Message '||l_sql_errmsg);
              ROLLBACK;
              RETURN;
    END IF;
    dbms_output.put_line('Location_id '||l_location_rec.location_id||' '||'State '||l_location_rec.state||' '||'Country '||l_location_rec.country);
    END IF;
    END;
    Update 4 - Update state code to NULL where state code is NOT NULL and country code is not in US or CA
    IF l_location_rec.country NOT IN ('US','CA') AND l_location_rec.state IS NOT null
    THEN l_location_rec.state := FND_API.G_NULL_CHAR;
    v_null_count := v_null_count + 1;
    dbms_output.put_line('Non US/CA to Null Location_id '||l_location_rec.location_id);
    hz_location_v2pub.update_location (
    fnd_api.g_true,
    l_location_rec,
    l_object_version_number,
    l_api_status,
    l_msg_count,
    l_msg_data
    IF l_api_status <> fnd_api.g_ret_sts_success
              THEN
              dbms_output.put_line(' Error In API with status of '||l_api_status);
              IF l_msg_count > 1
              THEN
              FOR s IN 1 .. l_msg_count
              LOOP
              l_sql_errmsg :=
              SUBSTR (
              RTRIM (l_sql_errmsg)
              || ' , '
              || RTRIM (
              fnd_msg_pub.get (p_encoded => fnd_api.g_false)
              1,
              500
              END LOOP;
              ELSE
              l_sql_errmsg := SUBSTR (l_msg_data, 1, 500);
              END IF;
              dbms_output.put_line(' Error Message '||l_sql_errmsg);
              ROLLBACK;
              RETURN;
    END IF;
    dbms_output.put_line('Location_id '||l_location_rec.location_id||' '||'State '||l_location_rec.state||' '||'Country '||l_location_rec.country);
    END IF;
    END LOOP;
    v_countr_count := v_countr_count +2;
    dbms_output.put_line('Total Count'||v_total_count );
    dbms_output.put_line('PR/VI Conversion Count'||v_prvi_count );
    dbms_output.put_line('PR/VI to US Conversion Count'||v_countr_count );
    dbms_output.put_line('Non US/CA State Null Count'||v_null_count );
         BEGIN
         SELECT
         count(*) into v_rem_recs
         FROM hz_cust_site_uses_all hcsua,
         hz_cust_acct_sites_all hcasa,
         hz_party_sites hps, apps.hz_locations hl,
         hz_parties hp,
         hz_cust_accounts hca
         WHERE hcsua.cust_acct_site_id = hcasa.cust_acct_site_id
         AND hcasa.party_site_id = hps.party_site_id
         AND hps.location_id = hl.location_id
         AND hp.party_id = hps.party_id
         AND hca.cust_account_id = hcasa.cust_account_id
         AND hca.party_id = hp.party_id
         AND hl.country NOT IN ('US','CA')
         AND hps.party_site_number NOT LIKE 'M%';
    dbms_output.put_line('remaining count '||v_rem_recs );
         END;
    COMMIT;
         EXCEPTION
         WHEN OTHERS THEN     
         dbms_output.put_line('Error in Program: ' ||' Error Message ' || SQLERRM);
         ROLLBACK;
    END;
    SELECT
    hl.location_id,hl.state, hl.country,
    hcasa.org_id
    FROM hz_cust_site_uses_all hcsua,
    hz_cust_acct_sites_all hcasa,
    hz_party_sites hps, apps.hz_locations hl,
    hz_parties hp,
    hz_cust_accounts hca
    WHERE hcsua.cust_acct_site_id = hcasa.cust_acct_site_id
    AND hcasa.party_site_id = hps.party_site_id
    AND hps.location_id = hl.location_id
    AND hp.party_id = hps.party_id
    AND hca.cust_account_id = hcasa.cust_account_id
    AND hca.party_id = hp.party_id
    AND hl.country NOT IN ('US','CA')
    AND hps.party_site_number NOT LIKE 'M%';

    You may want to zero in on the part of the code that throws this error.
    (i)
    Try executing a small part of your code, while commenting out the rest. If that is successful, execute a slightly bigger part of the code, and so on successively. Once you know, where exactly the code is failing, it should be easier to create a small testcase against your data and investigate the problem.
    (ii)
    Check those local variables and the values that get assigned to them. It is a good practice to anchor local variables to database columns. That way, there will be less surprises when the table structures are altered.
    (iii)
    The script as such does not show any glaring error, but you may want to check those procedure calls e.g. -
          hz_Location_v2Pub.Update_Location(fnd_aPi.g_True,l_Location_rec,l_Object_Version_Number,
                                            l_aPi_Status,l_msg_Count,l_msg_Data);It's quite possible that the procedure is assigning a value to an output parameter that is too small to store that.
    Note that, given such a huge script and not knowing your database, we are not particularly inclined to debug it. The only person who can make things easier for himself/herself is you.
    HTH,
    isotope

  • Error -200609 occurred at DAQmx Write: Selected Buffer Size Too Small

    Hello, I'm writing some simple test VI's that I will eventually build upon to make an externally clocked analog output VI. I started with a very simple program to output finite samples using the onboard clock with the DAQmx Timing.VI. When I run the program, I almost immediately get an error. The error message is below.
    Error -200609 occurred at DAQmx Write (Analog DBL 1Chan 1Samp).vi:1
    Possible reason(s):
    Generation cannot be started, because the selected buffer size is too small.
    Increase the buffer size.
    Conflicting Property
    Property: Output.BufSize
    Corresponding Value: 1
    Minimum Supported Value: 2
    Task Name: _unnamedTask<1C>
    I have used DAQmx VI's before in similar applications and never encountered this error. Additionally, I read at the link below that DAQmx Timing.VI should be generating the buffer automatically. Any ideas as what could be causing this?
    Specs:
    Windows 7
    Labview 2012
    PCIe-6353 as DAQ board
    Below is a picture of my block diagram and the VI is attached.
    Solved!
    Go to Solution.
    Attachments:
    FiniteSamplesTest.vi ‏18 KB

    Oops. Just realized my very silly mistake: I forgot to add the Start Task VI. I did so and it works as designed.

  • Will Print on White -Error with Colored Paper: too Small

    Trying to print gift tags on colored paper with Photosmart 7960.  Print Preview indicates will fit and prints ok on white paper. Using colored paper of same weight and thicker - printer error  "paper too small"
    This question was solved.
    View Solution.

    Hi - You might try setting the Paper Type to Plain Paper rather than Automatic.  Sometimes the color can throw off the paper sensors.  In whatever app you're in, click File, Print and then there should be a Preferences or Options button, click that and you should be able to find the Paper Type option.
    Hope that helps.
    Say Thanks by clicking the Kudos thumbs up. Please mark the post that solves your problem as an Accepted Solution so other forum users can utilize the solution.
    I am an HP employee.

  • Ora-06502:pl/sql :numeric or value error:host bind array too small

    declare
        v_dr_narrative varchar2(1000);
    begin
    v_dr_narrative:=f_gen_acct_narration_test(fiv_module=>'C' ,
                                                 fiv_handoff_type=>'T',
                                                 fiv_acct_freq=>NULL   ,
                                                 fiv_acct_type =>NULL  ,
                                                 fiv_acct_name=>NULL   ,
                                                 fiv_acct_level=>'I',
                                                 fiv_applicable_for=>NULL,
                                                 fiv_client_code =>NULL  ,
                                                 fiv_product_code=>NULL ,
                                                 fiv_account_nmbr=>NULL  ,
                                                 fiv_pir_dep_acct_nmbr =>NULL    ,
                                                 fiv_pir_dep_acct_int_nmbr=> NULL);
      v_dr_narrative:=f_gen_acct_narration_wrapper(fiv_module=>'C' ,
                                                 fiv_handoff_type=>'T',
                                                 fiv_acct_freq=>NULL   ,
                                                 fiv_acct_type =>NULL  ,
                                                 fiv_acct_name=>NULL   ,
                                                 fiv_acct_level=>'I',
                                                 fiv_applicable_for=>NULL,
                                                 fiv_client_code =>NULL  ,
                                                 fiv_product_code=>NULL ,
                                                 fiv_account_nmbr=>NULL  ,
                                                 fiv_pir_dep_acct_nmbr =>NULL    ,
                                                 fiv_pir_dep_acct_int_nmbr=> NULL,
                                                 fiv_event_code=>'DATAENTRY',
                                                 fiv_source_of_entry=>'T',
                                                 fiv_transaction_journal_nmbr=>'11031800007V',
                                                 fiv_seq_nmbr=>'001' ,
                                                 fiv_entity_type=>'CLIENT' ,
                                                 fiv_txn_reference_type=>'D' ,
                                                 fiv_txn_reference_nmbr=>'11031800002L');
    dbms_output.put_line(v_dr_narrative);
    end;

    Do you have a question?
    SQL> declare
      2      v_dr_narrative varchar2(1000);
      3  begin
      4
      5  v_dr_narrative:=f_gen_acct_narration_test(fiv_module=>'C' ,
      6                                               fiv_handoff_type=>'T',
      7                                               fiv_acct_freq=>NULL   ,
      8                                               fiv_acct_type =>NULL  ,
      9                                               fiv_acct_name=>NULL   ,
    10                                               fiv_acct_level=>'I',
    11                                               fiv_applicable_for=>NULL,
    12                                               fiv_client_code =>NULL  ,
    13                                               fiv_product_code=>NULL ,
    14                                               fiv_account_nmbr=>NULL  ,
    15                                               fiv_pir_dep_acct_nmbr =>NULL    ,
    16                                               fiv_pir_dep_acct_int_nmbr=> NULL);
    17
    18  /*
    19    v_dr_narrative:=f_gen_acct_narration_wrapper(fiv_module=>'C' ,
    20                                               fiv_handoff_type=>'T',
    21                                               fiv_acct_freq=>NULL   ,
    22                                               fiv_acct_type =>NULL  ,
    23                                               fiv_acct_name=>NULL   ,
    24                                               fiv_acct_level=>'I',
    25                                               fiv_applicable_for=>NULL,
    26                                               fiv_client_code =>NULL  ,
    27                                               fiv_product_code=>NULL ,
    28                                               fiv_account_nmbr=>NULL  ,
    29                                               fiv_pir_dep_acct_nmbr =>NULL    ,
    30                                               fiv_pir_dep_acct_int_nmbr=> NULL,
    31                                               fiv_event_code=>'DATAENTRY',
    32                                               fiv_source_of_entry=>'T',
    33                                               fiv_transaction_journal_nmbr=>'11031800007V',
    34                                               fiv_seq_nmbr=>'001' ,
    35                                               fiv_entity_type=>'CLIENT' ,
    36                                               fiv_txn_reference_type=>'D' ,
    37                                               fiv_txn_reference_nmbr=>'11031800002L');
    38  */
    39
    40  dbms_output.put_line(v_dr_narrative);
    41
    42  end;
    43
    44
    45
    46
    47
    48  /
    v_dr_narrative:=f_gen_acct_narration_test(fiv_module=>'C' ,
    ERROR at line 5:
    ORA-06550: line 5, column 17:
    PLS-00201: identifier 'F_GEN_ACCT_NARRATION_TEST' must be declared
    ORA-06550: line 5, column 1:
    PL/SQL: Statement ignoredBecause you've not supplied the code that anyone would need to reproduce the error in the subject of your post.

  • PL/SQL Numeric error

    hi everyone,
    i have created a report with parameter i need to pass multiple values to the report so i have written code using substr in after parameter form to allow multiple values
    but my problem is
    when i use value
    111 Foreign Assignment,100 Irvine its working fine
    but when i use value
    111 Foreign Assignment,100 Irvine,106 Boston
    getting error Fatal PL/SQL Error ocuured
    ORA-06502 Numeric or value error
    i have given maximum value(30000) for the parameter.
    how to solve it.
    help pls.
    Regards
    Rajesh

    HI...
    Take a look at Metalink Note:139548.1
    Hope it helps...
    Greetings...
    Sim

  • Oracle Report Error (string buffer too small) in Portal

    Hi,
    I have registered an oracle report (.rdf) with portal which works fine outside in Reports Builder, but when I try to run it in Portal it keeps throwing this error:
    SQL-6502: ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    ORA-06512: at "PORTAL.WWV_RW_USR", line 444
    ORA-06512: at "PORTAL.WWV_RW_USR", line 923
    ORA-06512: at line 1
    Anyone know what needs to be done to fix this?
    Thanks

    Sean:
    Thank you very much for wading through my post.
    >"if (NIerror = DAQmxCfgInputBuffer(h, numSamples*4))"
    >I would leave this line out. DAQmx should create an input buffer automatically
    >based on the number of channels and number of samples per channel.
    Yeah- I put that in trying to fix the problem. The error message doesn't say *which* buffer is too small
    >If you just call the DAQmxReadDigitalLines() function with "numSampsPerChan" set to -1,
    >DAQmx will wait until all samples are acquired before performing the read.
    I'm trying to avoid the wait. That's why I'm trying to figure out how many samples are ready.
    I suppose I can try numSampsPerChan=-1, set a short timeout and check for the timeout error.
    >If this does not help, please send me a small section of code that reproduces that behavior,
    >and I will try running it on my machine.
    I will try modifying one of the examples to do what I'm trying to do.
    Again, Thank you!
    John Weeks
    WaveMetrics, Inc.
    Phone (503) 620-3001
    Fax (503) 620-6754
    www.wavemetrics.com

  • TDS buffer length too large & Protocol error in TDS stream

    Hi,
    While performing the HFM Copy application(using the copy utility) from Production to Development, I receive some errors many times noticed from the log file which are as follows:
    11-24-2009 01:06:37 : 157 : Error : Number=(-2147467259)(80004005) Source=(Microsoft OLE DB Provider for SQL Server) Description=(TDS buffer length too large) SQLState=(HY000)NativeError=(0)
    11-24-2009 01:06:37 : 157 : Error : Number=(-2147467259)(80004005) Source=(Microsoft OLE DB Provider for SQL Server) Description=(Protocol error in TDS stream) SQLState=(HY000)NativeError=(0)
    I would like to know why did this error appeared and any help would be of great help.
    Thanks.
    Regards,
    Ravi Shankar S

    I have seen this where the server doesn't respond in time, pulling data from SQL via ODBC using Excel. If so the fix is fairly simple:
    sp_configure
    'remote query timeout (s)',3600
    GO
    RECONFIGURE
    GO
    JCEH

  • Abap dump:  internal table too small, condense non-character like fields

    Hi there,
    I created a dynamic internal table by:
    CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
    CALL METHOD CL_ALV_TABLE_CREATE=>CREATE_DYNAMIC_TABLE
    ASSIGN IT_EP_TABLE->* TO <IT_DBTABLE>.
        SELECT * FROM (P_TABLE_NAME)
         <b> INTO TABLE <IT_DBTABLE> </b>
    It gave the error <b> internal table too small </b> SAPSQL_SELECT_TAB_TOO_SMALL,
    so I removed the error by using "into corresponding fields of <IT_DBTABLE>.
    But now it is not creating a TXT file by function module from internal table records. As it says the CONDENSE statement cannot be executed and dump occurs: 'OBJECTS_NOT_CHARLIKE' 'The current statement only supports character-type data objects', 'In statement
    "CONDENSE" the argument "<F_SOURCE>" can only take a character-type data object'.
    It only happens for table AFPO. As I think this table has fields i.e. currency which cannot be treated as characters. Is the move corresponding approach ok. Or how can I create text file with these records.

    try creating a dynamic table in the image of the source table and then move-corresponding to the original one. Something like this:
    DATA dref TYPE REF TO data.
    DATA tabdref TYPE REF TO data.
    FIELD-SYMBOLS <dyn_struc> TYPE ANY.
    FIELD-SYMBOLS <struc> TYPE ANY.
    FIELD-SYMBOLS <tab> TYPE table.
    *create table of your choice
    CREATE DATA tabdref TYPE TABLE OF (P_TABLE_NAME).
      ASSIGN tabdref->* TO <tab>.
    create a line variable for the above table
    CREATE DATA dref like line of <tab>.
    ASSIGN dref->* TO <struc>.
    create a line variable for the dynamically created table
    CREATE DATA dref like line of <IT_DBTABLE>.
    ASSIGN dref->* TO <dyn_struc>.
    SELECT * FROM (P_TABLE_NAME)
    INTO TABLE <tab>.
    loop at <tab> assigning <struc>.
    move-corresponding <tab> to <dyn_struc>.
    append <dyn_struc> to <IT_DBTABLE>.
    endloop.

  • Simulation interrupts, error:timestep too small, trouble with node. Solution?

    Evaluating Multisim, a simple half bridge inverter, using function generator to control IGBTs, scopes and current probes. Simulation starts and interrupts shortly. The error message is: Timestep too small, time=xxxx, timestep=yyyy, trouble with node zzzz.
    Can anyone give me some idea please, what is going on here,  am I doung something wrong or this is software/model bug?
    Simulation is unstable, even when it works, if I change the point where I sense the current or voltage, or component value, it fails.
    Any ideas would be appreciated.
    Thanks.

    Hi Jordan,  
    Thanks for advise, but connecting the terminal to ground does not solve the problem. The problem is not in the circuit but in the software. You can see that the simulatiion worked for several periods, so the circuit is OK. Please tell me, what is the exact meaning of the error message, "timestep too small"? Why is the software working for one value of the component and not for another value? My interpretation is that when software encounters some values during calculations that it does not like for some reason, it gives this message without properly defining the problem so that the user can take practic action to rectify it. Are there any settings which I must define before starting the simulatioin, like sampling rate or anything that would eliminate "timestep too small" message?
    I am evaluating the simulator software to make a decision whether it is practically useful for the company to purchase. If 8 out of 10 times the result of simulation is an incomprehensible error message instead of a waveform, then I have to assume that the software is not mature.
    Please advise.
    Best regards,
    Stepan.

Maybe you are looking for

  • The iPod Nano that I just bought was supposed to be a 16 GB, but it only shows a capacity for 247 MB.  ***!

    For having only had this thing opened and out for maybe little over an hour, I've already run into some pretty serious aggravation.  According to the numerous error messages I'm getting, there's not enough room on my BRAND NEW IPOD NANO for the 1.89

  • +Can't get photo/video on at all. :(

    +I've gotten this for two days now the new video ipod and i can get all the musik on there i just cant seem to be able to put any photos or vid into the itunes library u can "add file to library" it just doesnt do anything. this is very frusterating.

  • MRM_QUANTITY_CHECK for invoices parked as complete

    Hi, is it possible to call fm MRM_QUANTITY_CHECK for invoices parked as complete (RBKP-RBSTAT = 'B' and sy-ucomm = 'COMP')? is it possible to have routine MENGE_PRUEFEN(SAPLMR1M) for invoices parked as complete? These checks get triggered when postin

  • Sh Application to test weblogic sip server 3.1

    Is there any Sh application available to test weblogic sip server diameter domain? I set up a diameter domain with hssclient only. The interface works fine. but I cannot find sh application to deploy. just wondering where to get sh application exampl

  • Creating link in work item

    Hello, I have one requirement in which i need to give 2 options to the user in work item. Basically i need to give two links which will open some transaction in SAP. I thnink i can not give decision because it will not open any transaction directly.