Component interface does not save errors
Hello
I'm reading a series of JOB of lines from a flat file and calling the CI_JOB_DATA (component is JOB_DATA) App Engine peoplecode and on record, he seized any errors. It does for some employees, but does not account for some employees. I tried for the %Session.ErrorPending property to check if there are errors even on back successfully, then calling rollback and errorhandler function if there are errors, but it always saves the line with errors.
Don't know what Miss me, please help.
Input file
--------------
Type Rec, Emplid, Effdt, Action, right of Action
ARE, 000001386, 15/03/2015, TER, ATT
, 000001620, 15/03/2015, TER, RETIRED
PR, 000001732, 15/03/2015, PAY, PRR, 30
AE PeopleCode
Function errorHandler()
Local ApiObject oPSMessageCollection & oPSMessage;
Local number & J;
Local string sErrMsgSetNum, sErrMsgNum, sErrMsgText & sErrType;
& oPSMessageCollection = & Session.PSMessages;
& ErrString = "";
J = 1 & at & oPSMessageCollection.Count
& oPSMessage = & oPSMessageCollection.Item (& J);
& sErrMsgSetNum = & oPSMessage.MessageSetNumber;
& sErrMsgNum = & oPSMessage.MessageNumber;
& sErrMsgText = & oPSMessage.Text;
MessageBox (0, "", 0, 0, "CI error/warning:" |) & sErrType | " (" | & sErrMsgSetNum | "-" | & sErrMsgNum | ") - " | & sErrMsgText | """");
If None(&ErrString) then
& Sep = "";
On the other
& Sep = ",". " » ;
End - If;
If find ("Error", & sErrMsgText) > 0 Then
If Len (& ErrString | & Sep | & sErrMsgText) < = 254 then
& ErrString = & ErrString | & seven | & sErrMsgText;
End - If;
End - If;
-End;
End-function;
/*************MAINLINE *********************/
& StgRs = CreateRowset (Record.STAGE_REC_TBL);
& StgRs.Fill ("WHERE IND ('P', 'n') AND REC_TYPE <>'BT' ORDER BY ORDERNO" ""); / not read the error lines * /.
If All (& StgRs (1).) STAGE_REC_TBL. EMPLID. Value) then
I = 1 & at & StgRs.RowCount
Try
& session = Session %;
& Session.PSMessagesMode = 3;
If & <>Null Session can
& JobDataCI = & Session.GetCompIntfc (CompIntfc.CI_JOB_DATA);
If & JobDataCI = Null Then
Throw CreateException (0, 0, "GetCompIntfc failed");
Exit (1);
End - If;
& JobDataCI.InteractiveMode = True;
& JobDataCI.GetHistoryItems = True;
& JobDataCI.EditHistoryItems = False;
& StgRec = & StgRs (& i). GetRecord (Record.STAGE_REC_TBL);
& Emplid = & StgRec.EMPLID.Value;
& JobDataCI.KEYPROP_EMPLID = & Emplid;
& JobDataCI.KEYPROP_EMPL_RCD = 0;
MessageBox (0, "", 0, 0, "employee treatment:" |) (& Emplid);
CommitWork();
In the case opposite & JobDataCI.Get () then
Throw CreateException (0, 0, "Get failed");
End - If;
& oCollJobCollection = & JobDataCI.COLL_JOB;
ColNo = & oCollJobCollection.GetEffectiveItemNum (String (& StgRec.EFFDT_NEW. Value), 1);
If & ColNo > 0 Then
& oCollJobItem = & oCollJobCollection.item (& ColNo);
If & oCollJobItem.KEYPROP_EFFDT = & StgRec.EFFDT_NEW. Value then
SQLExec ("SELECT PS_JOB_ALL_CURR_VW WHERE EMPLID = EFFSEQ_NOKEY + 1: 1 AND EMPL_RCD = 0", & Emplid, & SeqNo);
REM & SeqNo = oCollJobItem.KEYPROP_EFFSEQ + 1;
On the other
& SeqNo = 0;
End - If;
& oCollJobItem = & oCollJobCollection.InsertItem (& ColNo);
& oCollJobItem.KEYPROP_EFFDT = & StgRec.EFFDT_NEW. Value;
& oCollJobItem.KEYPROP_EFFSEQ = & SeqNo;
& oCollJobItem.PROP_ACTION = & StgRec.ACTION.Value;
& oCollJobItem.PROP_ACTION_REASON = & StgRec.ACTION_REASON. Value;
& oCollJobItem.PROP_DFLT_COMP_BTN = "Y";
& oCollJobItem.PROP_CALC_COMP_BTN = "Y";
& oCollJobItem.PROP_CMP_CHANGE_AMT_FLG = "Y";
Assess and StgRec.REC_TYPE. Value
When = "PR".
& oCollJobItem.PROP_COMPRATE = & StgRec.COMPRATE.Value;
& oCollCompensationCollection = & oCollJobItem.COLL_COMPENSATION;
& CompCNo = & oCollCompensationCollection.GetEffectiveItemNum (String (& StgRec.EFFDT_NEW. Value), 1);
& oCollCompensation = oCollCompensationCollection.Item (& CompCNo);
& oCollCompensation.KEYPROP_COMP_EFFSEQ = 0;
& oCollCompensation.PROP_COMPRATE = & StgRec.COMPRATE.Value;
& oCollCompensation.PROP_MANUAL_SW = "Y";
Break;
End-assess;
In the case opposite & JobDataCI.Save () then
Throw CreateException (0, 0, "failed record");
On the other
If & Session.ErrorPending then
REM SQLExec ("ROLLBACK");
REM errorHandler();
End - If;
/ * If & Session.ErrorPending then
In the case opposite & JobDataCI.Cancel () then
MessageBox (0, "", 0, 0, "Cancel CI failed");
End - If;
Throw CreateException (0, 0, "THIS save Error (s)");
End - If;
*/
End - If;
CommitWork();
On the other
MessageBox (0, "", 0, 0, "not to mention dated the New Effdt line");
End - If;
End - If;
catch Exception & ex
errorHandler();
WARNING & ex. ToString();
end - try;
-End;
End - If;
Hi, so I tried what you are doing and I can confirm that the CI is actually saving data, even if there were errors encountered along the way. Also, I noticed that the error we get from PSMessage is actually not of any one of the fields that we are trying to update.
So I think that probably the error against EMPL_TYPE has been through a posting somewhere and has already been addressed in a code and has corrected (or adjusted) it before the real CI. Save(). This is my test by which I initialize this before field save the CI.
& oCollJobItem.PROP_EMPL_TYPE = "A";
However, the log shows that the value of this field has a value of 'n', which I assume has been updated somewhere
PSAPPSRV.3008 (429) 10.38.26 1-68247 | 0.000000 | 11: evaluate the WORK. EMPL_TYPE | |
PSAPPSRV.3008 (429) 10.38.26 1-68248 | 0.000000 | Field: EMPLOYMENT. Value EMPL_TYPE = N |
In addition,
1723545 wrote:
Alvin - it won't work as long as the session psmessages is not created until the recording is happening.
It seems to work for me... & oSession.errorPending returns "True" for our scenario
If & oSession.errorPending then
REM * run cancel *;
If not & oCiJobData.Cancel ();
MessageBox (0, "", 0, 0, "Cancel has failed");
errorHandler();
Throw CreateException (0, 0, "could not cancel");
End - If;
On the other
REM * run Save *;
If not & oCiJobData.Save ();
MessageBox (0, "", 0, 0, "registration failed");
Throw CreateException (0, 0, "failed record");
On the other
MessageBox (0, "", 0, 0, "Save OK");
End - If;
End - If;
Tags: Oracle Applications
Similar Questions
-
Error code "Windows printer Interface does not.
Original title: print queue stüch document display in the suppression of landmark when he is not removing or printing when it is not printing printer interface window error msg does not have already reinstalled driver 4 times turns on is quite what is wrong
error code "Windows printer Interface does not ' happens too times I have re installed printer drive 5 times also status on a print document shows in printing when printing does not then when I try to cancel the document it shows deleting but its not sound help please frozen. Thanks richard
In order to answer your question, you need to tell more about your hardware system configuration.
No assumption here:
(1) the printer must be compatible with your operating system. Follow the program and manual installation. Normally, these measures ensure impeccable installation.
(2) re - install the printer before removing all previous printers will cause you problems. Delete all incidents related to this printer software.
(3) most of the software are installed everything first, without the connected printer. You will need to follow the guests. Remove the CD. The system receives a reboot, the power and the USB cable are attached, you turn it on and the computer detects the device. So actually, it installs the appropriate driver package. This is typical.
-
Hotmail does not save my e-mail address and password from one session to the other
original title: record the address hotmail and password
Hotmail does not save my e-mail address and password from one session to another even if I check the boxes to remember my email address and password. Why didn't hotmail is no longer remember my info? How can I fix this?
Hello
I'm sorry, but we cannot help with hotmail problems in these forums in response to vista
Please repost your question in hotmail in the hotmail link below forums
http://windowslivehelp.com/product.aspx?ProductID=1
ForumsConsult with Microsoft Certified Solutions -
My computer (laptop) did an automatic update of Vista. Since the restart, he lost all cookies, and all applications have behaved as if they were never used. The files are OK. I had to reset the desktop resolution because it came with something too big. But it does not save the installation program, every time that the computer starts again (even after having his sleep), the office returns in a default setting that I don't like. Why didn't he save properly? I have to back to the resolution I love every time. The aspect ratio of the sidebar is also evil in this default value. The clock appears as an oval, for example. I must go to the video driver every time, set the desktop resolution seems correct. In addition, the sidebar doesn't seem to have an option to display seamlessly, but is a big silver margin is too large for my taste.
My office was working great before the upgrade, now he isn't very good at all. How can I fix it so it will stay the way I like it?Thank you very much for your answer. I solved this problem. He has been
caused by the last windows update. I think that the file was KB2524375. I have
uninstalled and everything is back to normal. The windows update (which
says he has been recommended by Microsoft) completely changes the configuration, disable
Aero, etc. so changes can not be made.
There is no error message, it was as if he superimposed a very primitive
version of windows. Of course, I do not recommend this update.
Anyway, it's fixed and I'm so happy!Thank you!
Rofa1234 -
History and cache does not save
Recently, my firefox does not save browsing history and cache. Cookies, bookmark and other preferences are good.
I tried all of the solutions that I can find. Reinstall, reset, delete user, disable the addon, change the config of privacy, etc.
Y at - he viruses that delete browsing history? Another browser is good. Or maybe my OS?
If you have the solution, I am very grateful.
Thank you and sorry for my bad English.
I don't know that I'm not and thanks for your reply.
I have uninstall system utility app and my problem is solved.
I still don't know why this happen, cause all this time this problem never happen.
-
Firefox does not save bookmarks. I have reset Firefox and reinstalled.
Firefox does not save bookmarks. I have reset Firefox and reinstalled.
You can check for problems with the database places.sqlite file in the Firefox profile folder.
-
13 Firefox does not save the tabs open, as it is set up in the window for options.
you might want to try to go to firefox > help > troubleshooting information > profile folder - display the folder and deleting all the files in this folder starting with sessionstore. Then, close the browser and after the next startup has chosen 'show widows and tabs from last time' and see if it works then...
-
Firefox does not save passwords
Problem is... then I updated my Firefox, it does not save passwords. When I enter my login details to any website, Firefox ask even to save them or not. When I check my storage of passwords in Firefox, it is always blank. I tried to reinstall completely, I tried the previous versions, but that did not help. Now I have hopes to solve this problem... so I ask for help here. If you need more information, please ask largely.
Sorry for my bad English.Hey aur1m4z,
Have you looked at the section of the Base names of users and passwords are not saved ? There are lots of good information in there.
If it's only a particular site, you experience problems with, you can also delete cookies from this site in order to make the site you not forget if you have created a remember me cookie by visiting to Tools > Options > privacy > Cookies: "Show Cookies" that there could be a "don't remember" cookie for this site.
Hope this helps!
-
Firefox does not save the proxy settings correctly
I run Firefox 7.0.1 on Windows XP SP3 machine and I am behind a proxy server. We use a proxy script to my usual workingplace. However, on a trip, I have to choose a specific proxy servers IP address. After returning to my Office I change in the script. However, the next day, the settings are back to the IP address again, which means, FF does not save my settings correctly.
Try:
- FoxyProxy Standard: https://addons.mozilla.org/firefox/addon/foxyproxy-standard/
-
I set as my Facebook home page, but when I quit Firefox and return, it does not save my login (e-mail address) so I have to retype it each time. It did not used to be like that. When I go on Facebook using AOL it still works.
My subscription to Norton has been recently updated and this problem seems to coincide with that. Is there a link?
When you connect to facebook, is it a checkbox indicating "keep me signed in '? If it does not exist, you may be clearing cookies when firefox closes:
Click on the Orange Firefox button and click Options-> privacy-> History section-> will of Firefox: select "Remember history." -
I'm having a problem where Firefox keeps asking for my password to Amazon, even if I tell Firefox NOT to remember this password. In Firefox options, Amazon is clearly recognized as a site for which does not save passwords.
Do not remove the navigation, search and download history on Firefox to clear the "Site preferences".
Compensation of the "Site Preferences" clears all exceptions for cookies, images, windows pop up, installation of software and passwords.
-
Firefox 4 does not save form data after sending form and pressing the previous button
Firefox 4 does not save form data after sending form and pressing the back button... It's very annoying that it erases all data. It worked fine on FF3.
See:
- Firefox or tools > Options > privacy > History: "don't forget to search and form history."
-
I have the 'Remember passwords for sites"and"Use a master password"boxes checked and a password have been correctly set up - but Firefox has stopped from asking me if I want to remember passwords or not and, of course, does not save them.
I tried to uncheck, clear the master password, cleaning of all passwords in memory then check again and by defining a new master password, but no luck.
Any suggestions? Thanks in advance for any help.
Varton
- Make sure that you do not run Firefox in private - browsing using Firefox without saving the story mode (permanent)
- You enter private browsing mode, if you select: Tools > Options > privacy > History: Firefox will be: "don't forget the story ever.
- To view all the history settings, choose: Tools > Options > privacy, choose the setting Firefox will: use the custom settings for the story of
- Uncheck the box: [] "automatically start Firefox in a private browsing session.
-
Firefox does not save passwords and plays videos without sound
My firefox is not asking to save passwords since I updated to the latest version. There passwords saved in the earlier version, that work well. but he adds more new passwords. It is not connected with banks and these sites. It does not save password for any site, and it does me not even an option to record. (I kept recording Yes password option). Another problem is that it plays without volume youtube videos while my IE works fine for these Web sites.
This has happened
Each time Firefox opened
Since I upgrade 3.6.3
User Agent
Mozilla/5.0 (Windows; U; Windows NT 6.0; Chrome/5.0.375.70 en-US) AppleWebKit/533.4 (KHTML, like Gecko) Safari/533.4
Make sure that you are not running Firefox mode of private - browsing using Firefox without saving history .
In private browsing mode that some menu items are disabled (in gray) and some features like the visited links and others are disabled and does not.
You're in private browsing mode, if you see "tools > stop private browsing."
See Private Browsing - use Firefox without saving history and http://kb.mozillazine.org/Issues_related_to_Private_Browsing
.....
You enter private browsing mode, if you select: Tools > Options > privacy > History: Firefox will be: "don't forget the story ever.
To view all the history settings, choose: Tools > Options > privacy, choose the setting Firefox will: use the custom settings for the story of
Uncheck the box: [[] 'Automatically start Firefox in a private browsing session']See also http://kb.mozillazine.org/User_name_and_password_not_remembered (bookmarklet)
-
Help with the Printer Spooler service does not work error
How can I fix printer service spooler does not work error? My two printers won't work now, and re - install the printing software produces error messages. Tried to use microsoft fix - it for printers without result.
Thank you.
Hi elvenlord21,
See the article below which has some useful suggestions to fix the print spooler error.
You cannot add a printer and you receive Printer Spooler error messages in Windows XP
http://support.Microsoft.com/kb/324757See also:
Error message when you use the Add Printer Wizard: "Operation could not be completed.
http://support.Microsoft.com/kb/314876Kind regards
Shinmila H - Microsoft Support
Visit our Microsoft answers feedback Forum and let us know what you think.
Maybe you are looking for
-
Firefox is still buggy after adware removal
After removing some adware that I had yesterday, Firefox is still sort of bug. I did deep analysis in my records with multiple anti-malware and anti-virus programs. and I uninstalled Firefox, delete old profiles too and make a new clean install. Howe
-
Automatic operation of the brightness
I have a Snugg Silicone cover for my iPad 2 Air. When I put it on my iPad and the "Automatic brightness" control is in auto mode, the screen becomes the minimum brightness. To return to normal display to the ratings, I put the manual control to adju
-
Convert hex (or byte?) duplicate
Hallo, I'm contacting an instrument through VISA controls. I'm getting a release in the hexagonal form combination of numbers and letters. the thing is that, with all the formulas that I tried to convert it to a double I failed miserably. The data ca
-
HP Photosmart: No black printing more
I changed my cartridges yellow, pink and blue as they were low on ink. After this operation, all the impressions I have try to make are without any black. Theblack ink level indicates half full. I tried to rebbot the PC, the printer... moved the blac
-
BlackBerry Pearl Smartphones does not receive messages while MS Outlook is 'on '.
I just moved my Pearl of a BES configuration company for a new account AT & T using BIS. I finally got messages to reconcile with the BB wireless return service directories to the device. My problem - although relatively minor - is that the BB will