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 .....
Similar Messages
-
0FIA_DS11:Error when activating DataStore Object
Hi,
We have activated the datasources related FI_AA and replicated in to a new BI 7 system.
Currently we are able to activate the asset accounting related targets like 0FIAA_C11, 0FIAA_c12 and 0FIAA_C13
however not able to activate DSO's 0FI_DS11, 0FI_DS12 and 0FI_DS13.
We have replicated the datasources 0FI_AA_11 and 0FI_AA_12 in 3.x but while installing the DSO 0FI_DS11 and 0FI_DS12, facing below given error.
" DataSource 80FIA_DS11 does not exist in source system BIDCLNT600 of version A
Error when creating the export DataSource and dependent Objects
Error when activating DataStore Object 0FIA_DS11 "
We have checked the mysource system settings and activated the Data Marts respectively but still we are not able to activate.
System is BI 7 with EHP4 ehanced packege.
Please suggest.
Thanks & Regards,
SMSHi Jonas,
I understand the procedures and had followed all the procedures.
We had resolved the issue and issue was with the IP in sm59.
It is cleared.
Thanks for the reply.
Regards,
S M S -
Error when activating DataStore Object
Hello,
We have an ODS object which is in avtive stage in ECC DEV system. When
we transport it to ECC QA system it can not be activated and shows
follwoing errors :
1) Internal error occurred when writing
Message no. D0054
2) Error while saving change log for DataStore object DSO_PL
Message no. RSDODSO196
3) Error during creation of DDIC sources of DataStore Object DSO_PL
Message no. RSO435
4) Error when activating DataStore Object DSO_PL
Message no. RSO404
We also observe that even we create new ODS object in ECC QA system,
still it give the same errors while activating.
Note - ECC QA is a system copy of ECC PROD.
Please suggest.Hi,
I believe the problem is with the Myself connection (the BW source system connection to itself) in the QA system.
Please goto RSA1, 'source systems', right click on the myself system and click on 'check', if there are errors you
maybe able to correct them by right clicking on the myself connection and click on 'restore'. If there are no
errors for the myself connection you should go to sm59 and do the connection and authorization test for the
RFC connection for the myself connection.
Best Regards,
Des. -
Error when transporting ODS Object
Hi All,
I got the following error when transporting ODS object.
"The creation of the export DataSource failed"
"RFC connection to source system QB1CLNT100 is damaged ==> no Metadata upload"
"Error when creating the export DataSource and dependent Objects. Error when activating ODS Object 0FIGL_O10"
Maybe somebody can help me.
Thanks a lot and appreciate that,
-Martin-hi Martin,
check oss note 597326 - Activating ODS: Error when creating the export DataSource
Symptom
When you activate or transport ODS objects, the following errors appear in the log:
"The creation of the export DataSource failed". Message number RSBM 035
"Error &1 in function module &2". Message number RSBM 006
"<b>Error when creating the export DataSource and dependent Objects</b>". Message number RSDODSO 169
"Error when activating the ODS object &1". Message number RSDODSO 168
Other terms
RSBM 035, RSBM 006, RSDODSO 169, RSDODSO 168
Reason and Prerequisites
A characteristic involved is active but it is using new or inactive attributes.
Characteristics involved are all characteristics used in the ODS object.
Solution
Check all characteristics involved as described in the following:
Check the Compounding and Attributes tabs in the characteristics maintenance.
All characteristics here must be active. This is displayed by a green icon.
If this is not the case for a characteristic involved (a gray icon is displayed on one of the two tabs), activate the characteristic involved. This also activates the inactive dependent characteristics.
After you have checked and repaired all the characteristics involved as described above, the loading/maintenance of master data should work again. -
Error when using defined object in Universe in Web Intelligence
Hi all
I create universe connect from Infocube
I create a new Object named "Sale Value" to get YTD of Object name "SS Total value of the invoice lin" with code following
<EXPRESSION>SUM(YTD(@Select(Key Figures\SS Total value of the invoice line)))</EXPRESSION>
I parse to check systax "OK".
But when I run query and using above defined object in Web Intelligence, I get error following
<<
Query 1 - ZTHP_TEST001
A database error occured. The database error text is: The MDX query WITH MEMBER [Measures].[384E7D57-FBC9-45A4-BD,4B,1D,D2,D4,41,47,7E] AS ' SUM([Measures].[ZSGROSS_L]) ' SELECT { [Measures].[ZSVOLUME], [Measures].[384E7D57-FBC9-45A4-BD,4B,1D,D2,D4,41,47,7E] } ON COLUMNS , NON EMPTY { Descendants( [ZPRODUCT ZPRODUCT_HIER].[LEVEL00].MEMBERS, [ZPRODUCT ZPRODUCT_HIER].[LEVEL09], LEAVES) } DIMENSION PROPERTIES MEMBER_CAPTION ON ROWS FROM [$ZIB_02] failed to execute with the error Invalid MDX command with ). (WIS 10901)
>>
I check MDX PARSER connection in SM59 sucessfull
I am beginer of Universe and Web Intelligence, please help me solve this problem.
ThanksHi,
The MDX parser in the universe designer just check the XML Tags or Syntax. It does not validate the expression.
The YTD, QTD, MTD functions in the universe designer requires a reference to a predefined time chararcteristics eg. 0CALMONTH etc. So the correct expression would be similar to the below expression:
<EXPRESSION> SUM(YTD([0CALMONTH].CurrentMember), @Select(Key Figures\SS Total value of the invoice line))</EXPRESSION>
Also you need to add the time characteristics in the result set.
Regards,
Rohit -
Transfer Error, when saving Java Objects to database
I'am getting this error "Transfer Error" when I try to save a java object (an image) to a database (jDatastore 6). Iam using a jdbc to conect to the database here is the code I am using.
PreparedStatement pstmt = con.prepareStatement(
"INSERT INTO MAP (IMAGE) VALUES (?);");
pstmt.setObject(1, orginal_map);
System.out.println("1");
pstmt.executeUpdate();
Can and one help me with this ????Hey smhumayum,
Ya it's a bit of weard one. No no the image is now in an array when you need to creat a new imge you generate an image from the array.
// orginal_map // this is an image object
//map_org_pixels// this is an array
// this line takes each pixel from the pic and puts it in to the array//
grabber = new PixelGrabber(orginal_map, 0, 0, w, h, map_org_pixels, 0, w);
// this line takes an array and converts it in to an image //
map_on_screen = createImage(new MemoryImageSource(w, h, map_org_pixels, 0, w));
What you think -
AddRecord error when adding binary object
Hi all,
I am getting a2i.core.StringException: AddRecord error when trying to add binary object in the repository using Java API. The code used is as below:
//Adding values in binary table
byte[] fileBuf = file;
A2iFields fields = new A2iFields();
fields.Add(new A2iField("Data ID", new Value(file)));
fields.Add(new A2iField("Name",new
Value("FileName.extn"));
fields.Add(new A2iField("Original Name",new
Value("FileName.extn"));
fields.Add(new A2iField("Data Group ID",new Value(1)));
fields.Add(new A2iField("Data Size", new
Value(file.length)));
fields.Add(new A2iField("Original Location ID", new
Value(999)));
fields.Add(new A2iField("Description",new Value("a
short description ")));
boolean hasOriginal = false;
fields.Add(new A2iField("Has Original", new
Value(hasOriginal)));
String binaryTable = "<Table Name>";
int recID = catalog.AddRecord(imageTable, fields, -1,
-1);
//Adding values in Products table
A2iFields a2iFields = new A2iFields();
a2iFields.Add(new A2iField("<Field1 Name>", new
Value("<Value1>")));
a2iFields.Add(new A2iField("<Field2 Name>", new
Value("<Value2>")));
a2iFields.Add(new A2iField("<Field3 Name>", new
Value("<Value3>")));
a2iFields.Add(new A2iField("<Field4 Name>", new
Value("<Value4>")));
a2iFields.Add(new A2iField( "<Field name for binary
object>", new Value(recID)));
int id = catalog.AddRecord("Products", a2iFields, 0,
0);
Best Regards,
JaydeepHi Jaydeep,
Have you got any solution for this problem ?
We are also facing the same issue. Let us know if you can throw some light on this.
Regards
Vinay. -
-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 HoogsteenWorking 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?
RichFollow 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 11Aha, 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 -
ORA-22813 error when deleting spatial objects in LIVE
Hi,
We are getting an ORA-22813 error when attempting to delete a spatial object from a version-enabled table in workspace LIVE. The spatial object to be removed has a SDO type of multipolygon. The geometry information consists of 4 rings with a combined ordinate count of 4120. The statement used to delete the row is:
delete from tableA where tableA.id in (select tableA.id from tableA where tableA.id = 3);
The error occurs only on a 10g R1 Oracle instance (10.1.0.5.0) with Workspace Manager version 10.1.0.7.1. The delete operation succeeds without problems on a 10g R2 (10.2.0.2.0) instance with Workspace Manager version 10.2.0.3.1. The statement is also executed successfully on the 10g R1 instance if the table is not version-enabled.
Any help on this would be appreciated.
ThanksHi,
I would recommend filing a TAR in this one. The only ora-22813 error involving workspace manager and geometry columns that I know about involves queries that need to sort data for which the size of the geometry column was >30k. Does the execution plan for the delete statement involve any kind of sort? However, this is an old 9.2 bug, that I believe was fixed for all 10.1 and newer releases.
Does the same error happen if you do not use the subquery?
Regards,
Ben -
Error when opening view object in Jdeveloper
Hi,
EBS version is 11.5.10 RUP4. JDeveloper version is 9.0.3, Business Component Version is 9.0.3.13.93.
We need to modify a custom view object that has been extended from a standard VO. We do not have the original Java file of the custom VO, only its classes VOImpl and VORowImpl. As such, this should not be a problem: instead of modifying the custom VO we could extend it.
The problem:
When trying to update/extend the custom VO we get an error:
Copy operation failed, some edits may not be cancellable
Expected name instead of <.
Exception in oracle.xml.parser.v2.XMLParseException
Tracing back the problem we got this same error when OPENING the original VO. The original VO is oracle.apps.asn.opportunity.server.OpptySearchVO
Any idea how we can solve this problem?
Thanks in advance.
Regards,
RaduRadu,
What kind of change you are trying to do, If you are try to change only the query without adding any parameter, you can open the VO.xml in a text file and change it.
One more way is, create a new VO substitution with the same name, and extend the VO, then Copy the VOImpl and VORowImpl code into your new files and use it.
What is the Jdeveloper Version 9.0.3 or 9.0.3.5
What is the Build version for the Jdeveloper.
Thanks.
With Regards,
Kali.
OSSI. -
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.
ThanksHi,
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);
Maybe you are looking for
-
Hi We are developing EDI 850 Transaction using SOA 11g Environment. We are successfully able to complete the B2B 11g Trading partner setups and able to successfully puch EDI XML to IP_IN_QUEUE. We developed a 850 EDI BPEL mappings using BPEL 11g (Bui
-
How/Where to store current page details in ADF?
Hi All, What is the best way to populate the managedBean while loading the page? In my application, I have an page fragment which display the user details from Webservice DataControl. I drag and drop the webservice data control in to the pageFragment
-
when configuring my gmail account, iphone downloaded all my existing email from the server. thats understanable since its a pop account, but is there a way for me to mark all messages as already read in the iphone, without doing it one by one ? there
-
Cant open application because it is not supported on this architecture??
the graphics processor on my computer broke so i had to pull files off using the firewire system to connect two computers and when i went to open the address book this appeared "cant open application address book because it is not supported on this a
-
Connecting with the WRT160N issues
It seems as though I installed everything correctly, the ping is very strong and when I use my DS or netbook my network comes up but after I punch in the code it says cannot connect. This is simply infuriating me, it's been the one but sizable blemi