Customize Db Constraint Error (Custom Msg bundle vs Custom Trans FrameWork)
Dear all,
As in ADF 4GL Guide : ch. 25.8.3 & 25.8.4, Customizing Database Constraint Error can be done, either by using:
- Custom Message Bundles
OR
- Custom Transaction Class
In the examples there, it is still not clear what is the benefit of using Custom Transaction Class while using Custom Message Bundles seems to be simpler.
So, actually how can the second option be better compared to the first one ?
Than you for your help,
xtanto
xtanto,
I agree with your assesment - custom message bundles is much simpler for this use case. If you wanted to do something more "fancy" with the error handling, you would use the custom DBTransactionImpl class. This paragraph from the guide sums it up, I guess:
If the default facility for assigning a custom message to a database constraint violation
does not meet your needs, you can implement your own custom constraint error
handling routine.
I haven't run into a situation where I've needed to use the DBTransactionImpl approach.
Best,
John
Similar Messages
-
Customise database constraints errors
Hi All
I'm developing web application using jdeveloper Version 11.1.1.3.0. And I want to customise database constraints errors. I used message.property file to get the error. But It wont pick error from that file when a database error throws.
Eg. I configure the precision validation in the freeRate EO for the field rates. when it fires that error it doesnt diplay the configured error. always it disolays a error like this
" Error: Attribute set with value 1234567891234567891234567891234 for Boundary in SetupAM.feeRates1 has invalid precision/scale "
which is not user friendly. can any body tell me how to customise data base constraints such as precision of a number.
Thank You
PadmaRefer ADF-BC:Customize Error Messages for Database Constraint Violations
Customize JBO-XXX messages
Re: Customize Error Messages in ADF BC Entity Object
Amit
Edited by: amseth on Feb 14, 2011 9:27 PM -
FI Archiving - System error: Customer/vendor line item not on OI basis
While archiving FI Documetns using object FI_Documnt, I am getting message System error: Customer/vendor line item not on OI basis for few non archivable documents. Is it like these also open items and can not be able to archive them. Or what is the root cause of these error message.
Regards,
ShaileshHi Adisha,
This error pertains to the accounting fundamentals and SAP does not have anything to do with this....you ask yourself that if you were not using SAP and simlar problem came your way what would you have done...this has no solution...
Either you wait for the next invoice with big amount but which seems bit impractical..
In this we really need to consult the Accounting Standards to see what it could allow.
Regards,
Chintan Joshi -
Time Constraint Error when calling a Function module from Webdynpro ABAP
Any help will be greatly appreciated - Thanks RM
Time Constraint Error
Information on where terminated
Termination occurred in the ABAP program "SAPUP50R" - in
"CHECK_TIME_CONSTRAINT_S1".
The main program was "MP000000 ".
In the source code you have the termination point in line 1069
of the (Include) program "UP50RU01".
Error occurred during batch input processing
Source Code Extract
l_is_inconsistent = 'X'.
ENDIF.
Check if there are inverted time periods.
IF l_prelp_line-begda > l_prelp_line-endda.
l_is_inconsistent = 'X'.
ENDIF.
Check if there are overlaps or gaps.
IF NOT l_prelp_before IS INITIAL.
l_date_difference = l_prelp_line-begda - l_prelp_before-endda.
IF l_date_difference <> 1.
l_is_inconsistent = 'X'.
ENDIF.
ENDIF.
l_prelp_before = l_prelp_line.
ENDLOOP.
IF l_prelp_before-endda <> '99991231'.
l_is_inconsistent = 'X'.
ENDIF.
IF l_is_inconsistent = 'X'.
IF p_access_type = 'R'.
490 Datenbankschiefstand Personalnummer & Infotyp &
MESSAGE x490 WITH l_prelp_before-pernr l_prelp_before-infty.
ELSE.
491 Unzulässige Daten Personalnummer & Infotyp &
Line 1069 Error occcurs >>>> MESSAGE x491 WITH l_prelp_before-pernr l_prelp_before-infty.
ENDIF.
ENDIF.
ENDFORM. " CHECK_TIME_CONSTRAINT_S1 "XYVN0352581
*& Form clear_no_adapter_needed new "XREN844998
text
FORM clear_no_adapter_needed .
CLEAR no_adapter_needed.
ENDFORM. " clear_no_adapter_needed
*& Form set_no_adapter_needed new "XREN844998
text
FORM set_no_adapter_needed .
no_adapter_needed = 'X'.
ENDFORM. " clear_no_adapter_neededHi,
Well, are you trying to do a batch input on infotype 0000? If yes you need to check that the proposed values respects the time constraint, meaning no gap, no overlaps and no inversions. Also fields SUBTY, OBJPS, SPRPS and SEQNR must remain initial when processing IT0000...
Kr,
Manu. -
Hi
While trying to Create Projects using the API, I'm getting two types of errors -
The first is : 'API failed in one stage 1 Customer Name is a mandatory Quick Entry field. Value must be passed'
The second is : '
'API failed in one stage 1 Project: '<Project_Number>'
The class category is invalid.'
Both the messages are produced by our custom program. .. however I am not able to understand why the underlying errors occur.
The first error ( Customer Name is a mandatory quick entry field), is caused by Projects that are to be created from Project templates where it is configured with Quick Entry Customer Name required. We are passing Customer Site number ( Party Bill to site number and Party Ship to side number). The site numbers being passed are also set as 'Primary'. Yet they are failing.
For the second Error ( The Class Category is invalid), I rechecked multiple times, the Class categories for the Projects I am trying to create, with the Config in R12 and they are fine. Can't understand the reason for these two issues. Has anyone encountered such an issue ? If so how was it resolved?
Regards
VivekHI All
I resolved both the issues. In case there are others facing similar issues, following was the cause and resolution of my errors
1. Error 1: Customer Name is a Mandatory Quick Entry field. Value must be passed.
The cause was that the data loaded into our custom staging table was not in the right fields. This was because the data file values and the CTL were not in sync.
Resolution:
Corrected the data file to be in Sync with the structure defined in the CTL and this loaded it successfully
2. Error 2: The class category is invalid.
The cause of this error was that in the Projects Template (used to create the project from), the Quick Entry setup had a Class Category set as required and I was not passing a value ( a class code value) for that Class Category.
Hope this helps somebody else
Cheers
Turnbill -
ORA-00001: unique constraint error..
Hi There,
We were trying to do an insert when we started having ORA-00001: unique constraint error.. to speed our testing we decided to disable all the constraints on the table; however we still having the same issue.
How can we resolve this please.
SQL> select constraint_name,constraint_type,status from dba_constraints where table_name='MEMBER_LATEST';
CONSTRAINT_NAME C STATUS
MEMBER_LATEST_PK P DISABLED
SYS_C0017577 C DISABLED
SYS_C0017576 C DISABLED
SYS_C0017575 C DISABLED
SYS_C0017574 C DISABLED
SYS_C0017573 C DISABLED
SYS_C0017572 C DISABLED
SYS_C0017571 C DISABLED
SYS_C0017570 C DISABLED
MEMBER_LATEST_FK R DISABLED
10 rows selected.
SQL>
SQL>
SQL> INSERT INTO MEMBER_LATEST (DIS_ID, TIMESTAMP, LAST_NAME, FIRST_NAME, MIDDLE_NAME, DIS_COUNT)
2 SELECT DIS_ID, 'TEST', LAST_NAME, FIRST_NAME, MIDDLE_NAME, 0
3 FROM MV_DIS_MEM, MV_DIS_COUNT
4 WHERE MV_DIS_MEM.P_CODE = MV_DIS_COUNT.P_CODE
5 ORDER BY 1,3,4;
INSERT INTO MEMSCH.MEMBER_LATEST (DIS_ID, TIMESTAMP, LAST_NAME, FIRST_NAME,
ERROR at line 1:
ORA-00001: unique constraint (MEMSCH.MEMBER_LATEST_PK) violated
SQL>Anything else we can do please?
Thanksrsar001 wrote:
but isn't the unique index constraint part of the disabled constraints on the table as shown above?Not if index used by PK was created separately prior to PK:
SQL> create table emp1 as select * from emp;
Table created.
SQL> alter table emp1
2 add constraint emp1_pk
3 primary key(empno);
Table altered.
SQL> insert into emp1 select * from emp;
insert into emp1 select * from emp
ERROR at line 1:
ORA-00001: unique constraint (SCOTT.EMP1_PK) violated
SQL> alter table emp1 disable primary key;
Table altered.
SQL> insert into emp1 select * from emp;
14 rows created.
SQL> rollback;
Rollback complete.
SQL> alter table emp1 drop primary key;
Table altered.
SQL> create unique index emp1_pk on emp1(empno);
Index created.
SQL> alter table emp1
2 add constraint emp1_pk
3 primary key(empno)
4 using index emp1_pk;
Table altered.
SQL> insert into emp1 select * from emp;
insert into emp1 select * from emp
ERROR at line 1:
ORA-00001: unique constraint (SCOTT.EMP1_PK) violated
SQL> alter table emp1 disable primary key;
Table altered.
SQL> insert into emp1 select * from emp;
insert into emp1 select * from emp
ERROR at line 1:
ORA-00001: unique constraint (SCOTT.EMP1_PK) violated
SQL> But by dropping index you are simply delaying the issue. Yes, you will be able to insert, but what's then? You will not be able to recreate PK - same violation error will be raised.
SY. -
I recieved a message that MSVCR80.ddl was missing and iTunes would activate. After reinstalling iTunes, I'm receiving an "Error 7 (Windows error 126)" msg. What should I do?
Hello, Jack.
You will find this article helpful in troubleshooting the error that you are receiving.
iTunes for Windows: "Error 7" message when opening iTunes
http://support.apple.com/kb/ts3074
Regards,
Jason H. -
PK with TIMESTAMP causes insert unique constraint error at DST switch
Hi,
I have a test that inserts rows in a table that has a TIMESTAMP in its PK.
When inserting rows that cross over the November DST change, it tries to insert these dates:
--- Sun Nov 02 02:00:00 EST 2008
--- Sun Nov 02 01:00:00 EST 2008
--- Sun Nov 02 01:00:00 EDT 2008
This is the output of 3 different UTC dates. We can see that there are 2 x 1am, but they differ in their DST. They are really 3 different UTC dates.
But I get this error:
--- Expected error: ORA-00001: unique constraint (DDLTEST1.SYS_C00142622) violated
But I can get around that error and can insert these same dates if I set my JVM to UTC. The inserts work so I suspect this to be a JDBC issue.
I am using the Oracle Thin driver in a spring app:
<property name="driverClassName" value="oracle.jdbc.driver.OracleDriver" />
<property name="url" value="jdbc:oracle:thin:@localhost:db" />
I can post the sample code but wonder if there is an obvious answer to this.
Note that MySql had the same problem. I fixed it by specifying the UTC timezone in the connection string, like this:
jdbc:mysql://[host]/[db]?useLegacyDatetimeCode=false&useTimezone=true&sessionVariables=time_zone='UTC'
Any idea how to get around that problem without setting JVM to UTC ?
Claude
Edited by: user2678899 on 10 juin 2009 10:09
I removed #2 work around which was wrong
Edited by: user2678899 on 10 juin 2009 10:23Timur Akhmadeev wrote:
Hi,
I suspect this to be a JDBC issue.Nope, this is your schema design gap. It breaks the main principle of PK: to uniquely identify a row in a table always. Your PK doesn't satisfy it, since it depends on client's settings.Why is setting the JVM to UTC working ? This is the part that confuses me.
I create the 3 dates in Eastern time, then change the JVM default to UTC: the 3 inserts work.
I create the 3 dates in Eastern time, then leave the JVM to Eastern time , the 3rd insert gets the unique constraint error.
To me, the PK principle is not broken: these are 3 different UTC dates. -
SOAPFaultException: error in msg parsing: xml was empty, didn't parse!
Using the web service example from http://www.oracle-base.com/articles/10g/utl_dbws-10g.php. Can anyone tell me why I can't call this web service twice within the same database session? The first call seems to work for each session, but the second generates an error.
SQL> select * from v$version;
BANNER
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
PL/SQL Release 11.2.0.3.0 - Production
CORE 11.2.0.3.0 Production
TNS for Linux: Version 11.2.0.3.0 - Production
NLSRTL Version 11.2.0.3.0 - Production
SQL> CREATE OR REPLACE FUNCTION add_numbers(p_int_1 IN NUMBER,
2 p_int_2 IN NUMBER) RETURN NUMBER AS
3 l_service sys.utl_dbws.service;
4 l_call sys.utl_dbws.call;
5
6 l_wsdl_url VARCHAR2(32767);
7 l_namespace VARCHAR2(32767);
8 l_service_qname sys.utl_dbws.qname;
9 l_port_qname sys.utl_dbws.qname;
10 l_operation_qname sys.utl_dbws.qname;
11
12 l_xmltype_in sys.xmltype;
13 l_xmltype_out sys.xmltype;
14 l_return NUMBER;
15 BEGIN
16 l_wsdl_url := 'http://www.oracle-base.com/webservices/server.php?wsdl';
17 l_namespace := 'http://www.oracle-base.com/webservices/';
18
19 l_service_qname := sys.utl_dbws.to_qname(l_namespace,
20 'Calculator');
21 l_port_qname := sys.utl_dbws.to_qname(l_namespace,
22 'CalculatorPort');
23 l_operation_qname := sys.utl_dbws.to_qname(l_namespace,
24 'ws_add');
25
26 l_service := sys.utl_dbws.create_service(wsdl_document_location => urifactory.geturi(l_wsdl_url),
27 service_name => l_service_qname);
28
29 l_call := sys.utl_dbws.create_call(service_handle => l_service,
30 port_name => l_port_qname,
31 operation_name => l_operation_qname);
32
33 l_xmltype_in := sys.xmltype('<?xml version="1.0" encoding="utf-8"?>
34 <ws_add xmlns="' || l_namespace || '">
35 <int1>' || p_int_1 || '</int1>
36 <int2>' || p_int_2 || '</int2>
37 </ws_add>');
38 l_xmltype_out := sys.utl_dbws.invoke(call_handle => l_call,
39 request => l_xmltype_in);
40
41 sys.utl_dbws.release_call(call_handle => l_call);
42 sys.utl_dbws.release_service(service_handle => l_service);
43
44 l_return := l_xmltype_out.extract('//return/text()').getnumberval();
45 RETURN l_return;
46 END;
47 /
Function created
SQL> BEGIN
2 dbms_output.put_line(add_numbers(1,
3 4));
4 dbms_output.put_line('first call succeeded');
5 dbms_output.put_line(add_numbers(1,
6 9));
7 dbms_output.put_line('second call succeeded');
8 END;
9 /
5
first call succeeded
BEGIN
dbms_output.put_line(add_numbers(1,
4));
dbms_output.put_line('first call succeeded');
dbms_output.put_line(add_numbers(1,
9));
dbms_output.put_line('second call succeeded');
END;
ORA-29532: Java call terminated by uncaught Java exception: javax.xml.rpc.soap.SOAPFaultException: error in msg parsing:
xml was empty, didn't parse!
ORA-06512: at "SYS.UTL_DBWS", line 404
ORA-06512: at "SYS.UTL_DBWS", line 401
ORA-06512: at "GLYODER.ADD_NUMBERS", line 38
ORA-06512: at line 6hi Gyoder
Do you resolve this problem?
Thanks -
BusinessService error in msg parsing: xml was empty, didn't parse!
Hi
I'm trying to consuming a WebService implemented in PHP, the WS its internal
http://192.168.2.15:81/project/service/ws.wsdl
I created a BusinessService from that WSDL, but when i test the businessService through the sbconsole i get this
<SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/">
<SOAP-ENV:Body>
<SOAP-ENV:Fault>
<faultcode xsi:type="xsd:string">SOAP-ENV:Client</faultcode>
<faultactor xsi:type="xsd:string"/>
<faultstring xsi:type="xsd:string">
error in msg parsing:
xml was empty, didn't parse!
</faultstring>
<detail xsi:type="xsd:string"/>
</SOAP-ENV:Fault>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
<con:metadata xmlns:con="http://www.bea.com/wli/sb/test/config">
<tran:headers xsi:type="http:HttpResponseHeaders" xmlns:http="http://www.bea.com/wli/sb/transports/http" xmlns:tran="http://www.bea.com/wli/sb/transports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<tran:user-header name="X-Powered-By" value="PHP/5.2.1"/>
<tran:user-header name="X-SOAP-Server" value="NuSOAP/0.9.5 (1.123)"/>
<http:Connection>close</http:Connection>
<http:Content-Length>689</http:Content-Length>
<http:Content-Type>text/xml; charset=ISO-8859-1</http:Content-Type>
<http:Date>Wed, 15 Aug 2012 14:55:28 GMT</http:Date>
<http:Server>Apache/2.2.4 (Win32)</http:Server>
</tran:headers>
<tran:response-code xmlns:tran="http://www.bea.com/wli/sb/transports">2</tran:response-code>
<tran:response-message xmlns:tran="http://www.bea.com/wli/sb/transports">Internal Server Error</tran:response-message>
<tran:encoding xmlns:tran="http://www.bea.com/wli/sb/transports">ISO-8859-1</tran:encoding>
<http:http-response-code xmlns:http="http://www.bea.com/wli/sb/transports/http">500</http:http-response-code>
</con:metadata>
-- Added
I forgot to say that the WS works well when i tested with SoapUI
Any help would be apreciated.
Thanks
Edited by: user4159641 on 15-ago-2012 8:00Using the new URL i am able to createBusiness Service, i have pasted the content of the wsdl generated.
wsSitidataEstandar.php.wsdl
<definitions targetNamespace="www.sitimapa.com/webservice/sitidata/wsSitidataEstandar" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="www.sitimapa.com/webservice/sitidata/wsSitidataEstandar" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns="http://schemas.xmlsoap.org/wsdl/">
<types>
<xsd:schema targetNamespace="www.sitimapa.com/webservice/sitidata/wsSitidataEstandar">
<xsd:import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
<xsd:import namespace="http://schemas.xmlsoap.org/wsdl/"/>
<xsd:complexType name="arrayData">
<xsd:complexContent>
<xsd:restriction base="SOAP-ENC:Array">
<xsd:attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="xsd:string[]" xmlns:wsdl1="http://schemas.xmlsoap.org/wsdl/"/>
</xsd:restriction>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="headerArray">
<xsd:all>
<xsd:element name="key" type="xsd:string"/>
<xsd:element name="addressOrCoordinate" type="xsd:string"/>
</xsd:all>
</xsd:complexType>
<xsd:complexType name="arrayOfString">
<xsd:complexContent>
<xsd:restriction base="SOAP-ENC:Array">
<xsd:attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="tns:headerArray[]" xmlns:wsdl1="http://schemas.xmlsoap.org/wsdl/"/>
</xsd:restriction>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="sequence">
<xsd:all>
<xsd:element name="key" type="xsd:string"/>
<xsd:element name="sequence" type="xsd:string"/>
</xsd:all>
</xsd:complexType>
<xsd:complexType name="arrayOfSequence">
<xsd:complexContent>
<xsd:restriction base="SOAP-ENC:Array">
<xsd:attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="tns:sequence[]" xmlns:wsdl1="http://schemas.xmlsoap.org/wsdl/"/>
</xsd:restriction>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="itinerary">
<xsd:all>
<xsd:element name="text" type="xsd:string"/>
<xsd:element name="cx" type="xsd:string"/>
<xsd:element name="cy" type="xsd:string"/>
</xsd:all>
</xsd:complexType>
<xsd:complexType name="arrayOfItinerary">
<xsd:complexContent>
<xsd:restriction base="SOAP-ENC:Array">
<xsd:attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="tns:itinerary[]" xmlns:wsdl1="http://schemas.xmlsoap.org/wsdl/"/>
</xsd:restriction>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="invalid">
<xsd:all>
<xsd:element name="key" type="xsd:string"/>
<xsd:element name="address" type="xsd:string"/>
</xsd:all>
</xsd:complexType>
<xsd:complexType name="arrayOfInvalid">
<xsd:complexContent>
<xsd:restriction base="SOAP-ENC:Array">
<xsd:attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="tns:invalid[]" xmlns:wsdl1="http://schemas.xmlsoap.org/wsdl/"/>
</xsd:restriction>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="arrayresult">
<xsd:all>
<xsd:element name="sequence" type="tns:arrayOfSequence"/>
<xsd:element name="itinerary" type="tns:arrayOfItinerary"/>
<xsd:element name="invalid" type="tns:arrayOfInvalid"/>
<xsd:element name="message" type="xsd:string"/>
<xsd:element name="totalTime" type="xsd:string"/>
<xsd:element name="totalDistanceCalculated" type="xsd:string"/>
</xsd:all>
</xsd:complexType>
<xsd:complexType name="arrayresult2">
<xsd:all>
<xsd:element name="geo" type="tns:arrayData"/>
<xsd:element name="message" type="xsd:string"/>
</xsd:all>
</xsd:complexType>
</xsd:schema>
</types>
<message name="enriquecerRequest">
<part name="direccion" type="xsd:string"/>
<part name="ciudad" type="xsd:string"/>
<part name="barrio" type="xsd:string"/>
<part name="usuario" type="xsd:string"/>
<part name="clave" type="xsd:string"/></message>
<message name="enriquecerResponse">
<part name="return" type="tns:arrayresult2"/></message>
<message name="enriquecerAsistidoRequest">
<part name="direccion" type="xsd:string"/>
<part name="ciudad" type="xsd:string"/>
<part name="barrio" type="xsd:string"/>
<part name="usuario" type="xsd:string"/>
<part name="clave" type="xsd:string"/></message>
<message name="enriquecerAsistidoResponse">
<part name="return" type="tns:arrayresult2"/></message>
<message name="enriquecerXmlLotesRequest">
<part name="xmlEnvio" type="xsd:string"/>
<part name="usuario" type="xsd:string"/>
<part name="clave" type="xsd:string"/></message>
<message name="enriquecerXmlLotesResponse">
<part name="return" type="xsd:string"/></message>
<portType name="wsSitidataEstandarPortType">
<operation name="enriquecer">
<input message="tns:enriquecerRequest"/>
<output message="tns:enriquecerResponse"/>
</operation>
<operation name="enriquecerAsistido">
<input message="tns:enriquecerAsistidoRequest"/>
<output message="tns:enriquecerAsistidoResponse"/>
</operation>
<operation name="enriquecerXmlLotes">
<input message="tns:enriquecerXmlLotesRequest"/>
<output message="tns:enriquecerXmlLotesResponse"/>
</operation>
</portType>
<binding name="wsSitidataEstandarBinding" type="tns:wsSitidataEstandarPortType">
<soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
<operation name="enriquecer">
<soap:operation soapAction="http://www.sitimapa.com/webservice/sitidata/wsSitidataEstandar.php/enriquecer" style="rpc"/>
<input><soap:body use="encoded" namespace="www.sitimapa.com/webservice/sitidata/wsSitidataEstandar.php" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></input>
<output><soap:body use="encoded" namespace="www.sitimapa.com/webservice/sitidata/wsSitidataEstandar.php" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></output>
</operation>
<operation name="enriquecerAsistido">
<soap:operation soapAction="http://www.sitimapa.com/webservice/sitidata/wsSitidataEstandar.php/enriquecerAsistido" style="rpc"/>
<input><soap:body use="encoded" namespace="www.sitimapa.com/webservice/sitidata/wsSitidataEstandar.php" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></input>
<output><soap:body use="encoded" namespace="www.sitimapa.com/webservice/sitidata/wsSitidataEstandar.php" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></output>
</operation>
<operation name="enriquecerXmlLotes">
<soap:operation soapAction="http://www.sitimapa.com/webservice/sitidata/wsSitidataEstandar.php/enriquecerXmlLotes" style="rpc"/>
<input><soap:body use="encoded" namespace="www.sitimapa.com/webservice/sitidata/wsSitidataEstandar.php" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></input>
<output><soap:body use="encoded" namespace="www.sitimapa.com/webservice/sitidata/wsSitidataEstandar.php" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></output>
</operation>
</binding>
<service name="wsSitidataEstandar">
<port name="wsSitidataEstandarPort" binding="tns:wsSitidataEstandarBinding">
<soap:address location="http://www.sitimapa.com/webservice/sitidata/wsSitidataEstandar.php"/>
</port>
</service>
</definitions> -
MView refresh error on 10gR2..(unique constraint error)
Hi. all.
The database is 2-node RAC 10gR2 on SunOS.
Today morining, I got the following error.
EXEC dbms_refresh.refresh('"ODSFAB"."CURRENTWIP"');
ORA-12008: error in materialized view refresh path
ORA-00001: unique constraint (ODSFAB.CURRENTWIP_GLASS_IDX) violated
ORA-06512: at "SYS.DBMS_SNAPSHOT", line 2254
ORA-06512: at "SYS.DBMS_SNAPSHOT", line 2460
ORA-06512: at "SYS.DBMS_IREFRESH", line 683
ORA-06512: at "SYS.DBMS_REFRESH", line 195
ORA-06512: at line 1
I checked both the source and target table, but there is no unique-key confliction.
The source table has no unique index, but the target table have one unique index
for a business purpose.
Finally, I dropped the miew log on a source table and mview , and recreated mview
log and mview with the same unique constraint and the same data.
I do not understand why I got "Unique constraint error".
Any advice will be welcomed.
Thanks in advance.
Have a good day.
Best Regards.
Message was edited by:
user507290Let us say column A is the unique key on target DB and exists in source DB.
Now, on source DB,
- Value 'X' is inserted in col A
- Value "X" is again inserted in col A (or updated on colA)
- Then one of these 2 rows is deleted
Now, "if" Oracle applies all the transactions from the source to target in the
same sequence as they occured, there is chance you can get unique error.you do
But, if a full refresh, there won't be error.I would say that is a very plausible explanation. Somewhat difficult to verify, in the absence of low-level auditing on the source database.
The situation as described is a bit yucky. Is there no way of putting a unique key on the table in the source database? If not, it seems to me that this scenario is bound to re-occur.
Cheers, APC
Blog : http://radiofreetooting.blogspot.com/ -
Team,
Table T77RCF_SMASK has reference to T77RCF_SMG_ASM.
When compared the two tables we found that following entries are missing in T77RCF_SMASK:
71
72
73
74
75
78
92
95
96
Can you please guide on what should be the entry for these in table T77RCF_SMASK? Would appreciate if full table entries are shown in answer for future users.
Missing entries are causing error "Customizing table T77RCF_SMASK contains no corresponding entry for SMASK_ID = 0071 and so on in SLG1 logs display.
Regards
YashThe table enteries should be as attached
Regards
Khalid -
Unique constraint error on delete/insert
Hi,
I am using Jdeveloper 11.1.1.3.0. I have a ADF table where we can copy lines and delete lines. I get unique constraint error when I save. Looks like the insert operation in happening before the delete operation. Is there a way to set the execution order so that the logical behaviour is delete/update/insert.
Thanks
SVHi,
The unquie contraint is not from the primary key. There are three columns in the table (batch_id, line_number, line_type) which must be unique. In the UI, the user can delete lines, update lines and add lines and finally click the save button that does the commit. On delete the line_number gets re-numbered. So when committing, the unique error occurs because the line number already exists. Looks like insert is happening before update/delete. I cannot do commit after each delete/update/insert. I have to do it only if the user clicks the save button in the end. Is there a way to control the order of execution?
SR -
hi
i have a check constraint on a table B mean Nvl(Quantity,0)>=0 but when i update a table from a trigger on insertion of another table A
with :New.Quantity -ive it gives check constraint error.
Please Note it does not turn the balance into negative for table B
second because im inserting in table A then :new.quantity reffers to table A values not the table B
why this constraint error appears.
any body suggest
thanks in advancetĦ€ §µåдŋ wrote:
i have a check constraint on a table B mean Nvl(Quantity,0)>=0 but when i update a table from a trigger on insertion of another table A
with :New.Quantity -ive it gives check constraint error.
Please Note it does not turn the balance into negative for table B
second because im inserting in table A then :new.quantity reffers to table A values not the table B
why this constraint error appears.Not urgent at all.
So you have a constraint on table B and then a trigger on table A attempts to update table B with a negative quantity which violates the constraint and it throws a constraint error.
That sounds right to me. What's the problem? -
How to identify the constraint error
Hi friends, i got constraint error, like this
{4,209,669 123112 09:27:44:Code :ORA-02290: check constraint (OPS$hgn.CS_MQ_BADNORETAIL_CT7) violated at nopMASTERat sub exec block in pop_je2acct_othr}
How can i identify, the from which procedure or package its failing... kindly help me out ..
thanks in adavance .This surely is not the default Oracle message. it would look like
DECLARE
n NUMBER;
BEGIN
n := 1/0;
END;
DECLARE
ERROR at line 4:
ORA-01476: divisor is equal to zero
ORA-06512: at line 4or
DECLARE
n NUMBER;
BEGIN
n := 1/0;
EXCEPTION
WHEN OTHERS THEN
dbms_output.put_line(
dbms_utility.format_error_stack()||CHR(10)||
dbms_utility.format_error_backtrace()
RAISE;
END;
ORA-01476: divisor is equal to zero
ORA-06512: at line 4So you have to look into your packages and find out how your log messages are built up.
A hint might be nhpMASTERat and pop_je2acct_othr. You can search your code where these names occur:
SELECT owner
,name
,type
,line
,text
FROM sys.all_source
WHERE owner = user
AND ( INSTR(UPPER(text),UPPER('nhpMASTERat')) > 0
OR INSTR(UPPER(text),UPPER('pop_je2acct_othr')) > 0
ORDER BY owner
,name
,type
,lineMarcus
Maybe you are looking for
-
How do I get back my .mac email account?
I am running on 4.2.1, and have been for several weeks. I've never had any problems with my .mac mail account before, but after I rebooted my phone this morning (for an unrelated problem, my .mac account disappeared from my phone. I checked in settin
-
Clearing items with New GL and document split
Hello gurus, When clearing 2 items with opposite amount and the same account assignment, the system generates 2 clearing items for the same account whereas I am expecting to have a clearing document without any item (as it is wotking without document
-
Is there any way to re-size the graph palette buttons? The cursor palette buttons are individual entities and can easily be re-sized, but not the pan/zoom/cursor buttons on the "graph palette". I have a touch-screen and it would be helpful if these
-
Learning Oracle Fusion Applications
I want to learn Oracle Fusion Applications. Can any one please guide me, how can i learn this technology. Any references and sites to learn? Any prerequisites? I have worked on Oracle ADF and Oracle Database, Forms and Reports. Thanks.
-
HT2736 "This Apple ID is not currently eligible to purchase gift certificates"
Got this response trying to e-mail a gift cert. How do I fix this?