Business rules in 11.1.1.3 execute more than once
My client has the situation where certain business rules (launched from the Planning BR interface) will execute more than once, sometimes twice or even three times. It seems that the rule will start to execute and then after 1 or two minutes, will launch again. the job console will show the information.
This is a known issue and has to do with the http timeout settings. Usually this will happen on the 5 minute limit, but it depends what setting they have.
Take a look at this article and see if it applies:
Business Rules That Take More Than Five Minutes to Execute Are Re-launched Repeatedly [ID 755406.1]
Agnete
Edited by: Agnete on Oct 22, 2012 12:51 PM
Similar Messages
-
Why a function column created inside a view is executed more than once when called more than once?
EXAMPLE:
create or replace view aux1 as
date_column,
any_function(date_column) column1
from any_table
create or replace view aux2 as
column1 c1,
column1 c2,
column1 c3
from aux1
select * from aux2
It will execute 3 times the function any_function... logically the value will be the same for all columns...
I understand why!... are 3 calls... but...
Why not to create a "small" verification and if the function column was execute replace the second, the third... value? ... instead of execute 3, 4... times...
tks
BragaActually, this is more than a performance issue. This is a consistency problem. If the function is NOT deterministic then you may get different values for each call which is clearly not consistent with selecting 3 copies of the same column from a row. Oracle appears to have fixed this in 9i...
Connected to:
Oracle8i Enterprise Edition Release 8.1.7.2.0 - Production
With the Partitioning option
JServer Release 8.1.7.2.0 - Production
create view v1 as select dbms_random.value(1,100) r from dual;
create view v2 as select r r1, r r2 from v1;
select * from v2;
R1 R2
93 74
Connected to:
Oracle9i Enterprise Edition Release 9.0.1.3.0 - Production
With the Partitioning option
JServer Release 9.0.1.3.0 - Production
create view v1 as select dbms_random.value(1,100) r from dual;
create view v2 as select r r1, r r2 from v1;
select * from v2;
R1 R2
78 78Richard -
Prepared statement st in servlet - not executing more than once!
Hi,
my problem is that the following piece of code in a servlet does not get executed more than once:
myQuery = "DELETE FROM MREMINDERS WHERE username=? AND reminders=?";
PreparedStatement st = conn.prepareStatement(myQuery);
st.setString(1,usern);
st.setString(2,oldRem);
st.executeUpdate();
st.close();
The above code is called in a servlet to delete fields from a table. I call this code in a for loop from another method in the servlet. It executes the first time in the loop, but the second time onwards it throws an error!!! please let me know how to solve this ASAP since i am at the point of frustration now!!!
thanx...Hi,
sorry... i got it fixed!!!! :-)
i was closing a JDBC connection which was generating that error!!
thanx again.. -
Hello All,
We have crystal reports integrated in the java web application. Reports with parameters are executing query more than once (found in the SQL Server Profiler).
Scenario:
Report query with parameter :- select * from cieuser where id >= {?userId}.
User provides value '1' to this parameter and selects report execution.
Before executing the report, our system updates the database connection details of the rpt with other configured details.
Issues:
During updating of the database details on execution of statement "databaseController.setTableLocation(orig.getTable(i), table);" , the profiler shows:
select * from cieuser where id >= NULL
And on executon of the statement "viewer.processHttpRequest(request, response, getServletConfig()
.getServletContext(), null);" the profiler shows the following:
select * from cieuser where id >= {?userId}
select * from cieuser where id >= 1
select * from cieuser where id >= 1
When the same report is executed from the standalone crystal designer, the profiler shows one time query execution:
select * from cieuser where id >= 1
Environment:
Crystal reports designer - 11.5.10.1263
JRC - 11.5
Please advise.
Thanks,
Ratan.Hello,
SAP decided to allow the confirmation of orders with a final confirmation (status CNF) deliberately. So it is possible to confirm work that was maybe forgotten or if the flag 'final confirmation' was set mistakenly. Only the status CLSD will prevent further confirmations.
If you want forbid further confirmations of orders with status CNF you can use enhancements CONFPM* or BAdI WORKORDER_CONFIRM. However, the probably easiest way is to define a user status that is set at business transaction 'Confirm order' and, once set, forbid business transaction 'Confirm order'.
Regards,
Reinhard -
SD copy control (routines) in ECC6 executed more than once.
We're upgrading from ECC5 to ECC6.
An SD custom "copy routine" in VA01 (SAPMV45A) is being called twice in ECC6 (incorrect) but only once in ECC5 (correct).
The result is that the same informational message displays repeatedly and users have to press the <enter> key many times.
Any of you encounter this behavior?
Thanks
Leo- In which of these [User Exits In Sales Document Processing|http://help.sap.com/saphelp_46c/helpdata/en/1c/f62c7dd435d1118b3f0060b03ca329/content.htm] is the message sent ?
- Also check once again those user exits in SPAU
Regards,
Raymond -
Executing more than one procedures at a time
Hi,
Can any one tell how to execute more than one procedure at a time..
I am trying to run like this..but its throwing an error...can anyone please suggest?
CREATE OR REPLACE PROCEDURE HYSXM.QA_AUTO_RETURN_FINAL IS
i EVENTS_TEST_DATA%ROWTYPE;
BEGIN
DELETE FROM TEST_EVENTS;
COMMIT;
for i in ( SELECT RADIO_ID,EVENT_TYPE FROM EVENTS_TEST_DATA )
LOOP
QA_AUTO_INSTALL(i.radio_id,i.event_type);
QA_AUTO_RESOLD(i.radio_id,i.event_type);
QA_AUTO_RETURN(i.radio_id,i.event_type);
END LOOP;
END QA_AUTO_RETURN_FINAL;
/what error message is being returned??
-
Execute more than one thing at the same time.
Hey why every time i want to execute more than one thing(create tables) at the same time
it say "ORA-00911: invalid character" , i dont wanna execute one thing at a time. check the pic please
http://img370.imageshack.us/img370/5120/oraclesw5.jpg
but in my school i use something called isqlplus and i can execute all the things i want at the same time with-out any error.
im using right-know
Oracle Database 10g Express Edition Release 10.2.0.1.0 - Product
PL/SQL Release 10.2.0.1.0 - Production
CORE 10.2.0.1.0 Production
TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
NLSRTL Version 10.2.0.1.0 - Production1) Unless you are using something like DBMS_JOB, SQL*Plus, iSQL*Plus, the Oracle XE web-based front-end, or any other application is going to execute one SQL statement at a time.
2) There is a dedicated XE forum-- the folks over there might know how to run a script using this particular front-end.
3) Assuming the XE database is on your local system, you should be able to log in via SQL*Plus and use that utility to run your scripts.
Justin -
How to prevent executing more than one client from a machine?
Hi all,
Currently I am doing a client server project in java. The client is java swing. There is a requirement to prevent executing more than one client from a machine.
Now I am relying on socket for this. I listen to a port, say 15000 and when the second session is started it would give an exception at the socket. I know that this a trivial method. Can anybody please suggest a better method. Also is it possible to bring focus to already executing client, if the user tries to execute the client program again in the same machine?
An early answer to this question is highly appreaciated.
Thanks in advance
SSMThanks for the suggestion, but I dont think we can use socket for this. And again if we use file for the same as you described, I think it would sometime create a some serious side effects. Suppose after one client session is invoked, the power goes off. In this case the client shut down is not in the normal sequence and hence we cannot remove the file programaticaly. This creates big problem when the user tries to run client again.
I am really interested to know, is there any standard way in java which can be used to achieve this. Also is it possible to give focus to already executing client program if the user tries to invoke the client again.
Thanks
SSM -
Execute more than 1 function from process code IDOC
Hello,
Is it possible to execute more than 1 function via process code of an IDOC?
I am talking about inbound IDOC.
SaraHi Sara,
What is the exact requirement.
Regards,
Madhu. -
Execute more than one times external command of OS Windows NT
Hi all,
I have to execute more than one times from an ABAP program an exernal command of Operating system windows NT . In order to reach this goal I found the standard program RSBDCOS0 and it works very well if you execute it one time. Unfortunately I have to execute this external command more than one times. Is there any soluiton?
thank to all
Gino BonfiglioliWell why are you using this report RSBDCOS0 to execute external commands?
Because SAP provides certain function modules that can be used to call operating system commands; so you can use these functions to do your task.
Just check the following link
http://help.sap.com/saphelp_nw2004s/helpdata/en/fa/0971e1543b11d1898e0000e8322d00/frameset.htm
As you mentioned that you need to execute multiple times, you can easily put the call to function module inside a loop or do/enddo structure. for example consider the following
do 3 times.
call function 'SXPG_COMMAND_EXECUTE'
exporting
commandname = 'Put operating system command here'
additional_parameters = full_filename
targetsystem = targtsys
stdout = 'X'
stderr = 'X'
terminationwait = 'X'
importing
status = sxpg_status
exitcode = sxpg_exitcode
tables
exec_protocol = sxpg_results
exceptions
no_permission = 1
command_not_found = 2
parameters_too_long = 3
security_risk = 4
wrong_check_call_interface = 5
program_start_error = 6
program_termination_error = 7
x_error = 8
parameter_expected = 9
too_many_parameters = 10
illegal_command = 11
wrong_asynchronous_parameters = 12
cant_enq_tbtco_entry = 13
jobcount_generation_error = 14
others = 15.
write the results
loop at sxpg_results.
write:/ sxpg_results-length,
sxpg_results-message.
endloop.
refresh sxpg_results.
enddo. -
Load rule to update alternate hierarchy with shared members more than once
I have a aso cube with an alternate hierarchy that is not stored because the shared members appear more than once. Below is how my alternate hierarchy looks.
Dept
Class
VolumeLevel
StoreNum
where StoreNum is the shared member.
I build the cube using eis every weekend. The VolumeGroup changes everyday, so I was thinking of using a sql load rule to update the outline everyday. Assuming that the data and the aggregation does not get cleared. Is it possible to do it using sql load rule?
Thanks,You can check here if you are satisfying the conditions for creating shared members under the Hierarchy (refer to Alternate Hierarchies). Plz note that rules for shared members are different in ASO world.
http://docs.oracle.com/cd/E17236_01/epm.1112/esb_dbag/frameset.htm?acrtapdb.html
Otherwise there is no reason why you should not be able to create a shared member.
I am able to create a hierarchy using a sample file like this ->
EN_MAIN, EN_500000
EN_500000, EN_49999
EN_ALT, C_500000
C_500000, EN_49999
ENTITY (Multiple Hierarchies Enabled)
|-EN_MAIN (Stored)
|--EN_500000
|---EN_49999
|-EN_ALT (Stored)
|--C_500000
|---EN_49999 (Shared)
The rule file has only "Allow Property Changes" on.
Thanks,
Sunil -
ScheduledExecutorService.scheduleAtFixedRate executes more than it shouldI
Hi,
I have the following problem, that I hope you can help me resolve (or investigate):
ScheduledExecutorService scheduledExecutorService= Executors.newScheduledThreadPool(4, new NamedThreadFactory("MyWorker-"));
scheduledExecutorService.scheduleAtFixedRate(new FinalJobsCleanerTask(),0,1,TimeUnit.HOURS);That code should implement a schedule that wakes every hour and runs the given task.
For some reason, I see from time to time, that it wakes up more that it should- looking at the log, I see that one time the same Thread ('MyWorker-1' for example) executed the task for about 10 time at the same second (with some ms difference between each execution). I know for sure that the FinalJobsCleanerTask() is not invoked by any other executor, so obviously it is something wrong with the way I use the ScheduledExecutorService.
Do you have any idea what may cause this problem? Any clue will be appriciated :-)If that doesnt work then something in your code is causing it to loop more than once, or the system clock is changing.
-
Business Rules - how to stop when being executed in background?
Hello,
I have a very simple BR that is supposed to copy data from one version to another, however the BR timeouted and now is being executed in the background.
The thing is that it is being executed for two hours now. I can see the BR in the Job window with 'Processing' status.
I've set two system options HBR_MAX_WAIT_FOR_RULE and HBR_MONITOR_DELAY to 600000, and restarted the application and essbase, however the BR's status in Job window is still 'processing'.
Is there any way to:
1. Stop the execution of the business rule?
2. Verify what causes the BR to run for so long?
3. Does dense/sparse settings have the impact on BRs' execution time?
Kind regards
Marcin StawnyHi,
I take it we are talking classic planning.
You can terminate rules from within EAS, if you right click the analytic server and select edit sessions, you should see the rule running.
I am not sure why it says it still running maybe it has cached that it is running and still believes it is, have you restarted EAS?
Lots of different elements can be makinh a business rule run for a long time, the code/cube might need optimizing, it might be trying to copy a lot of data.....
Maybe worth posting more details on your database, number/name of dimensions, number of members, dense/sparse
Also the business rule code.
Cheers
John
http://john-goodwin.blogspot.com/ -
Report is executing more than one hour
Hi All,
I have an issue with my report,its taking more than one hour for execution.
This report is called through an package,in package there are cursors which retrive data and sends to mail.The problem is with this select statement in cursor,its taking a lot of time to retrive the data.
In my cursor select statement i am using the following tables
HZ_PARTY_SITES HPS,
HZ_CUST_ACCOUNTS CUST,
HZ_CUST_ACCT_SITES_ALL HCASA,
HZ_CUST_SITE_USES_ALL HCSUA,
HZ_LOCATIONS HL,
OE_ORDER_HEADERS_ALL OOH,
OE_TRANSACTION_TYPES_TL OT,
OE_AUDIT_ATTR_DESC_V AADV
when i use OE_AUDIT_ATTR_DESC_V ,its taking a lot of time to retrive.So any one can help me out in this issue,how to add this view to other tables
Regards,
RRRR,
Before you add any indexes to the listed tables, check with Oracle support to ensure you will be violating your Oracle Enterprise Business Suite agreement. Oracle has specific rules on modifying EMS tables. Additionally, any EBS patch or update that gets applied will likely drop any custom changes to these tables. It might be better for you to open a Service Request with Oracle Support and have them tell you how to improve the performance of your query since all of your tables are EBS tables.
Craig...
Message was edited by:
CraigB
RR, you may also want to check with your DBA(s) to see when the Statistics were last gathered on these tables. -
Can we execute more than one SQL in Stored Procedure?
Please help me with this.
I am connecting to SQL SERVER
Thanks
VenuHi Venu,
>>1) Get the input parametrs for SP in from file
You can pass parameters to the SP from the payload of the message. I am not sure what do you mean by "Getting the parameters for SP in form file"..
>>2 Configure Receiver JDBC adapter(Synchronous)which executes a STORED PROCEDURE that has some processing logic containing more than one sql statment
This is no problem. You can have any number of select /update statements inside the stored procedure. But your stored procedure will not return data to XI and that will not be sent as a response to your BPM
3) Send the response from SP to a BPM
yes.You can have another Stored procedure that have only one select statement to send response to BPM. You may have to define abstract interfaces .
hence for 2) and 3) the message payload would be something like this
<StatementName1>
<storedProcedureName action= EXECUTE>
<table>realStoredProcedureeName</table>
<param1 [isInput=true] [isOutput=true] type=SQLDatatype>val1</param1>
</storedProcedureName >
</StatementName1>
<StatementName2>
<anyName action= SQL_QUERY>
<access>SQL-String with optional placeholder(s)</access>
<key>
<placeholder1>value1</placeholder1>
<placeholder2>value2<placeholder2>
</key>
</anyName >
</StatementName2>
Regards
Arul
PS: Mark usefull answers and for more info about points - read the post "Rules of engagement" at the top of the XI forum
Maybe you are looking for
-
Web browser capability in an extension
I am writing an extension, for which I need to embed a html browser component in the html pages of the extension. Have tried the following without any success 1. Used with a simple <iframe> - looks like DW does nto support iframe in extensions. 2. Tr
-
Some webcam drivers (Quicktime Components) no longer work in Snow Leopard
I have two webcams, both of which worked before the update to Snow Leopard, both of which no longer work. They are recognised by their own utility applications and I can see the video, but the QuickTime components used to transport this video to othe
-
Error when Release Purchase Requisition
Hi All I want to Release for Purchase Requisition I have already setup follow : http://www.sap123.com/showthread.php?t=59 When I use T.Code ME55, I can't tick check box http://s37.photobucket.com/albums/e73/caodanhthang/?action=view¤t=ME55.jpg.
-
Hi guys, After running KE5T there is a nil bal in base ledger and a large balance in pca (comparative ledger) I have no clue what is going on. Can anyone help please. Any ideas will be great so that i can look into it. Thanks.
-
Why won't my security update go through and is it even necessary?
Whenever I try to download an app or make an in-app purchase on my iPhone, I always get a pop-up that says "Improve Apple ID Security please enter Apple ID and password, then tap security info and answer the questions." so I do that and then when I c