Error when inserting data .. to check the functionality of a trigger .
hallo,
im trying to write a trigger like that :
CREATE OR REPLACE TRIGGER raum_besetzt
BEFORE DELETE OR UPDATE OR INSERT ON BUCHUNGEN
FOR EACH ROW
DECLARE
v_p NUMBER;
v_t NUMBER;
BEGIN
SELECT ANzahl_plaetze into v_p
FROM RAEUME;
SELECT ANzahl_teilnehmer into v_t
FROM BUCHUNGEN;
INSERT INTO BUCHUNGEN VALUES (:NEW.BUCH_ID, :NEW.RAUM_ID, :NEW.MITA_ID, :NEW.VON, :NEW.BIS, :NEW.ANZAHL_TEILNEHMER, :NEW.VART_ID);
IF (v_t > v_p) THEN RAISE_APPLICATION_ERROR (-20001, ' diesen RAUM ist leer ');
END IF;
END;the trigger have to check that all participants will be booked in the room can be accommodated. On error, the reservation is cancel.
so i implemented it the way that number of participants ( anzahl_teilnehmer ) in the Table Reservations ( Buchungen ) is greater than the number of places ( Anzahl_plaetze ) in the table Rooms ( Raeume )
so now i want to add some data to the table BUCHUNGEN ( Reservations ), so i can see if the trigger works!
What i get is the Error below !! :
Fehler beim Start in Zeile 56 in Befehl:
INSERT INTO BUCHUNGEN (BUCH_ID, RAUM_ID, MITA_ID, VON, BIS, ANZAHL_TEILNEHMER, VART_ID)
VALUES (5, 5, 5, '', '', 30, 3)
Fehlerbericht:
SQL-Fehler: ORA-01422: Exakter Abruf gibt mehr als die angeforderte Zeilenzahl zurück
ORA-06512: in "RAUM_BESETZT", Zeile 5
ORA-04088: Fehler bei der Ausführung von Trigger 'RAUM_BESETZT'
01422. 00000 - "exact fetch returns more than requested number of rows"
*Cause: The number specified in exact fetch is less than the rows returned.
*Action: Rewrite the query or change number of rows requestedcan anyone help :)
thank you ..
Logic such as this should be written in a little api. A trigger is possible, but it might be pretty difficult to implement the full solution in a trigger which has several restrictions. An api usually doesn't have the same technical restrictions (trigger need to prevent endless loops, therefore they will raise an mutating table error if you insert into the same table)
The main issue is that during the execution of your trigger, another process might add a booking without commiting it yet. But your trigger can't see this new booking from the different session. This has to be solved on a logical level first before solving it on database level. How do you want to handle such a situation?
Similar Messages
-
ORA-14400 error when inserting data in partition
I have a partiotioned table with 20 columns .. out of 20, I have only one defined as not null..
So when I tried inserting the data in the column alone am getting the error :
ORA-14400: inserted partition key does not map to any partition
this is the structure of the table :
partition :
PARTITION BY RANGE (TRANSDATE)
PARTITION DEC200801 VALUES LESS THAN (TO_DATE(' 2008-12-16 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
LOGGING
NOCOMPRESS
TABLESPACE CALLST03
PCTFREE 10
INITRANS 1
MAXTRANS 255
STORAGE (
INITIAL 64K
MINEXTENTS 1
MAXEXTENTS UNLIMITED
BUFFER_POOL DEFAULT
PARTITION DEC200802 VALUES LESS THAN (TO_DATE(' 2009-01-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
LOGGING
NOCOMPRESS
TABLESPACE CALLST03
PCTFREE 10
INITRANS 1
MAXTRANS 255
STORAGE (
INITIAL 64K
MINEXTENTS 1
MAXEXTENTS UNLIMITED
BUFFER_POOL DEFAULT
PARTITION JAN200901 VALUES LESS THAN (TO_DATE(' 2009-01-16 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
LOGGING
NOCOMPRESS
TABLESPACE CALLST03
PCTFREE 10
INITRANS 1
MAXTRANS 255
STORAGE (
INITIAL 64K
MINEXTENTS 1
MAXEXTENTS UNLIMITED
BUFFER_POOL DEFAULT
PARTITION JAN200902 VALUES LESS THAN (TO_DATE(' 2009-02-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
LOGGING
NOCOMPRESS
TABLESPACE CALLST03
PCTFREE 10
INITRANS 1
MAXTRANS 255
STORAGE (
INITIAL 64K
MINEXTENTS 1
MAXEXTENTS UNLIMITED
BUFFER_POOL DEFAULT
PARTITION FEB200901 VALUES LESS THAN (TO_DATE(' 2009-02-14 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
LOGGING
NOCOMPRESS
TABLESPACE CALLST03
PCTFREE 10
INITRANS 1
MAXTRANS 255
STORAGE (
INITIAL 64K
MINEXTENTS 1
MAXEXTENTS UNLIMITED
BUFFER_POOL DEFAULT
PARTITION FEB200902 VALUES LESS THAN (TO_DATE(' 2009-03-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
LOGGING
NOCOMPRESS
TABLESPACE CALLST03
PCTFREE 10
INITRANS 1
MAXTRANS 255
STORAGE (
INITIAL 64K
MINEXTENTS 1
MAXEXTENTS UNLIMITED
BUFFER_POOL DEFAULT
PARTITION MAR200901 VALUES LESS THAN (TO_DATE(' 2009-03-16 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
LOGGING
NOCOMPRESS
TABLESPACE CALLST03
PCTFREE 10
INITRANS 1
MAXTRANS 255
STORAGE (
INITIAL 64K
MINEXTENTS 1
MAXEXTENTS UNLIMITED
BUFFER_POOL DEFAULT
PARTITION MAR200902 VALUES LESS THAN (TO_DATE(' 2009-04-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
LOGGING
NOCOMPRESS
TABLESPACE CALLST03
PCTFREE 10
INITRANS 1
MAXTRANS 255
STORAGE (
INITIAL 64K
MINEXTENTS 1
MAXEXTENTS UNLIMITED
BUFFER_POOL DEFAULT
PARTITION APR200902 VALUES LESS THAN (TO_DATE(' 2009-04-30 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
LOGGING
NOCOMPRESS
TABLESPACE CALLST03
PCTFREE 10
INITRANS 1
MAXTRANS 255
STORAGE (
INITIAL 64K
MINEXTENTS 1
MAXEXTENTS UNLIMITED
BUFFER_POOL DEFAULT
What could be the reason ?
KaiFrom metalink
Oracle 9i Message~~~~~~~~~~~~~~~~~
Error: ORA-14400 (ORA-14400)
Text: inserted partition key does not map to any partition
Cause: An attempt was made to insert a record into, a Range or Composite
Range object, with a concatenated partition key that is beyond the
concatenated partition bound list of the last partition -OR- An
attempt was made to insert a record into a List object with a
partition key that did not match the literal values specified for
any of the partitions.
Action: Do not insert the key. Or, add a partition capable of accepting
the key, Or add values matching the key to a partition
specification
>
So check the date .
What is your insert statement.
Anand
Edited by: Anand... on Mar 4, 2009 5:42 PM -
Error when insert data in Sql Server table(DateTime data type)
Hello all,
I have created a database link in oracle 11g to SQL Server 2008 using Sqlserver gateway for oracle,Oracle run on Linux and SQL Server run on Windows platform.
I have queried a table and it fetches rows from the target table.
I am using this syntax for insert a row in Sql Server table.
Insert into Prod@sqlserver (NUMITEMCODE, NUMPREOPENSTOCK, NUMQNTY, NUMNEWOPENSTOCK, DATPRODDATE , TXTCOMPANYCODE, "bolstatus", NUMRESQNTY )
Values (1118 , 1390.0 , 100.0 ,1490 , '2012-06-23 12:37:58.000','SFP' ,0 , 0 );
but it give me error on DATPRODDATE,The data type of DATPRODDATE column in Sql Server is DATETIME.
My Question is how can i pass the date values in INSERT statement for Sql Server DateTime data type.
RegardsJust as with Oracle, you have to specify the date using the to_date() function or use the native date format for the target database (if you can figure out what that is). This is good practice anyway and a good habit to get into.
-
OATS:Error When Adding Data Sources to the Oracle Load Technology suite
Hi,
I am trying to add the data source to the OLT to work on the demo files generated during installation.
When i tried to add the
In the Add monitor : step 1 window i selected the Perfmon (Windows Performance Monitor) and click Next.
In Add monitor : step2 window the default settings for Monitored System and Data Collector is not changed and clicked on the Next button. When I click the next button i am getting an error as
Error while calling discovery.
Data collector setup failed on oats-am://localhost:9001: code=Windows reason=4
(message id=ds.dcStartupFailed)
This may be because the data collector didn't respond in time.Try again.
I am new to the OATS so i dono y i am getting this error. Plz tell what settings to b done to resolve this.
Error in Log File is shown below
16:05:41,297 WARN [DCController] oracle.oats.datasources.DCController.onAgentStartupFailed(DCController.java:93) DataCollector failed to start: id=3f7e5492-4eb7-452c-9322-e009813f2d23 code=4 reason=Request error : agent image not found on disk: service.exe
16:05:41,297 WARN [EmpStartClient] oracle.oats.core.EmpStartClient.onAgentStartupFailed(EmpStartClient.java:222) Received startup failure process id=3f7e5492-4eb7-452c-9322-e009813f2d23 failCode=4: Request error : agent image not found on disk: service.exe
16:05:41,297 ERROR [SelfServiceListener] oracle.oats.request.datasources.RequestDiscovery.invoke(RequestDiscovery.java:55) Failed in starting discovery
16:05:41,297 ERROR [SelfServiceListener] oracle.oats.request.datasources.RequestDiscovery.invoke(RequestDiscovery.java:56) oracle.oats.datasources.exception.DataSourceException: Data collector startup failed on oats-am://localhost:9001: code=Windows reason=4\n\n(message id=ds.dcStartupFailed)
16:05:41,297 ERROR [MonitorAction] oracle.oats.olt.OracleActionBase.error(OracleActionBase.java:318) Error while calling discovery.\n\n
oracle.oats.core.ApplicationMDBException: Server returned error in response to request 87: Discovery for request null failed: code=dis2\n\n(message id=console.discoveryError)\n\n(message id=responseServerError)
at oracle.oats.app.session.SessionSyncedClient.getResponse(SessionSyncedClient.java:480)
at oracle.oats.app.console.ConsoleSyncedClient.genericDiscovery(ConsoleSyncedClient.java:623)
at oracle.oats.app.console.ConsoleSyncedClient.genericDiscovery(ConsoleSyncedClient.java:597)
at oracle.oats.app.console.ConsoleSyncedClient.perfmonDiscoverAll(ConsoleSyncedClient.java:872)
at oracle.oats.olt.datasource.action.PerfmonAction.getPerfmonObjects(PerfmonAction.java:153)
at oracle.oats.olt.datasource.action.PerfmonAction.discover(PerfmonAction.java:41)
at oracle.oats.olt.datasource.action.AgentAction.discoverSpecific(AgentAction.java:98)
at oracle.oats.olt.datasource.action.MonitorAction.step3(MonitorAction.java:182)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at oracle.oats.olt.OracleActionBase.execute(OracleActionBase.java:160)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
at oracle.oats.olt.ActionServlet.process(ActionServlet.java:180)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.oats.olt.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:171)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3588)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2200)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2106)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1428)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
Caused by: oracle.oats.client.console.ConsoleException: Discovery for request null failed: code=dis2\n\n(message id=console.discoveryError)
at oracle.oats.console.ConsoleEngine.startOneConsoleDiscoverRequest(ConsoleEngine.java:1588)
at oracle.oats.request.console.RequestConsoleDiscovery.invoke(RequestConsoleDiscovery.java:51)
at oracle.oats.ejb.SelfServiceListener.onMessage(SelfServiceListener.java:122)
at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:4585)
at weblogic.jms.client.JMSSession.execute(JMSSession.java:4271)
at weblogic.jms.client.JMSSession.executeMessage(JMSSession.java:3747)
at weblogic.jms.client.JMSSession.access$000(JMSSession.java:114)
at weblogic.jms.client.JMSSession$UseForRunnable.run(JMSSession.java:5096)
at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:516)
... 2 more
Caused by: oracle.oats.datasources.exception.DataSourceException: Server threw an exception in response to request 88\n\n(message id=responseServerException)
at oracle.oats.app.datasources.DataSourceSyncedClient.getResponse(DataSourceSyncedClient.java:91)
at oracle.oats.app.datasources.DataSourceSyncedClient.startOneDiscoverRequest(DataSourceSyncedClient.java:167)
at oracle.oats.console.ConsoleEngine.startOneConsoleDiscoverRequest(ConsoleEngine.java:1584)
... 10 more
Caused by: oracle.oats.datasources.exception.DataSourceException: Data collector startup failed on oats-am://localhost:9001: code=Windows reason=4\n\n(message id=ds.dcStartupFailed)
at oracle.oats.datasources.FrameworkManager.startDataCollector(FrameworkManager.java:929)
at oracle.oats.datasources.FrameworkManager.findFrameworkID(FrameworkManager.java:275)
at oracle.oats.datasources.FrameworkManager.startOneDiscoverRequest(FrameworkManager.java:1021)
at oracle.oats.request.datasources.RequestDiscovery.invoke(RequestDiscovery.java:49)
at oracle.oats.ejb.SelfServiceListener.onMessage(SelfServiceListener.java:122)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
at com.bea.core.repackaged.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at com.bea.core.repackaged.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at $Proxy135.onMessage(Unknown Source)
at weblogic.ejb.container.internal.MDListener.execute(MDListener.java:466)
at weblogic.ejb.container.internal.MDListener.transactionalOnMessage(MDListener.java:371)
at weblogic.ejb.container.internal.MDListener.onMessage(MDListener.java:327)
Thanx in advance
Edited by: user10300810 on Oct 25, 2009 2:20 AM
Edited by: user10300810 on Oct 27, 2009 3:40 AMHi
It looks like there is no agent running on your machine.
Can you check that the following service is running: Oracle Application Testing Suite Agent Service
Regards
Alex -
when I try to insert some data using XSQL's <insert-request> I get this message:
Exception 'java.sql.SQLException:Non supported character set: oracle-character-set-170' encountered during processing ROW element 0All prior XML row changes were rolled back. in the XML document.
my database is using CROATIAN_CROATIA.EE8MSWIN1250
please tell my why?
thanks
nullsource xml
<?xml version="1.0"?>
<dokument id="">
<broj>100006</broj>
<datum>13.02.2001</datum>
<partner>
<par_id>1</par_id>
<sifra>00001</sifra>
<naziv>Ritam d.o.o.</naziv>
</partner>
<stavka id="">
<flag>
</flag>
<art_id>1</art_id>
<sifra>00001</sifra>
<barcode>1234567890123</barcode>
<naziv>phf
PHF</naziv>
<kolicina>2,00</kolicina>
<cijena>222,00</cijena>
</stavka>
<stavka id="">
<flag>
</flag>
<art_id>2</art_id>
<sifra>00002</sifra>
<barcode>12345678</barcode>
<naziv>artikal 1</naziv>
<kolicina>1,00</kolicina>
<cijena>111,00</cijena>
</stavka>
</dokument>
insert.xsql
<?xml version="1.0" encoding="windows-1250" ?>
<xsql:insert-request xmlns:xsql="urn:oracle-xsql" connection="baza817"
table="dokument_ov" transform="insert.xsl" date-format="dd.MM.yyyy"/>
insert.xsl
<?xml version="1.0" encoding="windows-1250"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" version="1.0"/>
<xsl:template match="/">
<rowset>
<xsl:for-each select="//dokument">
<row>
<dok_id><xsl:value-of select="@id"/></dok_id>
<broj><xsl:value-of select="broj"/></broj>
<datum><xsl:value-of select="datum"/></datum>
<partner>
<par_id><xsl:value-of select="./partner/par_id"/></par_id>
<sifra><xsl:value-of select="./partner/sifra"/></sifra>
<naziv><xsl:value-of select="./partner/naziv"/></naziv>
</partner>
<stavke>
<xsl:for-each select="//stavka">
<stavke_item>
<kolicina><xsl:value-of select="translate(kolicina,',','.')"/></kolicina>
<cijena><xsl:value-of select="translate(cijena,',','.')"/></cijena>
<sta_id><xsl:value-of select="@id"/></sta_id>
<artikal>
<art_id><xsl:value-of select="art_id"/></art_id>
<sifra><xsl:value-of select="sifra"/></sifra>
<barcode><xsl:value-of select="barcode"/></barcode>
<naziv><xsl:value-of select="naziv"/></naziv>
</artikal>
</stavke_item>
</xsl:for-each>
</stavke>
</row>
</xsl:for-each>
</rowset>
</xsl:template>
</xsl:stylesheet>
dokument_ov
create or replace view dokument_ov as
select d.dok_id, d.broj, d.datum, partner_ty(p.sifra,p.naziv,p.par_id) partner,
cast(
multiset(select s.kolicina, s.cijena, s.sta_id,
artikal_ty(a.sifra, a.barcode, a.naziv, a.art_id) artikal
from stavke s, artikli a
where a.art_id = s.art_id and s.dok_id = d.dok_id order by sta_id) as stavke_ty
) stavke
from dokumenti d, partneri p
where d.par_id=p.par_id(+)
order by dok_id
dokument_ov_ins
create or replace trigger dokument_ov_ins
instead of insert on dokument_ov
for each row
declare
m_stavke_t stavke_ty;
m_stavka_t stavka_ty;
m_artikal_t artikal_ty;
m_partner_t partner_ty;
m_par_id NUMBER;
m_dok_id NUMBER;
m_sta_id NUMBER;
m_art_id NUMBER;
begin
if :new.dok_id < 0 then
delete from stavke where dok_id = abs(:new.dok_id);
delete from dokumenti where dok_id = abs(:new.dok_id);
else
m_partner_t := :new.partner;
--dokument
begin
select dok_id into m_dok_id from dokumenti where dok_id = :new.dok_id;
update dokumenti set broj = :new.broj, datum = nvl(:new.datum,sysdate), par_id = m_partner_t.par_id
where dok_id = :new.dok_id;
exception
when no_data_found then
insert into dokumenti(tip, broj, datum, dok_id, par_id)
values('1', :new.broj, nvl(:new.datum,sysdate), dok_seq.nextval, m_partner_t.par_id)
returning dok_id into m_dok_id;
end;
--stavke
m_stavke_t := :new.stavke;
for i in 1..m_stavke_t.count loop
m_stavka_t := m_stavke_t(i);
m_artikal_t := m_stavka_t.artikal;
begin
if m_stavka_t.sta_id < 0 then
delete from stavke where sta_id = abs(m_stavka_t.sta_id);
else
select sta_id into m_sta_id from stavke where sta_id = m_stavka_t.sta_id and dok_id = m_dok_id;
update stavke set kolicina = m_stavka_t.kolicina, cijena = m_stavka_t.cijena
where sta_id = m_stavka_t.sta_id and dok_id = m_dok_id;
end if;
exception
when no_data_found then
insert into stavke(dok_id, sta_id, kolicina, cijena, art_id)
values (m_dok_id, sta_seq.nextval, m_stavka_t.kolicina, m_stavka_t.cijena, m_artikal_t.art_id);
end;
end loop;
end if;
end dokumentview_ins;
null -
Error when sending data request
Hi All,
i have scheduled info package for different type data sources in bi 7.0, for this i am getting the data from ecc 6.0 . all of this schedule's showing the status "error when sending data request" with the following details.
status
diagnosis
the request idoc could not be sent to the source system using rfc
system response
there is an idoc in the warehouse outbox that did not arrive in the ale inbox of the source system
in step by step analysis it is showing
rfc to source system successful showing with ash status
data selection successfully stated and finished ? show with red status
in that details tab
request : showing with green status
everything ok
extraction :showing with red status
missing messages
transfer(idocs and trfc) : missing messeges
processing(data packet) : no data
it is showing technical status with red as processing overdue
processing step call to source system
so it is showing error with 0 from 0 records.
please any body could help me for solving this error.
regards,
naveen.Hi
Seems you have connectivity issues between the Source system and Bi system.
You need to check whether you have data on R/3 side via RSA3 with Full / Delta Update Modes with Target System as your BI system.
RSA13--Source System -- Right click Connection parameters/check/Restore/Activate again Say Replicate All Data Sources (If Possible , provided if you have time because it consumes lot of time )
You need to check the tRFC Queue SM58/59 for any Stucks and WE19/20 for IDocs.
Much of BASIS Issue .
Hope it helps and clear -
I'm getting an "invalid column name" error when I try to use the xmlelement() function (and the like). Is this function only available on 9i Release 2? How do I find the SQLX functions and/or load them up for use? Hopefully someone will see this as a quick question and answer it for me!
Cheers,
FishReply
Sorry. These are not loadable they are core database functionality only available with 9.2.0.1.0 and later.. -
Error when extracting data with extractor 2lis_04_matnr - NEED HELP ASAP !!
Hi experts!
Got an error when extracting data with extractor 2lis_04_matnr.
System says (short dump):
DUMP TEXT START----
Runtime error: CONNE_IMPORT_WRONG_COMP_TYPE
Exception: CX_SY_IMPORT_MISMATCH_ERROR
Error when attempting to import object "MC04P_0MAT_TAB".
The current ABAP program "SAPLMCEX" had to be terminated because one of the statements could not be executed. This is probably due to an error in the ABAP program. When attempting to import data, it was discovered that the data type of the stored data was not the same as that specified in the program.
An exception occurred. This exception is dealt with in more detail below. The exception, which is assigned to the class 'CX_SY_IMPORT_MISMATCH_ERROR', was neither caught nor passed along using a RAISING clause, in the procedure "MCEX_BW_LO_API" "(FUNCTION)".
Since the caller of the procedure could not have expected this exception
to occur, the running program was terminated.
The reason for the exception is: When importing the object "MC04P_0MAT_TAB", the component no. 5 in the dataset has a different type from the corresponding component of the target object in the program "SAPLMCEX". <b>The data type is "D" in the dataset, but "C" in the program.</b>
DUMP TEXT END----
Please, can someone explain me how to solve it?
Really need help ASAP!
Thanks in advance,
Jaume
Message was edited by:
Jaume Saumell
Message was edited by:
Jaume SaumellHi,
Check this note: 328181
So you need to delete entries in SM13/LBWQ for application and also detup table content.
And then refill teh set up table.
If you are in production clear the entries by running collective run no of times for this application 04.
With rgds,
Anil Kumar Sharma .P -
SQL Error when inserting record
When attempting to update a record in dreamweaver, I am receiving the following error:
"You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' Organization, Office, Department, Phone, EmailAddress, JobTitle, `OfficialMaili' at line 1"
I suspect there is a problem with my SQL statements but I'm not a programmer and I was hoping someone could take a look at my script and see if there is an obvious problem with my SQL statements.
Thank you for any help you can provide and here is the entire script from my page:
<?php require_once('Connections/group4.php'); ?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
if (PHP_VERSION < 6) {
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
$theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
break;
return $theValue;
$editFormAction = $_SERVER['PHP_SELF'];
if (isset($_SERVER['QUERY_STRING'])) {
$editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);
if ((isset($_POST["MM_update"])) && ($_POST["MM_update"] == "form1")) {
$updateSQL = sprintf("UPDATE saar SET Supervisor_SupervisorNumber=%s, TypeofRequest=%s, `Date`=%s, SystemName=%s, SystemLocation=%s, JustificationforAccess=%s, TypeofAccessRequired=%s, UserRequiredAccess=%s, VerificationofNeedtoKnow=%s, AccessExpDate=%s, Individual_IndividualNumber=%s WHERE SAARNumber=%s",
GetSQLValueString($_POST['Supervisor_SupervisorNumber'], "int"),
GetSQLValueString($_POST['TypeofRequest'], "text"),
GetSQLValueString($_POST['Date'], "text"),
GetSQLValueString($_POST['SystemName'], "text"),
GetSQLValueString($_POST['SystemLocation'], "text"),
GetSQLValueString($_POST['JustificationforAccess'], "text"),
GetSQLValueString($_POST['TypeofAccessRequired'], "text"),
GetSQLValueString($_POST['UserRequiredAccess'], "text"),
GetSQLValueString($_POST['VerificationofNeedtoKnow'], "text"),
GetSQLValueString($_POST['AccessExpDate'], "text"),
GetSQLValueString($_POST['Individual_IndividualNumber'], "int"),
GetSQLValueString($_POST['SAARNumber'], "int"));
mysql_select_db($database_group4, $group4);
$Result1 = mysql_query($updateSQL, $group4) or die(mysql_error());
$updateGoTo = "view.php?SAARNumber=" . $row_rsSAAR['SAARNumber'] . "";
if (isset($_SERVER['QUERY_STRING'])) {
$updateGoTo .= (strpos($updateGoTo, '?')) ? "&" : "?";
$updateGoTo .= $_SERVER['QUERY_STRING'];
header(sprintf("Location: %s", $updateGoTo));
$varSupervisor_rsSAAR = "2";
if (isset($_GET['SAARNumber'])) {
$varSupervisor_rsSAAR = $_GET['SAARNumber'];
mysql_select_db($database_group4, $group4);
$query_rsSAAR = sprintf("SELECT * FROM supervisor, saar, individual WHERE SAARNumber = %s AND saar.Supervisor_SupervisorNumber = supervisor.SupervisorNumber AND individual.IndividualNumber = saar.Individual_IndividualNumber", GetSQLValueString($varSupervisor_rsSAAR, "int"));
$rsSAAR = mysql_query($query_rsSAAR, $group4) or die(mysql_error());
$row_rsSAAR = mysql_fetch_assoc($rsSAAR);
$totalRows_rsSAAR = mysql_num_rows($rsSAAR);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Validate a User</title>
<script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
<link href="SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" />
<style type="text/css">
.header {
font-size: 36px;
text-decoration: underline;
.quote {
font-size: 18px;
font-style: italic;
</style>
</head>
<body>
<p><img src="Images/EGA.png" width="227" height="222" alt="EGA" /><span class="header">SAAR Tracking System
</span></p>
<ul id="MenuBar1" class="MenuBarHorizontal">
<li><a href="home.php">Home</a> </li>
<li><a href="search.php">Search</a></li>
<li><a href="contact.php">Contact Us</a> </li>
</ul>
<p> </p>
<p>User Information:</p>
<p> </p>
<form action="<?php echo $editFormAction; ?>" method="post" name="form1" id="form1">
<table align="center">
<tr valign="baseline">
<td nowrap="nowrap" align="right">TypeofRequest:</td>
<td><input type="text" name="TypeofRequest" value="<?php echo htmlentities($row_rsSAAR['TypeofRequest'], ENT_COMPAT, 'utf-8'); ?>" size="32" /></td>
</tr>
<tr valign="baseline">
<td nowrap="nowrap" align="right">Date:</td>
<td><input type="text" name="Date" value="<?php echo htmlentities($row_rsSAAR['Date'], ENT_COMPAT, 'utf-8'); ?>" size="32" /></td>
</tr>
<tr valign="baseline">
<td nowrap="nowrap" align="right">SystemName:</td>
<td><input type="text" name="SystemName" value="<?php echo htmlentities($row_rsSAAR['SystemName'], ENT_COMPAT, 'utf-8'); ?>" size="32" /></td>
</tr>
<tr valign="baseline">
<td nowrap="nowrap" align="right">SystemLocation:</td>
<td><input type="text" name="SystemLocation" value="<?php echo htmlentities($row_rsSAAR['SystemLocation'], ENT_COMPAT, 'utf-8'); ?>" size="32" /></td>
</tr>
<tr valign="baseline">
<td nowrap="nowrap" align="right">JustificationforAccess:</td>
<td><input type="text" name="JustificationforAccess" value="<?php echo htmlentities($row_rsSAAR['JustificationforAccess'], ENT_COMPAT, 'utf-8'); ?>" size="32" /></td>
</tr>
<tr valign="baseline">
<td nowrap="nowrap" align="right">TypeofAccessRequired:</td>
<td><input type="text" name="TypeofAccessRequired" value="<?php echo htmlentities($row_rsSAAR['TypeofAccessRequired'], ENT_COMPAT, 'utf-8'); ?>" size="32" /></td>
</tr>
<tr valign="baseline">
<td nowrap="nowrap" align="right">UserRequiredAccess:</td>
<td><input type="text" name="UserRequiredAccess" value="<?php echo htmlentities($row_rsSAAR['UserRequiredAccess'], ENT_COMPAT, 'utf-8'); ?>" size="32" /></td>
</tr>
<tr valign="baseline">
<td nowrap="nowrap" align="right">VerificationofNeedtoKnow:</td>
<td><input type="text" name="VerificationofNeedtoKnow" value="<?php echo htmlentities($row_rsSAAR['VerificationofNeedtoKnow'], ENT_COMPAT, 'utf-8'); ?>" size="32" /></td>
</tr>
<tr valign="baseline">
<td nowrap="nowrap" align="right">AccessExpDate:</td>
<td><input type="text" name="AccessExpDate" value="<?php echo htmlentities($row_rsSAAR['AccessExpDate'], ENT_COMPAT, 'utf-8'); ?>" size="32" /></td>
</tr>
<tr valign="baseline">
<td nowrap="nowrap" align="right"> </td>
<td><input type="submit" value="Update record" /></td>
</tr>
</table>
<input type="hidden" name="SAARNumber" value="<?php echo $row_rsSAAR['SAARNumber']; ?>" />
<input type="hidden" name="Supervisor_SupervisorNumber" value="<?php echo htmlentities($row_rsSAAR['Supervisor_SupervisorNumber'], ENT_COMPAT, 'utf-8'); ?>" />
<input type="hidden" name="Individual_IndividualNumber" value="<?php echo htmlentities($row_rsSAAR['Individual_IndividualNumber'], ENT_COMPAT, 'utf-8'); ?>" />
<input type="hidden" name="MM_update" value="form1" />
<input type="hidden" name="SAARNumber" value="<?php echo $row_rsSAAR['SAARNumber']; ?>" />
</form>
<p> </p>
<p class="quote">"Be polite, be professional, but have a plan to kill everybody you meet" General James Mattis</p>
<p> </p>
<script type="text/javascript">
var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
</script>
</body>
</html>
<?php
mysql_free_result($rsSAAR);
mysql_free_result($rsSupervisor);
?>> I am being directed to the page that has the error message on it.
So you have two problems. First, you have a SQL error on the page you are being redirected to, and second, you are being sent to the wrong page...correct?
What's the name of the page you want to be redirected to? What's the name of the page you are being redirected to? -
Admin Tool Error When Viewing Data in Physical Layer nQSError: 43093
I am trying to view the data in my Admin Tool in the Physical Layer, I am getting:
[NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred.
[nQSError: 43093] An error occurred while processing the EXECUTE PHYSICAL statement.
[nQSError: 17001] Oracle Error code: 904, message: ORA-00904: "STUDENT_NUMBER": invalid identifier at OCI call OCIStmtExecute.
[nQSError: 17010] SQL statement preparation failed.
I know why I am getting the ORA-00904 error (the data structure in the external database has changed the the column STUDENT_NUMBER does not exist). However, I am getting TNS Listener errors when trying to re-import the changed data structure (import -> through server). I have checked my ODBC connection and it seems that is not the issue. This functionality existed before (I did pull in the data structure, that is where my error is originating from). Is there something I am missing?
Any insight is appreciated.
Thank you,
KyleHi,
After an upgrade, these kind of issues can happen for several reasons as below
1. Wrong OCI Call Interface. If ODBC 3.5 has been used an Interface in 10g, then the upgraded .rpd might still be using the same even when you have got a number of different options to choose from in 11g. To resolve issues of this type change the underlying database version in the physical layer of the .rpd. Once, you make this change you can see a variety of changes in the queries, performance etc for good.
2. After you did a 'View Data' on the table, go through the NQQuery.log to see the query it is firing (Yes, you need to have log level set for this user though) and analyze it from the DB end. See, if you run the query in the DB it is fast, but if it is the Admin tool that hangs up with this query. In this case check the network speed, database settings, system DSN driver etc.
Hope this helps.
Thank you,
Dhar -
Error when extraction with generic datasource using function model
Hi,experts,When i check the error log in bw side for one egeneric datasource from R/3 side , it shows all the data from the datasource has been extracted ,and the error lies in the data selection .But when I use the Tcode RSA3 to check the datasource to check the functionality of selection ,its seems ok .
Could and I give me some clue ?Hi,
Seems function module checks the selection in the infopackage while loading the data. Could you check if there is any selection which is expected but not given in the infopackge or incorrectly given.
Hope this helps.
Regards,
Viren -
Error while insert data using execute immediate in dynamic table in oracle
Error while insert data using execute immediate in dynamic table created in oracle 11g .
first the dynamic nested table (op_sample) was created using the executed immediate...
object is
CREATE OR REPLACE TYPE ASI.sub_mark AS OBJECT (
mark1 number,
mark2 number
t_sub_mark is a class of type sub_mark
CREATE OR REPLACE TYPE ASI.t_sub_mark is table of sub_mark;
create table sam1(id number,name varchar2(30));
nested table is created below:
begin
EXECUTE IMMEDIATE ' create table '||op_sample||'
(id number,name varchar2(30),subject_obj t_sub_mark) nested table subject_obj store as nest_tab return as value';
end;
now data from sam1 table and object (subject_obj) are inserted into the dynamic table
declare
subject_obj t_sub_mark;
begin
subject_obj:= t_sub_mark();
EXECUTE IMMEDIATE 'insert into op_sample (select id,name,subject_obj from sam1) ';
end;
and got the below error:
ORA-00904: "SUBJECT_OBJ": invalid identifier
ORA-06512: at line 7
then when we tried to insert the data into the dynam_table with the subject_marks object as null,we received the following error..
execute immediate 'insert into '||dynam_table ||'
(SELECT887684 wrote:
ORA-00904: "SUBJECT_OBJ": invalid identifier
ORA-06512: at line 7The problem is that your variable subject_obj is not in scope inside the dynamic SQL you are building. The SQL engine does not know your PL/SQL variable, so it tries to find a column named SUBJECT_OBJ in your SAM1 table.
If you need to use dynamic SQL for this, then you must bind the variable. Something like this:
EXECUTE IMMEDIATE 'insert into op_sample (select id,name,:bind_subject_obj from sam1) ' USING subject_obj;Alternatively you might figure out to use static SQL rather than dynamic SQL (if possible for your project.) In static SQL the PL/SQL engine binds the variables for you automatically. -
Error when inserting or changing in a sorted table
Hi Experts,
When i am executing a webdynpro application it says Error when inserting or changing in a sorted table. Can any one help for this.
The termination type was: RABAX_STATE
The ABAP call stack was:
Method: GET_CATEGORY_LIST of program /1BCWDY/F9XHYWN4WKNMG4CDUGA8==CP
Method: IF_COMPONENTCONTROLLER~GET_CATEGORY_LIST of program /1BCWDY/F9XHYWN4WKNMG4CDUGA8==CP
Method: WDDOMODIFYVIEW of program /1BCWDY/F9XHYWN4WKNMG4CDUGA8==CP
Method: IF_WDR_VIEW_DELEGATE~WD_DO_MODIFY_VIEW of program /1BCWDY/F9XHYWN4WKNMG4CDUGA8==CP
Method: DO_MODIFY_VIEW of program CL_WDR_DELEGATING_VIEW========CP
Method: MODIFY_VIEW of program CL_WDR_VIEW===================CP
Method: DO_MODIFY_VIEW of program CL_WDR_CLIENT_COMPONENT=======CP
Method: DO_MODIFY_VIEW of program CL_WDR_WINDOW_PHASE_MODEL=====CP
Method: PROCESS_REQUEST of program CL_WDR_WINDOW_PHASE_MODEL=====CP
Method: PROCESS_REQUEST of program CL_WDR_WINDOW=================CP
in ST22
Object Definition
DATA: lo_node TYPE REF TO if_wd_context_node,
lo_node_info TYPE REF TO if_wd_context_node_info,
lo_element TYPE REF TO if_wd_context_element.
Additional Data declarations
DATA: lv_key TYPE string.
Get context node.
lo_node = wd_context->get_child_node( name = 'DROPDOWNLISTS' ).
lo_node_info = lo_node->get_node_info( ).
Call method to fetch the categories.
CALL METHOD cl_hap_wd_start_page_ui=>category_get_list
EXPORTING
add_on_application = add_on_application
IMPORTING
t_categories = lt_categories.
Append Default selection entry 'All'.
lw_category-category_id = '00000000'.
lw_category-category_name = 'All'.
APPEND lw_category TO lt_categories.
Sort table after appending the new entry.
SORT lt_categories ASCENDING.
Loop through the category list and populate key(category_id) value(category_name) pair for
LOOP AT lt_categories INTO lw_category.
lw_key_value-key = lw_category-category_id.
625 lw_key_value-value = lw_category-category_name.
>>>>> APPEND lw_key_value TO lt_key_values.------>Here it throws an error
627 CLEAR: lw_key_value, lw_category.
628 ENDLOOP.
629
630 * Bind the category key-value pair to the context attribute.
631 CALL METHOD lo_node_info->set_attribute_value_set
632 EXPORTING
633 name = 'CATEGORY_LIST'
634 value_set = lt_key_values.
635
636 * Make the entry 'All' as default selected.
637 CALL METHOD lo_node->set_attribute
638 EXPORTING
639 value = '00000000'
640 name = 'CATEGORY_LIST'.
641
642 ENDMETHOD.
643
644 method GET_EMPLOYEES.
645Hello Durga,
from the error what I understood is lt_key_values is a sorted table and you are trying append a new line to it. Incase of sorted table you need to use the INSERT statement and not the APPEND statement.
INSERT lw_key_value INTO table lt_key_values.
BR, Saravanan -
Error when inserting Web Dynpro script in Adobe form
Hi
In my WD component in one of the view I have an ADOBE form (Online scenario) and a button to save data into backend. In the ADOBE form everything is working properly, however the problem is when I click on the button to save, Its not getting into my action code. Even I am not getting any error other than the wait symbol.
In the form I have taken ZCI layout but when i'm inserting Webdynpro Script its showing an error 'Error when inserting Web Dynpro script'.
Please let me know why this error is getting.
Thanks
RamHi Ram,
I hope you help me,
I have the same error, when I insert a web Dynrp Script, what version of SAPGUI do you use?
Thanks -
Error by inserting data into a field of datatype LONG
Hi,
When inserting data into a field of datatype long in oracle8 database via SQL Plus or SQL worksheet there occurs the following error message: "field in data file exceeds the maximum length".
If I access to the database from a selve written program via odbc there is no problem when inserting the data by the same sql statement.
So what can I do?
Thanks in advance!
JuergenWhat does your SQL statement look like?
Maybe you are looking for
-
hi all, i'm using the: cl_gui_frontend_services=>file_save_dialog class and method.. My question, how can i do for RESTRICT the file extension of the file JUST to '.txt' ?? if the user select the name of the file to create to 123.pdf -for example- th
-
Recording tv shows from dvr to my pc
I have a brighthouse DVR and want to record some of the show's from it,I have a HP 9500y pc equiped with burnning/labaling abilty but no idea how to hook them together,or if it's even possible. any info would be great thanks
-
Still frames from DVD's on player
Is there anyway to capture stills from a DVD your are playing on the DVD player? Someone told me there was once, but I forget what he said to do. Thanks!
-
Boris Title 3D keeps crashing my FCP?
My Boris 3D titling tool keeps crashing my FCP????? And when I relaunches FCP it doesn't even bring me back to the same project??? Thanks
-
Hi all I need to compare two schema structures. I tried to do so using the utility in OEM in Change Management Pack. I am unable to create the baseline, it is giving me following error. VBO-1508:An error has occurred and the server object could not b