Error handling in post-mapping (10gR2)
Hi all,
I raised an application error in a procedure executed in post-mapping with :
raise_application_error (-20001, varMessage) ;
but when it raised the mapping is not marked on error and there is nothing in the mapping execution details displayed in the audit browser about the error.
Is there a way to make the mapping failed in case of problem in a post-mapping procedure ? The raise_application_error seems work in OWB 10.1.0.4 but not in OWB 10.2.0.2.
Thanks
Regards
Matthias
Hum .... it fact the raise_application_error works and marks the mapping failed....
My exception was catched by another procedure ...
Similar Messages
-
Mapping and Error handling in Seeburger Adapters ?
Hi,
1. In B2B integration part of PI.Whats the way of doing mapping in XI mapping editor and error handling in the mapping ?
2. Do you think SEEBURGER BIC mapping designer is must for developing maps ? cant we develop same maps in XI mapping editor?
Thanks and regards,
Ram.
Edited by: Ramakrishna kopparaju on Sep 30, 2008 12:27 PMWhats the way of doing mapping using seeburger adapters
The standard mappings are part of Seeburger Suite and if any additional mapping has to be accommodated, then custom mapping could be developed in Seeburger BIC Mapper tool. This has to deployed on adapter engine then. The other mapping is the normal XI mapping (message, java, xsl) which could be performed based on business logic.
error handling in the mapping ?
The easiest way is to raise Alert based on the errors in mapping.
Regards,
Prateek -
Error occurred during post handling RS_AFTER_IMPORT for UPDR L
Hi friends,
I need your help for 2 issues related to transport
I am getting error while transporting the request from BW DEV to BW QAS..Please help me regarding this issue..
1.)Error occurred during post handling RS_AFTER_IMPORT for UPDR L
The errors affect the following components:
BW-WHM (Warehouse Management)
2.)Start of the after-import method RS_UPDR_AFTER_IMPORT for object type(s) UPDR (Activation Mode)
Error when activating update rule
IC=0CRM_PROD IS=0PR_IL_PROREF_ATTR error when checking update rules.
Friends these are the two issues im facing while doing the transports._i have checked the update rules in the BW DEV it is working fine._please give some solutions to overcome this issues.
Thanks
Gnana BaskarHi Gnana,
Since u r telling tht the update rules are working fine in the Dev system, request u to perform some checks:
1. The Update rule needs to be in active version.
2. The InfoObjects used in the target InfoProvider should be present in the QA system/attached to the request in which u r transporting the changed Update Rule.
3. Manually add objects, if needed all the Before/After objects in the new request and reactivate the Update rule, if it asks for a request give this new request number.
4. Compare the data model in Dev and QA system and try finding the disconnect between them.
Hope this helps.
Regards,
Kunal Gandhi -
Transport Error occurred during post-handling RS_AFTER_IMPORT for ISCS L
Hi,
We are moving cube 0IC_C03 of material stocks/movements
from Dev to Quality and we are facing problem while transporting the Transfer Structure 2lis_03_BF. Other two TS moved successfully.
The transporting is failing with the below error:
Errors occurred during post-handling RS_AFTER_IMPORT for ISCS L"
We tried moving couple of times , still it was failing with the same error and even we tried to activate in Quality with the activate program .It say " there is no Transfer structure to activate.".
BW system is 3.1 c with service pack 18.
Your help greatly appreciated
Thanks,
SudharaniHi there,
Have you checked that DataSource is activated and replicated in your R3 Quality system? Check in BW for your source system if 2LIS_03_BF is there.
Hope this helps,
Regards,
Carlos -
I have built all of my process in v9.0.2.62.3 except for once the row is loaded into my staging table, I want to delete this row from the source. I was trying to use the post-mapping process to call a procedure that would perform the deletion. However, I can not get the post-mapping process to work.
The manual states to add a post-mapping process operator to a mapping:
Drop a Post-Mapping Process operator onto the Mapping Editor canvas.
Select the appropriate procedure from the selection list. This were I select a procedure called drop_ind with one input parameter, v_ind_id, of type number.
Connect the output attribute of a source operator to the INOUTGRP1 of the Post-Mapping Process operator.
This is where things start to go wrong with the manual. There is no INOUTGRP1, but only an INPUTS. If I try and attach the target column to the INPUTS, I get an API8009 cannot add attributes to POSTMAPPING INPUTS error. So I attach my target column directly to the input parameter
Rename the operator:
This goes well enough.
Then I try and validate, and I get the following message wehn I try to generate the mapping :
Code cannot be generated.
Specify another operating mode or see validation messages for details.
When I validate I get :VLD-2451 Illegal connection to POSTMAPPING. details = Illegal connection to POSTMAPPING.
Obviously, I am doing something wrong, but what?Matthew,
First a question, what are you trying to add to the post mapping process? The ID of the single row that is processed?
In that case, you will have to rethink the strategy. What happens in a post map process (and the rest of the map) is the following:
1) execute any pre mapping processes
2) execute the main body of the mapping (this is you diagram excluding pre and post mapping processes)
3) execute the post mapping process
This means that the post mapping process will be run whenever the rest of the mapping is complete.
So to do what you want, you can use the post mapping process but you would add a marker to every inserted record and then in the post map procedure delete all the ones that have this marker in the target from the source.
In that case you would need any parameters from your map into the procedure and you should be all set.
Hope this helps,
Jean-Pierre -
Hi,
I have to import composite role from development to QAS system.I have generated profile for each role in developemnt & create transport of composite role & moved it in QAS.But in QAS it finished with Return code 8 & I found profiles are not moved in QAS for all single roles.
Error is as follows.
Errors occurred during post-handling PRGN_AFTER_IMP_ACTGROUP_ACGR for ACGR L
The errors affect the following components:
BC-SEC-USR-PFC (Authorization and Role Management)
Please advice if anybody faced such kind of issue.
Regards
SantoshRephrased a'la Julius:
> To avoid the problems during the subsequent import into a target client, the AGR_NUM_2 table can be maintained as customizing for the clients (plural) in the source development system where the roles are maintained. If more than one client is used for role development, a number range gap of 50000 between the clients should be sufficient to prevent profile name collisions (otherwise you have much bigger problems anyway...).
>
> This is because the system ID (sy-sysid) is used as an attribute in the generated profile's name, but not the client (sy-mandt). > The value set in the AGR_NUM_2 tables determines the current number per client of the next sequential number to be used for profile generation. The customer can initialize this number to insert an additional attribute per client to achieve unique generated names within client specified ranges.
Something like that
Cheers,
Julius -
OWB Error handling through error tables
I have a mapping, which i want to implement error handling through error table, the table is created (error) and i have supplied it in the error table propertis in the target table. But i have tried testing if this is working by changing the data type of one column in my target database, but the whole mapping is failing to run with no error rerded in the error table. And i tried testing the this through sql and suprisingly the errors are being captured. How do i get the whole mapping to run and record the errors if any in the error table without it failing.
When you say 'the whole mapping is failing to run' what do you mean? Can you deploy the mapping? If not what is the error? When you run the mapping what happens?
If you look at the DML statement (the INSERT, MERGE or whatever) generated by OWB does it include the LOG ERRORS INTO statement in it?
There is a blog post below for OWB 11gR2;
http://blogs.oracle.com/warehousebuilder/entry/owb_11gr2_dml_error_logging
And an older one here which was based on OWB 10gR2
http://blogs.oracle.com/warehousebuilder/entry/set_based_errors_dml_error_log
Cheers
David -
Report and Alert don't executed in the error handler with a JMS proxy service
Hi,
I'm working with OSB 11.1.1.4.0 and I'm facing a problem with the error handler of my JMS proxy service.
My error handler contains two main elements :
- a Report action
- an Alert with a JMS destination defined
When the business service failed the message remain in the queue. It's the expected behavior.
The problem is :
- the report is missing
- the alert is raised but missing in the JMS destination defined in the Alert setting.
I've noticed if I add a Reply with Failure or Success, Report and Alert are successfully executed.
Unfortunately the message don't remain in the JMS queue.
What can I do in order to have my report/alert done and the JMS transaction rollback in order to keep the message in the queue ?
I've already met this problem in the past with alsb v3 and my solution was to add Service Callout in the error handler in order to externalize these actions.
This solution is not convenient and I hope another solution is possible.Inventorying workgroups can be difficult, especially when it comes to remote access and network security. Because workgroups are not centrally managed, some of the items discussed in this
wiki article on preparing your workgroup environment may require you to visit each machine individually.
For non-domain credentials, you do not use the <systemname>\<user> format, you simply enter the user name. Regarding how to enter the credentials, if you have an account that uses the same username and password on all machines and is an administrator
on all of those machines, then you can enter that in the All computers credentials page of the wizard. You can also do this if they are different user names. However, if some machines have an account with the same user name, such as Administrator,
but different passwords on each machine, you will need to use the Manually enter computer names discovery method, and then enter the information for each group or each machine.
As you can tell, workgroup environments can quickly negate any benefit that the agentless inventory nature of MAP provides.
Please remember to click "Mark as Answer" on the post that helps you, and to click
"Unmark as Answer" if a marked post does not actually answer your question. Please
VOTE as HELPFUL if the post helps you. This can be beneficial to other community members reading the thread. -
BPM for error handling and acknowledgements
Hi,
Can any one tell me how to handle BPM for error handling and acknowledgements in one scenario.
Please send me the link if you have other wise give me the solution on the same.
Thanks,
NageshHi !
Just check out these links This might help you.
Usually Application Level Acknowledgement is considered during Sync communication. If you are using RFC, you can make use of Sync communication. So you can handle it without bpm, provided your both sender and receiver are sync interfaces.
To know about Ack-
http://help.sap.com/saphelp_nw2004s/helpdata/en/f4/8620c6b58c422c960c53f3ed71b432/content.htm
you can not dirrectly access the content of the ACK, however the BPM shows different behaviours based on the ACK status. E.g. if the ACK contains a success message the BPM will continue in its normal process, if the ACK contains a permanent error, it will either stop or go through an exception branch (provided such a branch has been defined). Have a look at the documentation: http://help.sap.com/saphelp_nw04/helpdata/en/43/65ce41ae343e2be10000000a1553f6/content.htm It doesnt"t state the above mentioned behaviour in detail but says that you need to define an exception branch.
The trickiest part is always to find out, when you will get a transient vs. as permanent error ack. If you are using ACKs with Proxies refer also to this link http://help.sap.com/saphelp_nw04/helpdata/en/29/345d3b7c32a527e10000000a114084/content.htm and this http://help.sap.com/saphelp_nw04/helpdata/en/f4/8620c6b58c422c960c53f3ed71b432/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/29/345d3b7c32a527e10000000a114084/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/7b/94553b4d53273de10000000a114084/content.htm
<b>The following link has entire configuration of Receiver XI Adapter (including acknowledgements)</b>
http://help.sap.com/saphelp_nw04/helpdata/en/f4/0a1640a991c742e10000000a1550b0/content.htm
<b> eror handling in BPM.
</b>
1. CCMS monitoring
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/42fb24ff-0a01-0010-d48d-ed27a70205a8
2. BPM Monitoring
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e7bc3a5a-0501-0010-1095-eb47159e169c
3. Monitoring XML Messages http://help.sap.com/saphelp_nw04/helpdata/en/41/b715045ffc11d5b3ea0050da403d6a/frameset.htm
/people/sap.user72/blog/2005/11/29/xi-how-to-re-process-failed-xi-messages-automatically
monitoring BPm https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/e7bc3a5a-0501-0010-1095-eb47159e169c
Reconciliation of Messages in BPM - /people/krishna.moorthyp/blog/2006/04/08/reconciliation-of-messages-in-bpm
Also see the below BPM related links
check list for BPM https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3bf550d4-0201-0010-b2ae-8569d193124e
/people/shabarish.vijayakumar/blog/2005/08/03/xpath-to-show-the-path-multiple-receivers
http://help.sap.com/saphelp_nw04/helpdata/en/3c/831620a4f1044dba38b370f77835cc/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/62/dcef46dae42142911c8f14ca7a7c39/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/de/766840bf0cbf49e10000000a1550b0/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/cb/15163ff8519a06e10000000a114084/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/08/16163ff8519a06e10000000a114084/content.htm
Many other examples can be found under the following link at help.sap.com
http://help.sap.com/saphelp_nw04/helpdata/en/14/80243b4a66ae0ce10000000a11402f/frameset.htm
And some weblogs
https://weblogs.sdn.sap.com/pub/wlg/1403 [original link is broken] [original link is broken] [original link is broken]
/people/siva.maranani/blog/2005/05/22/schedule-your-bpm *****
/people/krishna.moorthyp/blog/2005/06/09/walkthrough-with-bpm
/people/michal.krawczyk2/blog/2005/06/11/xi-how-to-retrieve-messageid-from-a-bpm
/people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit
/people/sravya.talanki2/blog/2005/08/24/do-you-like-to-understand-147correlation148-in-xi
/people/michal.krawczyk2/blog/2005/09/04/xi-do-you-realy-enjoy-clicking-and-waiting-while-tracing-bpm-steps *****
/people/udo.martens/blog/2005/09/30/one-logical-system-name-for-serveral-bpm-acknowledgements *****
/people/sudharshan.aravamudan/blog/2005/12/01/illustration-of-multi-mapping-and-message-split-using-bpm-in-sap-exchange-infrastructure
/people/kannan.kailas/blog/2005/12/07/posting-multiple-idocs-with-acknowledgement
Also have a look at these seminars,
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/media/uuid/daea5871-0701-0010-12aa-c3a0c6d54e02
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/media/uuid/e8515171-0701-0010-be98-e37bec4706cc
Thanks !!!
Regards
Abhishek Agrahari
Questions are welcome here!!
<b>Also mark helpful answers by rewarding points</b> -
Owb process flow error handling
Hi,
I am using OWB 10gR2.
I have 2 process flows that each call a series of mappings. Then I have one "master" process flow that calls the two aforementioned proecess flows. When a mapping errors, I want my whole master process flow to abort. I put error handling in, but it doesn't seem to work. For example, if I get an error in the first process flow, I get my email notification that something is wrong. The process ends. However, the master process flow continues to go. I want it to stop. It continues to go because there wasn't an error in the first process flow. The error was handled, and the process flow ended successfully. Does anyone have any tips or tricks on how to handle this type of situation? I'm not doing anything revolutionary. I'm just new to these process flows.
Thanks,
Timhmm ok this sounds a bit weird to me.
I've created similar processflows with customers and never had similar problems like you describe.
Just to verify your design, here is how I would solve your master1 processflow.
_______________________END_WARNING
w w
start----PF1----------s---------------PF2------s---- END_SUCCESS
e e
\___________________\____END_WARNING
where the conditions for the transitions is indicated with w for warning, s for success and e for error.
Some poorly made ascii art there but hopefully you get the idea...:p
This also sounds like what you've done already and with extra email functionality.
Are you sure that pf2 starts after pf1? Or can it actually run in parallel with pf1 but just finishes after pf1 so it seems like it its done afterwards? The reason I ask is that I experienced that in one of my processflows with around 30+ mappings, one of the mappings that was supposed to be executed almost at the end, executed before everything else and messed everything up. It was quite the annoying little bug and took a long time for me to discover. If you have noticed on the transitions, there is a little number next to the line on the canvas, indicating in which order the operators are to be executed. In my case, two transitions had the same number and that caused one of the mappings to just start as soon as the processflow was told to start. If this is the case there is a way to set these, but I don't remember right now. Delete and recreate the transitions also do the trick I think.
Hope you figure it out!
Ragnar
edit: seems like my ascii art got a bit messed up... :(
Message was edited by:
rhaug -
hi all
I would like to do an error handling scenario using BPM in XI. As i haven't done it before, can somebody give me links to good blogs and materials in this regards.
Thanks
SumayyaHI,
Check the below links
monitoring BPm https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/e7bc3a5a-0501-0010-1095-eb47159e169c
Reconciliation of Messages in BPM - /people/krishna.moorthyp/blog/2006/04/08/reconciliation-of-messages-in-bpm
Also see the below BPM related links
check list for BPM https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3bf550d4-0201-0010-b2ae-8569d193124e
/people/shabarish.vijayakumar/blog/2005/08/03/xpath-to-show-the-path-multiple-receivers
http://help.sap.com/saphelp_nw04/helpdata/en/3c/831620a4f1044dba38b370f77835cc/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/62/dcef46dae42142911c8f14ca7a7c39/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/de/766840bf0cbf49e10000000a1550b0/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/cb/15163ff8519a06e10000000a114084/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/08/16163ff8519a06e10000000a114084/content.htm
Many other examples can be found under the following link at help.sap.com
http://help.sap.com/saphelp_nw04/helpdata/en/14/80243b4a66ae0ce10000000a11402f/frameset.htm
And some weblogs
https://weblogs.sdn.sap.com/pub/wlg/1403 [original link is broken] [original link is broken] [original link is broken] [original link is broken]
/people/siva.maranani/blog/2005/05/22/schedule-your-bpm *****
/people/krishna.moorthyp/blog/2005/06/09/walkthrough-with-bpm
/people/michal.krawczyk2/blog/2005/06/11/xi-how-to-retrieve-messageid-from-a-bpm
/people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit
/people/sravya.talanki2/blog/2005/08/24/do-you-like-to-understand-147correlation148-in-xi
/people/michal.krawczyk2/blog/2005/09/04/xi-do-you-realy-enjoy-clicking-and-waiting-while-tracing-bpm-steps *****
/people/udo.martens/blog/2005/09/30/one-logical-system-name-for-serveral-bpm-acknowledgements *****
/people/sudharshan.aravamudan/blog/2005/12/01/illustration-of-multi-mapping-and-message-split-using-bpm-in-sap-exchange-infrastructure
/people/kannan.kailas/blog/2005/12/07/posting-multiple-idocs-with-acknowledgement
Also have a look at these seminars,
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/media/uuid/daea5871-0701-0010-12aa-c3a0c6d54e02
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/media/uuid/e8515171-0701-0010-be98-e37bec4706cc
Regards
Chilla -
Multiple POST-MAPPING Processes Code Generation BUG
We are testing OWB 10gR2, and we were very happy to see that there is option to include more than one postmapping operator.
The idea is to create mapping with two post-mapping operators and that:
- one procedure is executed in case of 'Post-Mapping Process Run Condition' = ON ERROR
- and other procedure in case of 'Post-Mapping Process Run Condition' = ON SUCCESS.
But, after implementation of this case, we were dissapointed. We discover that neither procedure is executed.. ?!?!
After analyzing generated code in 'finalize' method there is code like this:
IF NOT get_abort THEN
IF get_abort THEN
BEGIN
As you can see this condition will never bee true ?!?
Doe's anyone have same problem?1) If you have somehow got multiple post-mappings working, I would consider that to be buggy behaviour that you cannot depend on for future releases or upgrades. As such, building a solution that depends on this has risk.
2) You could always build a user-defined custom transformation that takes a list of tables to truncate and does so. Something like (untested, uncompiled, seat-of-the-pants written right here example to get you started):
create or replace procedure trunc_tables(tablist varchar2)
is
local_tablist varchar2(2000) := tablist;
this_Table varchar2(30);
nextindex number := 1;
begin
nextindex := instr(local_tablist,',');
while nextindex != 0 loop
this_table := substr(local_tablist,1,nextindex-1);
execute immediate 'truncate table '||this_Table;
local_tablist := substr(local_tablist,nextindex+1);
nextindex := instr(local_tablist,',');
end loop;
-- if no trailing semicolon there is still one table left
if length(local_tablist) > 0 then
execute immediate 'truncate table '||local_tablist;
end if;
end;
You could then reference this in your post-mapping procedure with a call to trunc_Tables('table1,table2,table3'), and could re-use this code across all mapping that need it.
Of course, if you have a lot of mapping-specific stuff to do then you might need to build custom transformations for each mapping that need to do different things as part of their post-process.
Mike -
J2iun Execution and Error in FI posting (Message no. 8I280)
Hi ,
At our end J2iun were never posted in SAP and all excise return are being handled manually.
Now we are trying to execute J2iun for each month of the last year ( April '08 to march '09) and trying to update our system till march'09 so that from this month onwards , excise returns can be handled thru SAP.
We started with April'08 and in order to get J2iun posted for the month of April'08 , we opened the desired FI periods (2008/1) thru OB52.BUT when we were trying to post J2iun for the month of April'08 , system is prompting an error
"Error in FI posting 20090408 Message no. 8I280"
We couldn't understand why this message is being appeared when required FI periods are already opened. ( In fact we tried with some JV enteries in that period and they are getting posted sucessfully )
Is it because MM april'08 period is already closed ??? (in OMSY , open periods are April'09 and March'08)
If yes , then is there any way to make April'08 MM period open ?
If back MM period opening is not possible then what could be the best method to get GLs and Registers Balances updated with correct value of MARCH'09 closing Balances.
So that j2iun of april'09 can be executed perfectly
Thx in advance for all yr replies
Regards
ShreytHX ,
mm PERIOD SHOULD BE oPENed TO PROCESS J2IUN.
cOMMULATIVE RUN IS NOT POSSIBLE, AS J2IUN ALWAYS PICKS THE PAYABLE BALANCE OF THE FIRST PERIOD DATE ENTERED
REGARDS
sHREY -
hello i have the following error when deploying a map in a local database, the mapping is a simple transfert of data between two table,
ORA-06550: line 0, column 0:
ORA-04052: erreurs lors de la consultation de l'objet distant [email protected]@KCDBDEV
ORA-00604: une erreur s'est produite au niveau SQL récursif 1
ORA-01882: région de fuseau horaire introuvable
ORA-02063: pré
any help please
thanks,
tarekHello thank u for helping, i have exactly the same problème in Error executing a query using a DB-Link
but i am not inderstanding the solution, i found the same probleme in metalink, and the solution posted is:
1. Create an errorstack of the ORA-1882 to see the ALTER SESSION SET TIME_ZONE statement that is causing the ORA-1882 during deployment. To create this errorstack, follow step 1 to 4 below:
1. Just before you reproduce the error, open a SQL*Plus session with user SYSTEM.
SQL> alter system set events '1882 trace name ERRORSTACK level 3'
2. Deploy the mapping to reproduce the ORA-1882
3. Disable the system event
SQL> alter system set events '1882 trace name errorstack off';
4. Take a look at the errorstack (located in the udump directory). Suppose the following statement is in there:
ALTER SESSION SET TIME_ZONE = 'GMT+02:00'
2. Modify the run_service.sh(.bat) file as follow:
* For UNIX:
Modify owb_server_home/owb/bin/unix/run_service.sh as follows:
Add the parameter -Duser.timezone="+02:00" to the line where java is started (last line of run_service.sh)
$JAVAPATH/bin/java -Xmx768M -Djava.awt.headless=true -DORACLE_HOME.....
e.g:
$JAVAPATH/bin/java -Xmx768M -Duser.timezone="+02:00" -Djava.awt.headless=true -DORACLE_HOME
* For Windows:`
Modify owb_server_home\owb\bin\win32\run_service.bat as follows:
Add the parameter -Duser.timezone="+02:00" to the line where java is started
%JAVAPATH%\jre\bin\javaw.exe %JVM_OPTIONS%
e.g.:
%JAVAPATH%\jre\bin\javaw.exe -Duser.timezone="+02:00" %JVM_OPTIONS%
3. Save the file and re-start the Runtime Service using stop_service.sql/start_service.sql.
but in creating the errorstack of the ORA-1882 i not found the ALTER SESSION SET TIME_ZONE
and i Modify the run_service i fixed -Duser.timezone="+01:00" cause the time zone here is Europe/Paris but there is no changes.
the db link is from Oracle 10.2.0.2.0 to 9.2.0.1.0. and owb 10g R2
other solution?
thanks,
tarek -
Issue with SRDemo error handling
Hi All,
Glad the forums are back up and running. In debugging some error-handling issues in our own application, I found an issue in the error handling code of SRDemo. I thought I'd post the issue here, as many of us (myself included) use some SRDemo code as the basis for our own applications.
The issue can be found in the oracle.srdemo.view.frameworkExt.SRDemoPageLifecycle class, specifically in the translateExceptionToFacesErrors method. I'll show the code that has the issue first, and explain the issue afterwards:
if (numAttr > 0) {
Iterator i = attributeErrors.keySet().iterator();
while (i.hasNext()) {
String attrNameKey = (String)i.next();
* Only add the error to show to the user if it was related
* to a field they can see on the screen. We accomplish this
* by checking whether there is a control binding in the current
* binding container by the same name as the attribute with
* the related exception that was reported.
ControlBinding cb =
ADFUtils.findControlBinding(bc, attrNameKey);
if (cb != null) {
String msg = (String)attributeErrors.get(attrNameKey);
if (cb instanceof JUCtrlAttrsBinding) {
attrNameKey = ((JUCtrlAttrsBinding)cb).getLabel();
JSFUtils.addFacesErrorMessage(attrNameKey, msg);
}Now, this bit of code attempts to be "smart" and only show error messages relating to attributes if those attributes are in fact displayed on the screen. It does so by using a utility method to find a control binding for the attribute name. There are two issues with this code, one obvious, and one that is a bit more subtle.
The obvious issue: if there is a binding in the page definition, it doesn't necessarily mean that the attribute is shown on the screen. It's a good approximation, but not exact.
The other issue is more subtle, and led to errors being "eaten," or not shown, in our application. The issue comes if you are using an af:table to display and update your data. In that case, the findControlBinding will not find anything for that attribute, since the attribute is contained within a table binding.
Just posting this as a word to the wary.
Best,
johnsomehow, this message got in the wrong thread....
Hi Frank,
Yes, I simply scripted it out this way to contrast the behaviour if the first attribute was read-only vs not read-only. I found the issue on a page in our app that was simply drag-and-drop the VO from the data control on the page.
It's quite annoying, because our particular use case that hit this error is a "save" button on the page. If the commit operation doesn't return any errors (and it doesn't in this use case!), we add a JSF message saying "save successful" - then the attribute errors are further added later in the page lifecycle, so we get 3 messages: "Save successful" and "Fix this error" and "Tried to set read-only attribute" - quite confusing to the end-user when the only message they should see is "fix this error."
At any rate, the fix is to simply re-order the attributes in the page definition - that doesn't affect the UI at all, other than to fix this issue.
John
it was supposed to be something like:
Hi Frank,
Thanks for the reply. I was simply posting this here so that people who use the SRDemo application techniques as a basis for developing the same functionality in their own apps (like me) can be aware of the issue, and avoid lots of head-scratching to figure out "what happened to the error message?"
John
Maybe you are looking for
-
TS2972 since i updated my itunes it will not show up on apple tv
Any idea how to get my apple tv to show up on computer menu. it worked perfectly before i updated my itunes. Any ideas?
-
Set Form Values From Interactive Report Row
Using Apex 4.2. I have two tables: T1 and T2 Table T1 contains five columns: CT11, CT12, CT13, CT14, CT15 Table T2 contains 4 columns: CT21, CT22, CT23, CT24 I have a page with two regions. Region 1 is a Form on a Table using table T1. Region 2 is an
-
I recently got a new 30gb video ipod and when i went to plug it in to add songs, it said i needed to restore it. So i clicked restore and then it says 'there is a problem downloading the IPOD software for the IPOD'. I think it might be the place wher
-
I am running the latest version of Snow Leopard on a 2006/7 MacBook Pro. After teaching myself how to use a mac, and how to maintain it, I wish to God I could go back and do full, clean installs of each OS upgrade...alas, hindsight is always 20/20
-
LCD Monitor for Video Editing: Resolution Concern
I am trying to select an LCD monitor for my newly built computer. I have zeroed in on the DELL SP2309W, 23" Full HD Widescreen Flat Panel Monitor with Webcam. The optical resolution is Higher than Full HD at 2048 x 1152. It is my understanding that H