Update process form data

Hi,
I am trying to update AD process form data through the OIM API. I have to clear all the telephone numbers. I am getting this error when i run it.
varbinary is incompatible with text
2011-06-24 10:48:31,918 ERROR [XELLERATE.SCHEDULER.TASK] Class/Method: SchedulerBaseTask/run encounter some problems: {1}
java.lang.NullPointerException
     at com.thortech.xl.schedule.tasks.UpdateAD.execute(UpdateAD.java:116)
     at com.thortech.xl.scheduler.tasks.SchedulerBaseTask.run(Unknown Source)
     at com.thortech.xl.scheduler.core.quartz.QuartzWrapper$TaskExecutionAction.run(Unknown Source)
     at Thor.API.Security.LoginHandler.jbossLoginSession.runAs(Unknown Source)
     at com.thortech.xl.scheduler.core.quartz.QuartzWrapper.execute(Unknown Source)
     at org.quartz.core.JobRunShell.run(JobRunShell.java:203)
     at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520)
2011-06-24 10:48:31,918 ERROR [XELLERATE.SERVER] Class/Method: QuartzWrapper/run encounter some problems: Operand type clash: varbinary is incompatible with text
com.microsoft.sqlserver.jdbc.SQLServerException: Operand type clash: varbinary is incompatible with text
Please help
M

This is the code I am using..
map.put("UD_ADUSER_TELEPHONE",rs.getString("usr_udf_telephone"));
long pinstancekey = 215041;
formOp.setProcessFormData(pinstancekey,map); //This line is throwing the error

Similar Messages

  • Error While updating Process form data Using Scheduler

    Hi All,
    I am trying to update Process form data (ex : lastname) using a scheduled task Code. I am getting Error while updating Field.
    Code :
    HashMap<String, String> map = new HashMap<String, String>();
    map.put("UD_EBS_PF_LASTNAME", "lastname");
    formintf.setProcessFormData(instancekey, map);  //I AM GETTING AT THIS LINE
    Saying
    Thor.API.Exceptions.tcAPIException: The following required fields have not been given values:EBS IT Resource : The following required fields have not been given values:EBS IT Resource
        at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:234)
        at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:348)
        at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:259)
        at Thor.API.Operations.tcFormInstanceOperationsIntfEJB_h6wb8n_tcFormInstanceOperationsIntfRemoteImpl_1036_WLStub.setProcessFormDatax(Unknown Source)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at weblogic.ejb.container.internal.RemoteBusinessIntfProxy.invoke(RemoteBusinessIntfProxy.java:85)
        at $Proxy2.setProcessFormDatax(Unknown Source)
        at Thor.API.Operations.tcFormInstanceOperationsIntfDelegate.setProcessFormData(Unknown Source)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at Thor.API.Base.SecurityInvocationHandler$1.run(SecurityInvocationHandler.java:68)
        at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
        at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
        at weblogic.security.Security.runAs(Security.java:41)
        at Thor.API.Security.LoginHandler.weblogicLoginSession.runAs(weblogicLoginSession.java:52)
        at Thor.API.Base.SecurityInvocationHandler.invoke(SecurityInvocationHandler.java:79)
        at $Proxy3.setProcessFormData(Unknown Source)
        at com.wyndham.tasks.AssignRandomPasswordToAllUsersSchedulerTest.execute(AssignRandomPasswordToAllUsersSchedulerTest.java:182)
        at com.wyndham.tasks.AssignRandomPasswordToAllUsersSchedulerTest.main(AssignRandomPasswordToAllUsersSchedulerTest.java:63)
    Caused by: Thor.API.Exceptions.tcAPIException: The following required fields have not been given values:EBS IT Resource : The following required fields have not been given values:EBS IT Resource
        at com.thortech.xl.ejb.beansimpl.tcFormInstanceOperationsBean.setProcessFormData(tcFormInstanceOperationsBean.java:761)
        at com.thortech.xl.ejb.beansimpl.tcFormInstanceOperationsBean.setProcessFormData(tcFormInstanceOperationsBean.java:426)
        at Thor.API.Operations.tcFormInstanceOperationsIntfEJB.setProcessFormDatax(Unknown Source)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

    Is that possible there was the field ZDATE in your form interface/ context and now it is not? I guess some source has changed so the field in the form (binding to the not existing field) cannot be processed. Otto

  • Need help in getting process form data

    Hi,
    We have one IT resource type definition say SSH. We have number of IT resources-abc,xyz of same type-SSH .
    When user gets provisioned to this resource, then in the resource profile, we can see resource name as SSH. In the process form of SSH we can see the IT resource name -abc,xyz
    Now the requirement is I need this IT resource name from process forom of SSH. I have written one java code which sends out an email to application owner when this SSH resource is revoked. But I need to show the IT resource name-abc,xyz in the email to application owners.
    Can anybody help to get the process form data?
    Thanks,
    Kalpana.

    yes, add new attribute to the process form and populate using adapter find below code
    public long getITResource(String itResource) {
              long returnValue = 0;
              String methodName = "getITResource";
              try {
                   tcITResourceInstanceOperationsIntf tcITResourceIntf = (tcITResourceInstanceOperationsIntf)Platform.getService(tcITResourceInstanceOperationsIntf.class);
                   HashMap<String, String> map = new HashMap<String, String>();
                   map.put("IT Resources.Name", itResource);
                   tcResultSet resultSet = tcITResourceIntf
                             .findITResourceInstances(map);
                   if (resultSet.getRowCount() <= 0) {
                        logger.error(className, methodName,
                                  "Following IT Resource not fetched:" + map);
                        throw new Exception("IT Resource not fetched");
                   resultSet.goToRow(0);
                   logger.info(className, methodName, "ITResource determined.");
                   // Got the result
                   returnValue = resultSet.getLongValue("IT Resources.Key");
                   tcITResourceIntf.close();
                   ops.closeUtilityObject();
                   return returnValue;
              } catch (Exception e) {
                   logger.error(className, methodName, e.getMessage());
                   return returnValue;
    pass itResource name as literal in adapter. If it is 10g use tcUtilityFactory instead of Platforml.getService
    --nayan                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • What is process form data in controller

    hello friends,
    what is process form data in controller? i can not see process form data when i created controller, what is the significance to use process form data in controller?exactly which scenario we can use in our OAF application?
    as per jdevguide, i could not clear this below.
    In most -- if not all -- of the pages that you build, you will have no cause to overwrite this method. In fact, the only use case we could think of is extremely unlikely in an OA Framework application: if the data source for a region is not a view object, so the view instance and attribute properties are not defined for the individual web beans, then you could code the region's processFormData() to write the child web bean data to the appropriate data source. Note: The OA Framework implements processFormData() at the item level, but you can overwrite it only at the region level, so you must process all of the region's items if you ever implement anything like this. If you do choose to implement something like this, remember to call super.processFormData(OAPageContext pageContext, OAWebBean webBean) first.
    Thanks
    krish.

    Announcement: Forums Etiquette / Reward Points
    Posters, please mind these common-sense rules when participating here:
    - When asking a question, provide all the details that someone would need to answer it. Consulting documentation first is highly recommended.
    - When answering a question, please be courteous; there are different levels of experience represented here. A poorly worded question is better ignored than flamed - or better yet, help the poster ask a better question.
    - It is considered good etiquette to reward answerers with points (as "helpful" - 5 pts - or "correct" - 10pts).
    - See more tips in the FAQ
    Thanks for doing your part to make this community as valuable as possible for everyone!
    - OTN
    Posters, please mind these common-sense rules when participating here:
    - When asking a question, provide all the details that someone would need to answer it. Consulting documentation first is highly recommended.
    - When answering a question, please be courteous; there are different levels of experience represented here. A poorly worded question is better ignored than flamed - or better yet, help the poster ask a better question.
    - It is considered good etiquette to reward answerers with points (as "helpful" - 5 pts - or "correct" - 10pts).
    - See more tips in the FAQ
    Thanks for doing your part to make this community as valuable as possible for everyone!
    - OTN

  • Update process form

    I want to be able to update a process form (AD User) before the user is created by using a process task instead of pre-pop.
    I did a search on the forum and found this:
    searchMap.put("Objects.Name", "AD User");
    objresultSet = moObjectUtility.findObjects(searchMap);
    long ObjectKey = objresultSet.getLongValue("Objects.Key");
    objectMap.put("Objects.Object Status.Status", "Provisioned");
    objectSet =(ObjectKey, objectMap);
    String processInstanceKey = objectSet.getStringValue("Process Instance.Key");
    I've writtent he code for this but this code above is looking for provisioned resource but I am trying to update the process form before the user gets provisioned. Is this possible? I want to modify the process form before create user is run.

    Thanks to all. I create three process tasks that return results to process form, which call <process task> updated. I added the three tasks to Success response on create user. However, it worked somewhat. Some fields would work and some would not. It was almost random which ones worked and which did not.
    So, the fix was to have three tasks and link them with "preceding tasks". i.e. in the third task add second task as preceding and in the second, add the first task as preceding. This work fine. The problem was that once all three got fired, OIM runs them simultaneously and there is a resource contention issue. Its basically a bug. Setting the "preceding task" fixes that issue.
    My code is working now. One more thing, you have to have Get Object GUID created in task dependancy for the <process task> updated.

  • Error updating Process Form: Same Column exist with a different variant

    Hi All,
    I have a process form of a resource with following fields :
    Name VariantType Length FieldLabel FieldType Order
    UD_EDIR_BWUSER   boolean       1          BWUser    Checkbox      25
    UD_EDIR_ISUUser    boolean       1          ISUUser    Checkbox      26
    Now, I have to changes these field from boolean to string. For that, I created a new process form version and update like this:
    1. Delete these fields first.
    2. Add two new fields:
    UD_EDIR_BWUSER String 4 BWUser Textfield 25
    UD_EDIR_ISUUser String 4 ISUUser Textfield 26
    Now, when I tried saving the form, I got following error
    Same Column exist with a different variant in current or previous form.
    I also tried creating again a new version of process form and tried updating these field instead of re-creating them but I was able to update the FieldType only ( not able to update the Variant type and length).
    If anyone know how to resolve this issue, please reply.
    Cheers,
    Sunny

    Hi Rajiv,
    Thanks for the reply. I re-created these field in a new version but gave a different name this time like this:
    UD_EDIR_SAP_BW_USER String 4 SAPBWUser TextField 25
    UD_EDIR_SAP_ISU_USER String 4 SAPISUUser TextField 26
    and it worked for me.
    Cheers,
    Sunny

  • Updating Process Form

    I want to update the Server (IT resource) field in on the SJSDS process form for all users in OIM.
    Any recommendations on the best way to acheive this?
    cheers
    Michael

    APMK, custom schedule task will be better approach.
    You'll get so many posts related to custom schedule task on the forum.
    Create custom task schedule
    How to create a new schedule task from java code

  • HCM Process & Forms: Date & Time Stamp issue in Prev Comments Box

    Hi
    We implemented HCM Process and Forms and we are in EHP4.  We need user name, date and time stamp in each step for audit purpose.
    Form Process Example:
    Step1: Manager -> Initiates a Form for employee pay/position changes  (REQUEST)
    Step2: 1-Up Manager -> Approves a Form for employee pay/position changes (APPROVE)
    Step3: HR Admin -> Process a Form for employee pay/position changes (PROCESS)
    Process Overview: HR Admin can open a form once all steps are completed and they want to see all 3 steps date & stamp here.
    New Comments -> To enter user comments in each step. Used data type HRASR_CURRENT_NOTE
    Previous Comments-> To display prev. step / user's comments including user name, date & time. Used data type HRASR_PREVIOUS_NOTES.
    I tried all different property settings in the form. May be I am still missing some property settings here.
    Issue:  If user enters any comments in "New Comments" box then only date & time stamp is coming along with their comments in "Previous Comments" otherwise not showing anything, just blank in the Prev. Comments.  I added some code in form script in case no data in "New Comments" then default a value ":" . It is working fine for first step but not working the same for other 2 steps.
    Trying in different way:
    Creating 3 text fields in a form just for display purpose and modifying each field (data set) with some text (combination of user name, system date and time) at each stage/step in a BADI.
    Method: IF_HRASR00GEN_SERVICE~DO_OPERATIONS
    Here it is updating correctly for first step/stage (REQUEST) and other 2 fields are not updating accordingly. I did debug for each step and updating the data set correctly but finally not dispalying the valuse in a form except first field.
    Can someone please share your ideas or inputs.
    Appreciate your time & help!
    Thanks
    Hari

    Hi Sahir
    Thank you for your reply.
    As I explained in my post, user details with date & stamp are coming when user enters some comments otherwise it is blank., All users may not enter comments because it is not a "required".
    HR is needed this for audit purpose, just at end of the process they need to see all user names, date & stamp in the form. Forget about comment boxes, Can't we make just simple text fields with user details for each step (all 3 stages)?
    FYI:
    Issue:  If user enters any comments in "New Comments" box then only date & time stamp is coming along with their comments in "Previous Comments" otherwise not showing anything, just blank in the Prev. Comments.  I added some code in form script in case no data in "New Comments" then default a value ":" . It is working fine for first step but not working the same for other 2 steps.
    Appreciate your inputs !
    Thanks
    Hari

  • Error in updating Interactive form data

    Hi Friends,
    I have developed an interactive form using webdynpro ABAP, in the first view I have designed selection criteria based on the selection I am populating the table in second view. Few are editable fields and few are readonly fields.
    Here I got the problem after editing the fields when I am trying to save the form it throwing an error that couldnu2019t find attribute But when I am trying to save the form without modifications there was no error.
    I would be gratefull for your help!
    The following error text was processed in the system CI1 : Could not find attribute ZDATE
    The error occurred on the application server bomw045a_CI1_00 and in the work process 0 .
    The termination type was: RABAX_STATE
    Thanks in advance.

    Is that possible there was the field ZDATE in your form interface/ context and now it is not? I guess some source has changed so the field in the form (binding to the not existing field) cannot be processed. Otto

  • How update xellerate form data from Action class

    Hi Experts,
    i did some customization in Action class.
    Now from this Action class i want toupdate xellerate from data
    Using digital signature i got the status of one of the attribute of xellerate from
    ie
    userIntf = (tcUserOperationsIntf)utilityFactory.getUtility("Thor.API.Operations.tcUserOperationsIntf");
    tcResultSet tRs = userIntf.findAllUsers(userMap);
    if(tRs.getRowCount() > 0)
    userLoginStatus= tRs.getBooleanValue("USR_UDF_IS_FIRST_LOGON");
    now i want update this attribute, ie ifuserLoginStatus is true, i want to update as false
    help me how to achive this..
    thanks

    How to update userdata using OIM API
    Thanks

  • Securely processing form data from applet

    i have created an applet that will accept data. I now need the applet to open a data base file and put the data in the appropriate fields of the database. This must be done securely. Can someone point me in the right direction please.

    doh, sorry ...here is the code. Everything compiles except this part
    if(e.getSource() == frame1.panel2.submit)
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    String url = "jdbc:odbc:MS Access 7.0 Database";
    Connection con = DriverManager.getConnection(url, "Admin");
    It tells me class and driver manager are not defined. What is it talking about. thnx.

  • OIM API - How to get the values in the process form (both parent and child)

    Hi,
    I created an RO with a Process form (both Parent and Child).I created a unconditional process task which takes in the processinstance key and tried to retrieve the process form datas.When i tried to provison the resource,the process task is getting triggered and I could able to get the parent form data but not the child form data.
    Any idea why is this happening?.Is it mandatory to have the "Triggers" ON to get the Child Form data.?
    Thanks,

    try this
    tcResultSet childResults = formOper.getChildFormDefinition(
                             formOper.getProcessFormDefinitionKey(procInstanceKey),
                             formOper.getProcessFormVersion(procInstanceKey));
    This should work,
    Regards,
    Raghav

  • Can we get the parent form data to child form while provisioning?

    if it is possible can anybody tell me how to do this?

    Yes
    You can use API like getObjects API and iterate through resultset to get process instance key and then get Process Form Data.

  • Target reconciliation Process Form

    Hi,
    I had done target reconciliation for lotus notes and the users got linked with OIM. I did some changes in the process form (I added CompanyName field) now when i am going target reconciliation again it is not get the companyname field in the process forms for the users. I checked the database table it contains the values for companyname. So it is not showing me the new updated process form for the users.
    Thanks & regards,

    Hi,
    I gonna tell you my trade secret.Let me understand your problem first.
    1.You created the process form and did the reconciliation and user got linked.
    2.You updated the process form and did the reconciliation again ,event got linked but process form did not get updated.
    Problem:
    See this is very old scenario that we face,atleast in my 3 years of OIM career I did faced this issue.With every provisioned resource OIM keep the information of process form in respective UD_Process form Name .Along with that it also contain the process form version so when ever you create a new version of process form it works fine for new provisioned object but OIM does not update the process form version in UD_ table for old entries. Thats why when you view the process form it will not show you the latest modified field.
    Solution:
    Every problem has solution yes I agree so what you can do to resolve the problem.First always design in a such a way that you don't need to modify the form but if you already done this mistake so this is how you can solve the problem.
    1.Take one user and provisioned it to lotus note resource.
    2.Get the usr_key of this user.
    3. select orc_key from orc where usr_key= ?? (Key that you get in step 2.
    4.select * from UD_LOTUSFORM where orc_key=?? Key that you get in step3
    5.Now you will see a field called UD_LOTUSFORM_VERSION ..See what is the value of this version.
    6.Update UD_LOTUSFORM set UD_LOTUSFORM_VERSION=?? ( Value you get in step5) WHERE 1=1 (It will update all existing entry)
    7.Run the reconciliation again.
    You are done buddy.Let me know if you have any questions.
    Regards
    Nitesh

  • Error while updating Date Field on Process Form.

    Hi,
    I am using java code to pre-pop date on the process form.First I used a java code whic took java.sql.date as input and returned the same java.sql.date.But it gave an error that:java.lang.String cannot be converted to java.sql.date.......
    So I changed the java code and now it takes string as input and returns java.sql.date. This code works fine for Pre-pop adapter and the date is populated on the process form.
    But when i use the same code in a Process Task adapter to update the date, then it gives the following error:
    ERROR [ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)' XELLERATE.ADAPTERS - Class/Method: tcAdpEvent/updateDataSetValuePost encounter some problems: Adapter Execution Error: updateDataObjFieldValuePost: error updating UD_OID_USR_DATE_OF_BIRTH
    ERROR [ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)' XELLERATE.ADAPTERS - Class/Method: tcAdpEvent/updateDataSetValuePost encounter some problems: {1}
    Can anyone suggest any method to update date field on process form?

    Hi Abhi,
    Can you tell me how you have implemented populating an UDF based on Prepopulation of another UDF. I have a similar kind of requirement. It would be great if you share your code or relevant part of it.
    Regards,
    Sunny Ajmera

Maybe you are looking for

  • When I connect my iPhone 4s it starts backing up automatically.

    How do I get past the initial hurdle of connecting my phone to itunes.  Itune starts to back up the phone and gets stuck on step 2 of 6.  Initially there was some small progress- say about 5 %.  Now the bar shows a wavy line.  I have tried to stop th

  • Issue in Posting of Vendor Invoice

    Hi I am having an issue in posting of vendor invoice. In simulation mode, the system is showing the correct calculation of TDS amounts. but when I am trying to post the Invoice , the TDS entries created by the system are deleted and system gives: Err

  • HTTP server code 500 reason Internal Server Error

    HI, I am getting following error in Call Adapter   <?xml version="1.0" encoding="UTF-8" standalone="yes" ?> - <!--  Message canceled   --> - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/"

  • Apple TV cannot update software sucessfully

    My Apple TV is currently on ver 2.3.1. Every time when I try to update the software, it downloads the software (successful) and tries to installs it (unsuccessful) afterwhich the amber light appears on the set and the question mark icon appears on th

  • ICal not deleting old events

    When i upgraded to Leopard, iCal stopped deleting old events. I have it set to delete events older than 30 days, and it's not doing it. Does anyone know how to solve this problem? Message was edited by: auitto