Reg fnd_user_pkg.UpdateUser

Hi all,
while end dating getting following error FND_RAISE_EVENT_FAILED, not sure what this issue about.
If anyone faced similar kind of issue, pls expalin abt the same and how to fix this.
Thanks
Badsha

Hi Hussein,
Thanks for the immediate reply.
Version is R12 - 12.1.2
database 10g
I am calling the API like below.
Have created procedure and called the api inside the procedure like shown below.
FOR k IN c1
LOOP
Begin
apps.fnd_user_pkg.UpdateUser(x_user_name => k.user_name,
x_owner => null,
x_end_date => k.actual_termination_date);
Exception
when OTHERS then
apps.fnd_file.put_line (apps.fnd_file.log, 'Below user '||rpad(k.user_name,25)|| 'is not end dated due to '||sqlcode||'::'||sqlerrm);
/*apps.fnd_file.put_line (apps.fnd_file.log,
rpad(k.employee_number,15)
|| rpad(k.user_name,25)
|| rpad(k.actual_termination_date,17)
|| rpad(k.full_name,25)
|| k.name
commit;
End;
end loop;
For every record no 50 getting errorr "Below user XXXX.XXX is not end dated due to ORA-20001: FND_RAISE_EVENT_FAILED" this error also comes in 100th and 150 record and it goes on...
Hope ti clarifies.
Thanks
Badsha.

Similar Messages

  • Fnd_user_pkg.updateuser - Remove End Date from Users

    As part of an upgrade, we need to end-date the vast majority of our users.
    I've used the fnd_user_pkg.updateuser API to populate the end_date on the fnd_user table.
    However, when I've come to test removing the end-date, I can't seem to do it. In the example below, the end_date remains populated.
    DECLARE
       CURSOR usercur
       IS
          SELECT fu.user_name
            FROM apps.fnd_user fu
           WHERE user_name = 'TEST_ACCOUNT';
    BEGIN
       FOR myuser IN usercur
       LOOP
          fnd_user_pkg.updateuser(
             x_user_name      => myuser.user_name
           , x_owner          => 'CUST'
           , x_end_date       => NULL
       END LOOP;
    END;On the example on this post:
    http://apps2fusion.com/forums/viewtopic.php?f=99&t=108
    They removed the end-date via:
    x_end_date => SYSDATE + 10000);
    However, that's not really removing the end date, it's just setting it to a long time in the future.
    I wondered if I might be missing something obvious?
    Any advice much appreciated.
    Thanks

    Only obvious thing you are missing is that you have posted this to the wrong forum, you need to be on e-business forum.
    BTW - have you tried re-setting the password at the same time?
    regards,
    Robert.

  • And again fnd_user_pkg.updateuser

    Hi guys!
    I have few questions and I will be appreciate if you find couple of minutes and post an answer.
    1) What does x_owner parameter means in fnd_user_pkg.updateuser package? When I used x_owner => '' user lost all it's responsibilities I re-submitted it with x_owner  => 'CUSTOM' all responsibilities became visible again Do you have any idea?
    And answer on my second question, I hope, will prevent for same issues\questions in future.
    2) Is there are any way to determine what parameters should be necessary and their description.
    Thanks,
    Kirill.

    0b5bf3f3-151d-4099-8f8f-3c91f38f2c30 wrote:
    Hi guys!
    I have few questions and I will be appreciate if you find couple of minutes and post an answer.
    1) What does x_owner parameter means in fnd_user_pkg.updateuser package? When I used x_owner => '' user lost all it's responsibilities I re-submitted it with x_owner  => 'CUSTOM' all responsibilities became visible again Do you have any idea?
    And answer on my second question, I hope, will prevent for same issues\questions in future.
    2) Is there are any way to determine what parameters should be necessary and their description.
    Thanks,
    Kirill.
    1) Please see (When Using FND_USER_PKG To Enable/Disable Users What Should Be The Value For X_OWNER? (Doc ID 948191.1)).
    2) Yes.
    http://etrm.oracle.com/pls/et1211d9/etrm_pnav.show_details?c_name=FND_USER_PKG&c_owner=APPS&c_type=PACKAGE%20BODY&c_detail_type=source
    How to End-Date/Delete an Applications User (Doc ID 1064798.1)
    Thanks,
    Hussein

  • FND_USER encryption

    Hi,
    We are looking to develop an application that resets a user password programatically, but we don't have enough detailed information about how the fields ENCRYPTED_USER_PASSWORD and ENCRYPTED_FOUNDATION_PASSWORD in the table FND_USER are actually generated by the security admin screens. I have found articles that describe the dependancy on the APPL/APPLSYS passwords, but this isn't complete enough.
    For example, it appears that in the case of two users "JOE" and "BOB", setting their password both to "SECRET" using te admin screen creates ENCRYPTED_USER_PASSWORD fields with the same contents, but ENCRYPTED_FOUNDATION_PASSWORD's that are different (is the user id part of the key fed to DBMS_OBSFUCATE ?).
    Any help in this area or pointers to people that could help would be much appreciated,
    Dave Vinell.

    The API fnd_user_pkg.UpdateUser truncates the End date, and I am right now using this to End date the user, and the user cannot access his account on his/her last day.Are you trying to end date the user account using this API?
    What is the END_DATE set for? Is it SYSDATE or something different?
    Please see old threads for similar discussion -- https://forums.oracle.com/forums/search.jspa?threadID=&q=fnd_user_pkg.updateuser&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    Is there any other alternative API to update the end date for a user with the timestamp, and how is the last day for an employee in HR and FND User usually defined.No alternative API to update such details in FND_USER
    Thanks,
    Hussein

  • How can i create bulk users with system Administrator responsibility in EBS

    Hi Gurus
    I want to create or Load Bulk users with System Administrator Responsibility in Oracle EBS using simple steps (Concurrent,API,OI,Back end). Is it Possible to create user with system Administrator Responsibility using concurrent/API/OI. Kindly help me in creating users with following details.
    Username     User Description     Employee Name     E-Mail ID     
    Das A R     GM     Mr. Arup R.Das     [email protected]     
    sandeep.n     Sr. Manager - Works     Mr.sandeep.Naik     [email protected]     
    sandeep     Asst. Manager - Excise Mr.Sandeep Bhosale     [email protected]     
    Thanks in Advance
    Hemanth.C

    Login to to the Ebiz database with user/paswad app/app and verify the detiled parameter for below DB procedures which are being used to create, update user and responsibility related work
    Create User FND_USER_PKG.CreateUser
    Disable user FND_USER_PKG.DisableUser
    Update USer FND_USER_PKG.UpdateUser
    Enable User FND_USER_PKG.EnableUser
    Add Responsibility FND_USER_PKG.AddResp
    Update Responsibility FND_USER_PKG.AddResp
    Remove Responsibility FND_USER_PKG.DelResp
    In your case call two method
    1.CreateUser pass all parameter
    2. add responsibility - for responsibility check the KEY/ID value for System administrator in FND_RESPONSIBILITY table. while calling method pass this ID/KEY
    Better put this in EBIZ forum.

  • How to disable/set password expiration to None in EBS

    HI ,
    I just clone a 11i , and was asked to set all users password not to expire . I have studied FND_USER_PKG.UPDATEUSER , but has no idea how to do it . Can anyone help ? Thanks
    Felix

    Hi;
    Please check below which could be helpful for your issue:
    Password information-Where ebs pass keep
    Re: Password information
    password expiration for EBS users
    how to set password expiration for EBS users
    password polciy
    Password policy
    Regard
    Helios

  • USER UPDATE가 안되는 문제 ORA-20001 ORA-06512

    제품 : AOL
    작성날짜 : 2002-11-29
    USER UPDATE가 안되는 문제 ORA-20001 ORA-06512
    =======================================
    PURPOSE
    Problem Description
    SQL> exec fnd_user_pkg.UpdateUser('LGESSO','SEED', 'lgesso2');
    BEGIN fnd_user_pkg.UpdateUser('LGESSO','SEED', 'lgesso2'); END;
    ERROR at line 1:
    ORA-20001: Unabled to change password for user LGESSO for this following
    reason:
    Password was not changed.
    ORA-06512: at "APPS.APP_EXCEPTION", line 51
    ORA-06512: at "APPS.FND_USER_PKG", line 350
    ORA-06512: at line 1
    Workaround
    patch 2426407를 적용해야 한다.
    Solution Description
    FND_USER_PKG.UpdateUser가 유저의 패스워드를 바꿀때 fail이 나는 문제이다.다음과 같은 에러가 난다:
    ERROR at line 1:
    ORA-20001: Unabled to change password for user JFROST for this following
    reason:
    Password was not changed.
    ORA-06512: at "APPS.APP_EXCEPTION", line 51
    ORA-06512: at "APPS.FND_USER_PKG", line 348
    ORA-06512: at line 1
    This is due to a change in FND_WEB_SEC.change_password being defined with a
    pragma of autonomous transaction.
    FND_USER_PKG.UpdateUser calls FND_WEB_SEC.change_password to change a user's
    password.
    Reference Documents
    -------------------

    DBA2008 wrote:
    i disable the trigger messing up tivoli user,& i am able to login fine, wondering if i enable it back it will do the same?If you keep doing the same thing, you can expect the same results.
    Perhaps you should analyze the trigger to figure out
    1) what it was supposed to be doing that is not being done since you disabled it
    2) why it was throwing the error . . .

  • Resetting password in 11i.

    Hi Folks,
    I am looking to a solution to reset the user password in Apps11i. I should say I am looking more as a quick fix kind of solution as I am ruling the option of using UMX or implementing SSO/LDAP.
    I am seriously thinking of using the simple PL/SQL approach below.
    begin
    fnd_user_pkg.updateuser(x_user_name => 'TESTPAS', x_owner => 'CUST', x_unencrypted_password => 'change123');
    commit;
    end;
    Im planning to wrap it up by a Shell script and provide a link to execute this script through a Web interface. But the problem is authenticating the user. Any user can just run the script and reset some else's password to the his desired one and could use the system.
    Is there any authentication mechanism that has been used by any of you and still use the fnd_user_pkg to reset the password, Please let me know. I am little hesitant to sit down and reinvent the wheel while some one has a script / mechanism to overcome this.
    Appreciate your response...
    JayJay..

    If you are trying to change application user passwords through a web interface, you need to consider two scenarios.
    a. User knows existing password (umm.. though I suspect this is not the case you are tring to find a solution)
    1. You can pass existing password as another parameter to the procedure call
    fnd_user_pkg.updateuser. This validates current password before changing it to new
    value. (OR)
    2. You can use the function fnd_web_sec.validate_login('<USERNAME>','<PASSWORD>') to user before allowing him to change the password.
    b. User forgets the current password.
    If you have HRMS and store sensitive data like SSN, you can ask the user to provide SSN and validate this information before allowing him to reset the password.
    You just need to write a simple function for this.
    HTH

  • Mail can't send email from 123-reg accounts

    Hi all,
    I've got an issue with Mac Mail can’t send email from 123-reg accounts.
    I know there is a lot of articles on simular matters and some I have tried out with no luck, others are just speaking a whole other language.
    Any help would be greatly recived, here's my situation below:
    Running a iMac 2.8GHz Intel Core i5 on OS X 10.8.3
    I’m using 3 accounts on Macs Mail client, one is my iCloud account that is working fine and the other two are my 123-reg accounts that I use for business purposes. I’ve been working like this for a couple of years now and about 6 months ago I upgrade my operating system from Snow Leopard to Mountain Lion.
    2 or 3 months ago I randomly got a problem where I was unable to send any emails from my 123-reg account, I could only receive emails. I checked my settings and they were all correct and unchanged so I attempted to delete them and recreate the account but with no such luck.
    I then decided to check if it was a problem at 123-regs end and attempted to log into web mail. This worked and was able to both send and receive emails so eliminated that possibility.
    I also have these accounts set up on my iPhone, so checked if there was any issues and everything was working fine. I then checked my iphone details and made sure the same was on my desktop and still no such luck.
    I’ve tried out some of the articles I’ve found on here (the ones written in plain English) still no results. I’m not very IT illiterate and just wondered if anyone else has got any ideas, whether there is something specific with 123-reg accounts and Mac Mail?
    Many thanks.

    Thanks
    I just had another hunt around looking at posts and discovered that it was because I recently changed to BT Infinity and they had a block on.
    I didn't even think to question the ISP.
    https://discussions.apple.com/message/21173608#21173608

  • Reg: Message and BPM

    Hi
    I'm having a scenario where i use a JDBC adapter to extract data from a DB. As a result of the query say, 10 rows are returned as message to XI server. I have a transformation (BPM) set and the receiver(target system) is a file. When i open the file to see its contents i can see only the first record been transfered. The mapping part used for the transformation node is having IF condition. But all the fetched records satisfies the conditions in the mapping.
    Pls let me know the corrective step.
    reg: Prabhu

    Hi,
    1)Check the input XML i.e all 10 records are coming into XI . This you can check in SXMB_MONI
    2) Then you can test the mapping in the integration Reposiotry .. So now you can get if any mapping problem. For this , check is the occurence of target strcuture is 1..n or 0.n
    /people/michal.krawczyk2/blog/2005/09/16/xi-how-to-test-your-mapping-in-real-life-scenarios
    3) If mapping is correct , then check the RWB->Message Monitoring->Message Display Tool and check the payload.
    4) If this is correct, then check the File COntent Conversion of the Receiver File Adapter.
    Hope this helps,
    Regards,
    Moorthy

  • Reg: How to Stop Polling of JDBC Adapter without Scheduling the adapter

    Dear Gurus,
    Here I am having one requirement. My clients wants to send data from JDBC adapter (ORcale System table) to R3 system via RFC.
    His Requirement::
    1. He is not telling the time of data flow from Oracle server so that based on that we can schedule the adapter in the Communication Channel monitoring (Availablitiy Time Planning) or Else we can Schedule by deciding the setting of the polling interval time.
    2. He is telling that When ever he waants to send the data he will place one dummy file in the File Adapter FTP location so that it will became an Indication for u to poll the jdbc adapter and to transfer the data to R3.
    3. Untill he keeps the file or gives indication he doesn;t want to communicate with Oracle server due to some security and it s a most important data base he doesn't want to disturb that Oracle Server as so many business are running  on that.....
    We Proposed::
    1. Atleast you need to tell the scheduling time or poll interval time so that we can schedule our adapter.
    but he s not accepting for this
    2. Atleast U need to give access for Data base to enter one more extra field like STATUS CODE so that we will add one number and we keep on Update in the Update table and based on that Update table statement it will poll.
    but he s not even accepting for this
    3. Finally we prposed that to create another table in the Oracle SYstem as Dulplicate Table which is similar to Standard Orginal table when ever he wants to pick the data please keep that data in this Duplicate TABle so that JDBC adapter will pick the data from thsi TABLE instead of picking the data from that standard table so that it will not effect any standard table data in the table.
    but he s not even accepting for this
    We have done some R & D:::
    1. WE approached even through BPM and via switch conditions is one scenario
       FILE RECEIVE >SWITCH CONDITION> RECEIVE AND SEND or else EXIT
    2. Using correlation in anotehr scenario means correlating File adapter and JDBC and based on one dynamica value it will goes to SEND STEP ( RECE IVE --> RECEIVE --> SEND STEPS )
    Even though we know this...concept that...we jsut tried::
    In BPM we can control the flow in XI 3.0 but we cannot Stop the Polling of JDBC adapter at backend because one the data comes from FILE adapter it will keep on HOLD untill it receives the JDBC from Oracle then based on the condition or Correlation it will goes futher SEND step means after that file adapter is picking file or not ...what ever it may be JDBC will polls at backend and brings that data to BPM"
    Hence sugest me How to Stop Polling of JDBC Adapter without Scheduling the adapter or else using STATUS CODE Update statements in JDBC Tables 
    Regards:
    Amar Srinivas Eli

    Hi! All,
    Finally I decided to do the scenario in two steps:
    1: FILE REQ --> JDBC REQ -->JDBC RES --> FILE RECV
    2: FILE RECV --> RFC
    But I am getting issue while doing first scenario
    Desgn :
    I have created 2 Synchronous interfaces :
    1) FILE 2 JDBC REQ
    In this a) out put message is FILE  Req
              b) Input msage:; FILE RES
    2} JDBC2FILE RECV
            a) Output mesage;; JDBC REQ
            b) Input Msge :: JDBC Response
    Mappings:
    1) File REQ-->JDBC REQ
    2) JDBC RES-->FILE RES
    Interface mappings:
    1: FILE 2 JDBC REQ--> JDBC 2 FLE RECV
    CONFIGURATION ::
    1: One Seder File CC
    2: Two reciever CC's one is for JDBC RECEIVER and other s FILE RECEIVER
    3; One Sender Agreement
    4: 2 Recver agreements
    5: One Interface Determination and
    6: One RECCV Determination
    My Question;;
    1. First let confirm whether my development steps are right or not ?
    2: Another thing s I am not sure reg Configuration Steps means
    whetehr one interface determination and one Receiver Determinations are required or not as these are synchronous Interfaces
    3: main Issue is::::
    If my scenario s FILE2RFC2FILE then I will get RFC response automatically but here issue is this is JDBC
    My reqquirement is By sending one Field from fILE to JDBC REQ it needs to send entire TAbLE records as a Response to file as XML
    without having Sender JDBC how can I send the JDBC Res to FILE and If that is the case then again JDBC adapter is polling which is contradict to the client requuirement which i explained above.
    pleas suggest me the Detailed steps mainly Colloboration agreements and logical routings and
    also explain in detail if i can  go for BPM
    Also give cleear blogs but before giving make sure that it contains detailed screen shots because aIready gone thorugh
    Scenario File-JDBC-RFC
    File<-->JDBC Sync coomunication.
    https://www.sdn.sap.com/irj/scn/wiki?path=/display/xi/file-rfc-file(Without+BPM)
    /people/luis.melgar/blog/2008/05/13/synchronous-soap-to-jdbc--end-to-end-walkthrough
    Regards::
    Amar Srinivas Eli

  • Excise Reg at Depot

    Hi all,
    We have Excise REg no for Plant. But plant does not have Excise reg no.
    Material is shipped to Depot with excise invoice. What is the procedure at depot for GR.
    Do i need to capture the excise invoice?. From Depot, there is no excise invoice generated for customers.
    thanks.

    Hi,
    Refer following link;
    [J95 - Sales at Depot|http://help.sap.com/bp_bblibrary/500/HTML/J95_SaleDepot_EN_IN.htm]

  • How to set reg.cgi for VideoPhoneLabs

    i start with stratus .i try set it to work with my dedicated apache server and sql but have no clue how to do it or where to put this file on my server.
    i realy have probleme with reg.cgi
    for now i did www/cgi-bin/reg.cgi and in the xml i set my websiteurl = "http://88..../cgi-bin/"
    also how to complete reg.cgi for have it to talk with my db ?
    here the reg.cgi file.
    help please ...
    #! /usr/bin/python --
    reg.cgi by Michael Thornburgh.
    This file is in the public domain.
    IMPORTANT: This script is for illustrative purposes only. It does
    not have user authentication or other access control measures that
    a real production service would have.
    This script should be placed in the cgi-bin location according to
    your web server installation. The database is an SQLite3 database.
    Edit the location of the database in variable "dbFile".
    Create it with the following schema:
    .schema
    CREATE TABLE registrations (
        m_username VARCHAR COLLATE NOCASE,
        m_identity VARCHAR,
        m_updatetime DATETIME,
        PRIMARY KEY (m_username)
    CREATE INDEX registrations_updatetime ON registrations (m_updatetime ASC);
    # CHANGE THIS
    dbFile = '.../registrations.db'
    import cgi
    import sqlite3
    import xml.sax.saxutils
    query = cgi.parse()
    db = sqlite3.connect(dbFile)
    user = query.get('username', [None])[0]
    identity = query.get('identity', [None])[0]
    friends = query.get('friends', [])
    print 'Content-type: text/plain\n\n<?xml version="1.0" encoding="utf-8"?>\n<result>'
    if user:
        try:
            c = db.cursor()
            c.execute("insert or replace into registrations values (?, ?, datetime('now'))", (user, identity))
            print '\t<update>true</update>'
        except:
            print '\t<update>false</update>'
    for f in friends:
        print "\t<friend>\n\t\t<user>%s</user>" % (xml.sax.saxutils.escape(f), )
        c = db.cursor()
        c.execute("select m_username, m_identity from registrations where m_username = ? and m_updatetime > datetime('now', '-1 hour')", (f, ))
        for result in c.fetchall():
            eachIdent = result[1]
            if not eachIdent:
                eachIdent = ""
            print "\t\t<identity>%s</identity>" % (xml.sax.saxutils.escape(eachIdent), )
            if f != result[0]:
                print "\t\t<registered>%s</registered>" % (xml.sax.saxutils.escape(result[0]), )
        print "\t</friend>"
    db.commit()
    print "</result>"

    Persistent binding is effectively provided by STMS (MPxIO) - is there anything in particular you're wanting to do that STMS doesn't provide?

  • I bought an itunes gift card in a different country than my account is reg to, can i use it??

    my acc is reg in ireland, i am currently in new zealand and bought a gift card, i cant work out how to use it, help!

    You can't.
    They are country specific.
    You could get a New Zealand address, then get a credit card that is billed to that address, then set up an account in New Zealand, and as long as you are inside the Borders of New Zealand, then you could redeem the card.

  • How to execute a .reg file in a task sequence using MDT 2013

    Hi,
    Im trying to add a couple of desktop icons to my custom images during deployment using MDT 2013. I have a .reg file with all commands inside it but I am struggling to get these to work. the .reg file is located on my deployment server and is in a shared
    folder which everyone has full read\write access to, I was wondering if someone could help?
    The commands inside the .reg file are:
    reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\ClassicStartMenu /v {20D04FE0-3AEA-1069-A2D8-08002B30309D} /t REG_DWORD /d 0 /f
    reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel /v {20D04FE0-3AEA-1069-A2D8-08002B30309D} /t REG_DWORD /d 0 /f
    reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\ClassicStartMenu /v {59031a47-3f72-44a7-89c5-5595fe6b30ee} /t REG_DWORD /d 0 /f
    reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel /v {59031a47-3f72-44a7-89c5-5595fe6b30ee} /t REG_DWORD /d 0 /f
    Thanks

    That's not a *.reg file. that's a set of commands used in a *.cmd file.
    Keith Garner - Principal Consultant [owner] -
    http://DeploymentLive.com

Maybe you are looking for