Updating MultiValued Attribute in AD
Hi,
Is there any way to update an multivalued attribute in AD using AD Connector?.Thanks in advance
What do you mean by that ? ? AD Groups for a user is a multivalued attribute and we can update it, by editing the Resource Profile associated with any user. See memberOf attribute in AD target. Is there something else you wanted to ask ? ?
Similar Messages
-
FIM multivalue attribute export to SQL - error 0x80230808
Hi,
Running FIM Synchronization Service v 4.0.3531.2 - Update1.
This instance is a simple setup, import from AD, export to SQL. I'm trying to export two multivalue attributes, one is a normal multivalue string, second is a reference attribute (member). My anchor is the GUID from AD in string format, perfectly fitting
into uniqueidentifier sql datatype.
Since I wanted to have the member values in the multivalue table also stored in a uniqueidentifier column (for further linking) I had to create two columns, one as "uniqueidentifier" and second as "text". FIM configuration went smoothly,
I defined a member multivalue reference attribute and selected the uniqueidentifier column as "String attribute column", and the other multivalue string attribute had to be linked as "Large string attribute column" and I pointed it to the
text datatype column.
Synchronization completed without errors, export step properly exported all multivalue string attributes to the text column, BUT when it came to exporting the GUID reference attribute to the uniqueidentifier column it exported only the first value showing
a "dn-attribute-failure" error. From the FIM GUI it was only showing the error number = 0x80230808.
I did a SQL trace to see what's going on. I re-run the export and saw FIM trying to delete all the values for this attribute multiple times with:
DELETE from [tblAD_Multivalue] WHERE [objectGUID] = N'{B011B424-5B2F-43A9-84C5-8605A570487B}' AND [attributeName] = N'member'
followed by doing cursor magic with the first value that was already added:
exec sp_cursor 180150007,4,0,N'tblAD_Multivalue',@objectGUID='B011B424-5B2F-43A9-84C5-8605A570487B',@attributeName='member',@guidValue='2E52A484-C7F6-49C0-AAC8-0A30C732A385'
After repeating the above for over 10 times it added a export_error_detail:
update [mms_connectorspace] set [export_error_detail] = N'<export-status>
<cd-error>
<error-code>0x80230808</error-code><error-literal>[Modify] Failed operation</error-literal>
</cd-error>
</export-status>
',[count_export_error_retries] = 0,[is_export_error] = 1,[initial_export_error_date] = '2011-02-12 21:36:08.995',[last_export_error_date] = '2011-02-12 21:36:08.995',[export_error_code] = -2145189885,[unapplied_export_batch_number] = 1,[unapplied_export_sequencer_number] = 2162572,[original_export_batch_number] = 1,[original_export_sequencer_number] = 2162572,[current_export_batch_number] = 4,[current_export_sequence_number] = 2216213 where ([object_id] = '6F5C98E3-38FF-4F32-95F6-B5A315B71D7A')
I tried manually adding one of the following values directly to SQL and it worked, so I'm not really sure what's wrong here.
Any ideas?
PiotrHi Markus,
yes, I know all about the architecture to allow multi-value attributes to be exported to SQL.
Everything works when I have just one string value column in my tblAD_Multivalue. The problem is that my anchor in the primary table is a GUID in a uniqueidentifier SQL column type (in FIM MV it's a string), so when I'm exporting multivalue reference attributes
to SQL I would like the GUID values also to go to a uniqueidentifier type column. That's why I set up the secondary column in the multi-value table with text datatype, so FIM recognizes it as a "large string column". I think I did everything within
the guidelines, so I was puzzled when I saw that error.
Consider this simple example, you're exporting users and groups from AD, you're anchor data type is uniqueidentifier, and you need to export the member attribute and the proxyAddresses attribute. What would you do to allow future SQL joins to calculate membership?
hope this explains a bit more this scenario, would appreciate any suggestions.
Piotr -
Help with target filter in an ACI and editing multivalue attributes
Here is the ACI I tried to use:
(targetattr = "*")
(target = "ldap:///ou=xyz,dc=company,dc=com")
(targetfilter=(objectclass=groupofuniquenames)||(objectclass=extendedobjectclass1)||(objectclass=extendedobjectcla ss2))
(version 3.0;acl "xyzadmin privileges";
allow (selfwrite,write,delete,add)
(userdn = ldap:///uid=xyzadmin,ou=people,dc=company,dc=com");)
1. Is the targetfilter syntax above correct? This does not work even when I tried the other notation
" (|(|(objectclass=X)(objectclass=Y))(objectclass=Z)) "
2. xyzadmin needs to update (another system creates a value initially) an 'extendedattribute' in either of the 'extendedobjectclass1/2'. This works if I set seperate ACIs. If I combine them (as above) does not work. Any solutions?
3. Not exactly related to this. The 'extendedattribute' is a multi-value attribute. Say it has two values,
(extendedattribute: ID1=222|ID2=333, ID1=444|ID2=-1). If I want to use ldapmodify and replace the
'ID1=444|ID2=-1' to 'ID1=444|ID2=555', how can it be done?
The same question can be rephrased as 'how can I replace a value amongst a set of values in a multivalued attribute with ldapmodify'? Is it possible?
p.s.: Please don't ask to split the ID1, ID2 into 2 attributes as one of the products using the directory requires it to be that way (ID1=<vale>|ID2=<value>).My answer will concerne only your first query.
Firstly, the target syntax must include the target keywork in the first portion of rule.
Have you try these syntax ===>
(targetfilter="(|(objectClass=groupofuniquenames)(|(objectClass=extendedobjectclass1)(objectClass=extendedobjectclass2)))")
or
(targetfilter="(|(objectclass=groupofuniquenames)(objectclass=extendedobjectclass1)(objectclass=extendedobjectclass2))"
The first syntax works correctly for me.
I hope this is help you and good luck for the rest. -
Modifying Multivalued Attribute - Error?
Hi All,
Im able to update the LDAP Attributes by using modifyAttributes method, But i want to update a multivalued Attribute in the Active Directory.
I tried using array its not working help me out...
Jagan Thanks.....Just iterate through the array members and add them to the attribute. Something like:String phoneNumbers[] = {"123 456 7890","456 789 0123", "789012 3456"};
ModificationItem[] mods = new ModificationItem[phoneNumbers.length];
for (int i = 0;i<phoneNumbers.length;i++) {
mods[i] = new ModificationItem(DirContext.ADD_ATTRIBUTE, new BasicAttribute("otherTelephone",phoneNumbers));
Just be aware of the different operations that can be performed against a multi-valued attribute, clearing all of the values, replacing or deleting a single value and appending values. -
OIM Design Console Internal error while updating task attributes
Hi All,
I have installed OIM9101 on jboss, the set up is running fine. I am in the process of integrating a OID connector following steps given OID connector guide. In design console(Administration-->Task Scheduler) while modifying "OID Group Lookup Reconciliation Task" attributes, attribute value is not getting saved. When i click on save option it shows a pop up windows saying "problem in updating task attributes. update failed."
Any solution for this??.. Please help.
Thanks in Advance.
Edited by: VAYANAKA on Nov 26, 2010 10:48 PMThank you for the reply..I have tried to create a new scheduled task. But while saving it again an Internal error pop up window comes saying " Description:Could not execute database read.The database encountered a problem with the specified SQL Query.Remedy: Check the database query.Contact your system administrator."..
Is it any problem with my database.? I have checked database, its up and running??
Thanks In advance. -
OIM: Error while updating Task Attributes
Hi All,
I am trying to use PeopleSoft User Management using OIM connector.
I am facing an error saying "problem in updating Task Attributes" while scheduling a task on OIM design Console. I am trying to update and save PSFT Base Non Trusted User Reconciliation. following is the log message displayed in server command prompt.
ERROR,11 Apr 2008 05:02:53,287,[XELLERATE.SERVER],Class/Method: tcTSA/eventPostU
pdate encounter some problems: problem in updating Task Attributes
com.thortech.xl.scheduler.exception.SchedulerGenericException: problem in updati
ng Task Attributes
at com.thortech.xl.scheduler.core.quartz.QuartzSchedulerImpl.updateTaskA
ttributes(Unknown Source)
at com.thortech.xl.scheduler.ejb.SchedulerControllerBean.updateTaskAttri
butes(Unknown Source)
at com.thortech.xl.scheduler.beans.SchedulerControllerSession.updateTask
Attributes(Unknown Source)
at com.thortech.xl.scheduler.beans.SchedulerController_z4f4d2_EOImpl.upd
ateTaskAttributes(SchedulerController_z4f4d2_EOImpl.java:478)
at com.thortech.xl.scheduler.beans.SchedulerController_z4f4d2_EOImpl_CBV
.updateTaskAttributes(Unknown Source)
at com.thortech.xl.dataobj.tcTSA.eventPostUpdate(Unknown Source)
at com.thortech.xl.dataobj.tcDataObj.update(Unknown Source)
at com.thortech.xl.dataobj.tcDataObj.save(Unknown Source)
at com.thortech.xl.dataobj.tcTableDataObj.save(Unknown Source)
at com.thortech.xl.ejb.databeansimpl.tcDataObjectBase.save(Unknown Sourc
e)
at com.thortech.xl.ejb.beans.tcTSA_u3xmy2_EOImpl.save(tcTSA_u3xmy2_EOImp
l.java:1437)
at com.thortech.xl.ejb.beans.tcTSA_u3xmy2_EOImpl_WLSkel.invoke(Unknown S
ource)
at weblogic.rmi.internal.activation.ActivatableServerRef.invoke(Activata
bleServerRef.java:90)
at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:434)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
dSubject.java:363)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
147)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.jav
a:429)
at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest
.java:35)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)
Caused by [Nested Exception]:
java.lang.NullPointerException
at com.thortech.xl.scheduler.core.quartz.QuartzSchedulerImpl.updateTaskA
ttributes(Unknown Source)
at com.thortech.xl.scheduler.ejb.SchedulerControllerBean.updateTaskAttri
butes(Unknown Source)
at com.thortech.xl.scheduler.beans.SchedulerControllerSession.updateTask
Attributes(Unknown Source)
at com.thortech.xl.scheduler.beans.SchedulerController_z4f4d2_EOImpl.upd
ateTaskAttributes(SchedulerController_z4f4d2_EOImpl.java:478)
at com.thortech.xl.scheduler.beans.SchedulerController_z4f4d2_EOImpl_CBV
.updateTaskAttributes(Unknown Source)
at com.thortech.xl.dataobj.tcTSA.eventPostUpdate(Unknown Source)
at com.thortech.xl.dataobj.tcDataObj.update(Unknown Source)
at com.thortech.xl.dataobj.tcDataObj.save(Unknown Source)
at com.thortech.xl.dataobj.tcTableDataObj.save(Unknown Source)
at com.thortech.xl.ejb.databeansimpl.tcDataObjectBase.save(Unknown Sourc
e)
at com.thortech.xl.ejb.beans.tcTSA_u3xmy2_EOImpl.save(tcTSA_u3xmy2_EOImp
l.java:1437)
at com.thortech.xl.ejb.beans.tcTSA_u3xmy2_EOImpl_WLSkel.invoke(Unknown S
ource)
at weblogic.rmi.internal.activation.ActivatableServerRef.invoke(Activata
bleServerRef.java:90)
at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:434)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
dSubject.java:363)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
147)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.jav
a:429)
at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest
.java:35)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)
ERROR,11 Apr 2008 05:02:53,287,[XELLERATE.SERVER],Class/Method: tcDataObj/save E
rror :Data Update Failed
ERROR,11 Apr 2008 05:02:53,302,[XELLERATE.DATABASE],Class/Method: tcDataBase/rol
lbackTransaction encounter some problems: Rollback Executed From
java.lang.Exception: Rollback Executed From
at com.thortech.xl.dataaccess.tcDataBase.rollbackTransaction(Unknown Sou
rce)
at com.thortech.xl.dataobj.tcDataObj.rollback(Unknown Source)
at com.thortech.xl.dataobj.tcDataObj.doRollback(Unknown Source)
at com.thortech.xl.dataobj.tcDataObj.save(Unknown Source)
at com.thortech.xl.dataobj.tcTableDataObj.save(Unknown Source)
at com.thortech.xl.ejb.databeansimpl.tcDataObjectBase.save(Unknown Sourc
e)
at com.thortech.xl.ejb.beans.tcTSA_u3xmy2_EOImpl.save(tcTSA_u3xmy2_EOImp
l.java:1437)
at com.thortech.xl.ejb.beans.tcTSA_u3xmy2_EOImpl_WLSkel.invoke(Unknown S
ource)
at weblogic.rmi.internal.activation.ActivatableServerRef.invoke(Activata
bleServerRef.java:90)
at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:434)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
dSubject.java:363)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
147)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.jav
a:429)
at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest
.java:35)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)
I am facing above error when try to update any task in the task scheduler.
Can anyone please suggest me where i am going wrong?
Thanks,
Uma.I would assume you are missing the jar file for your scheduled tasks. Try and create a new scheduled task with the same class name, if it won't let you save, this is your answer. You'll want to make sure you have the connector scheduled task file in the ScheduleTask folder in your OIM directory.
-Kevin -
Insufficient access error while updating AD attributes
Please find the attachment, I have tried to update the lastLogon attribute to replicate in global catalog, then the error has occurred as follows. I have enterprise administrative power, then also not able to update the attribute, please help
thanks in advance.I would agree with Martin. You simply need to be member of Schema Admins
group. You can add that using dsa.msc.
By the way, why are you trying to do that? Lastlogon attribute should not be replicated as it maintained locally on each DC. If you want to get the user exact last logon date and time then you can use my script here: https://gallery.technet.microsoft.com/scriptcenter/Get-Active-Directory-User-bbcdd771
This posting is provided AS IS with no warranties or guarantees , and confers no rights.
Ahmed MALEK
My Website Link
My Linkedin Profile
My MVP Profile -
Provision a multivalued attribute from OIM to OID
Hi,
I have a requirement to provision a new multivalued attribute from OIM to OID.
Steps followed:
Created a child form
Attached child form to the OID Parent form
Created a process task adapter.
Created a task in process definition and the attached the adapter
Adapter code.
public String addChildData(tcDataProvider ioDatabase, long procInstKey, long childDefKey){
try{
tcFormInstanceOperationsIntf formInstOper = (tcFormInstanceOperationsIntf)tcUtilityFactory.getUtility(ioDatabase, "Thor.API.Operations.tcFormInstanceOperationsIntf");
HashMap testval = new HashMap();
testval.put("UD_TESTCHIL_TESTGROUP","abcd2134");
System.out.println("testval..."+testval);
long formreturn = formInstOper.addProcessFormChildData(childDefKey,procInstKey,testval);
System.out.println("formreturn" +formreturn);
catch(Exception e){
System.out.println("exce" +e);
return "Success";
After attaching while provisioning I am seeing both parent and child forms. I have provided the values and its successfully provisioning.
But how I can provision the new OID multivalued attribute. We have to do any setting in the lookup?
Regards,
KKJust create your new adapter for add and delete from this new child table just like the other triggered tasks. If it's a multi value on the user profile, use the adapter for Add Multi Value Attribute that comes with the connector. In the property name, put in your multi value attribute name, and map the value from the child table.
-Kevin -
CRM function module to update the attribute in the classification TAB of BP
Hi All,
Can any body let me know if there is any functionmodule to update the CRM function module to update the attribute in the classification TAB of BP tcode.
I have searched a lot i get FM to update the marketing attribute and not the attributes in the classification tab.
Thanks in Advance
Edited by: Sharath Kumar on Dec 2, 2010 4:48 PMFor material bom: CSAP_MAT_BOM_CREATE
and CSAP_ORD_BOM_CREATE for Order BOM.
Regards,
Ravi -
User interface for updating/adding attributes in OID
Hello,
I have not done the develop work in OAS10g (web, oid, +) though I have years experiences as DBA in OAS and Oracle database servers.
I need to develop a user interface for users to add or update the user's attributes such as sn, manager etc.
The IDM system is working in prod: OAS 10g r2, installed (upgraded to) with infrastructure and oid 10.1.4.3.
OID: user attributes have been loaded with: CN, UID, mail and etc.
The requirement
User interface: an app based Ohttp web 10g
I'd like the interface works like:
The user accessing the web interface, is prompted with UID and mail. if the user correctly fills the fields, then will be prompted with the attributes which user can add or update.
Because I have Not done any development in OAS (web, oid), I need know what skills I need to aquire. ANd how should I proceed?
I may know the skills would be Ohttp development and OID API (LDAP), but I need these be specific as much as possible.
Can any point the direction with examples and docs?
TIA
GAajaybabu007 wrote:
For managing the user related activities (create,update,lock,unlock,delete and so on) through an Web UI interface can be administrated with the Oracle Identity Management Self Service Console (http://infra_host_name:7777/oiddas) which is an inbuild component of OID/OSSO. Please provide orcladmin/<password> credentials for accessing this Web UI.
---ABP thanks.
1) the app for user to add/update the attributes. we cannot give orcladmin to them
2) though the users as their own can access the oiddas, there are only limit of user info could be updated, which cannot serve the attributes we customized and loaded in OID. -
How to define a multivalued attribute in spml2.xml(spml2PersonForm)?
I need to define a multivalued attribute in spml2.xml for modifying security answers and adding resources during add request. I tried by giving multivalued="true" during the attribute definition.
<spmldsml:attributeDefinition name="questions" description="Secret questions" multivalued ="true"/>
but still the lookup response shows the value as a single attribute
<dsml:attr xmlns:dsml='urn:oasis:names:tc:DSML:2:0:core' name='questions'>
<dsml:value>[What is your mother's maiden name?, asrfasdhfgjk, adsggfjhgkjhl]</dsml:value>
</dsml:attr>
Kindly suggest if i missed out anything during the configuration.Hi!
I was unable to post any message. It was displaying that "Message blocked".
Please help me in this issue.
Regards
Mourya -
We are implementing Portal, and one of the requirements we have is to load multiple values into a single attribute. For example, a document might have an attribute for Manufacturer. We want to be able to assign GM, FORD, or both values. I know we can use a multivalue attribute, but there doesn't appear to be a way to validate the contents or select values from a predefined list. What is the best way to address this problem?
Any help is greatly appreciated.
Kevinhi kevin,
you could use the perspectives attribute to implement this. the perspective is our only multi-value attribute that we have in portal.
regards,
christian -
Cannot update delivery attributes: the following field(s) are not updatable
Hi. I create in EBS simple Order
Now , my goal is to create a delivery , pick , change shipping quantity and ship confirm. Here is my code
DECLARE
p_sales_order NUMBER := 10014445;
p_line_number NUMBER := 1.1;
p_org_id NUMBER := 308;
l_shipped_quantity NUMBER := 5;
p_api_version_number NUMBER := 1.0;
init_msg_list VARCHAR2(200);
l_commit VARCHAR2(30);
x_msg_details VARCHAR2(3000);
x_msg_summary VARCHAR2(3000);
x_return_status VARCHAR2(3);
x_msg_count NUMBER;
x_msg_data VARCHAR2(3000);
p_validation_level NUMBER;
v_errbuf VARCHAR2(2000);
v_retcode VARCHAR2(20);
v_released_status wsh_delivery_details.released_status%TYPE;
v_inv_interfaced_flag wsh_delivery_details.inv_interfaced_flag%TYPE;
v_oe_interfaced_flag wsh_delivery_details.oe_interfaced_flag%TYPE;
v_source_code wsh_delivery_details.source_code%TYPE;
v_pending_interface_flag wsh_trip_stops.pending_interface_flag%TYPE;
l_changed_attributes wsh_delivery_details_pub.changedattributetabtype;
l_source_code VARCHAR2(30) := 'OE';
-- Parameters for WSH_DELIVERIES_PUB
p_delivery_name VARCHAR2(30);
p_action_code VARCHAR2(15);
p_asg_trip_id NUMBER;
p_asg_trip_name VARCHAR2(30);
p_asg_pickup_stop_id NUMBER;
p_asg_pickup_loc_id NUMBER;
p_asg_pickup_loc_code VARCHAR2(30);
p_asg_pickup_arr_date DATE;
p_asg_pickup_dep_date DATE;
p_asg_dropoff_stop_id NUMBER;
p_asg_dropoff_loc_id NUMBER;
p_asg_dropoff_loc_code VARCHAR2(30);
p_asg_dropoff_arr_date DATE;
p_asg_dropoff_dep_date DATE;
p_sc_action_flag VARCHAR2(10);
p_sc_intransit_flag VARCHAR2(10);
p_sc_close_trip_flag VARCHAR2(10);
p_sc_create_bol_flag VARCHAR2(10);
p_sc_stage_del_flag VARCHAR2(10);
p_sc_trip_ship_method VARCHAR2(30);
p_sc_actual_dep_date VARCHAR2(30);
p_sc_report_set_id NUMBER;
p_sc_report_set_name VARCHAR2(60);
p_sc_defer_interface_flag VARCHAR2(60);
p_sc_send_945_flag VARCHAR2(60);
p_sc_rule_id NUMBER;
p_sc_rule_name VARCHAR2(60);
p_wv_override_flag VARCHAR2(10);
p_asg_pickup_stop_seq NUMBER;
p_asg_dropoff_stop_seq NUMBER;
x_trip_id VARCHAR2(30);
x_trip_name VARCHAR2(30);
fail_api EXCEPTION;
x_debug_file VARCHAR2(100);
l_ship_method_code VARCHAR2(100);
l_user_id NUMBER;
l_resp_id NUMBER;
l_appl_id NUMBER;
CURSOR c_ord_details IS
SELECT DISTINCT det.source_header_number sales_order,
det.org_id,
det.source_line_number,
det.source_header_id,
det.source_line_id,
det.source_header_type_name,
det.inventory_item_id,
det.requested_quantity,
det.delivery_detail_id,
(SELECT concatenated_segments
FROM mtl_system_items_kfv
WHERE inventory_item_id = det.inventory_item_id
AND organization_id = det.organization_id) ordered_item,
det.organization_id,
det.src_requested_quantity,
det.shipped_quantity,
del.delivery_id,
del.status_code delivery_status_code,
det.released_status pick_release_status,
det.oe_interfaced_flag,
det.inv_interfaced_flag
FROM wsh_delivery_details det,
wsh_delivery_assignments asn,
wsh_new_deliveries del
WHERE 1 = 1
AND det.delivery_detail_id = asn.delivery_detail_id
AND asn.delivery_id = del.delivery_id(+)
AND det.source_header_number = 1199656
AND det.source_line_number = '1.1'
AND det.org_id = 10102
AND shipped_quantity IS NULL
AND NVL(del.status_code, 'OP') <> 'CL'
and det.delivery_detail_id =21439836
/* AND det.released_status = 'Y'*/;
BEGIN
-- Initializing the Applications
SELECT user_id INTO l_user_id FROM fnd_user WHERE user_name = 'MSHAPIRA';
SELECT responsibility_id, application_id
INTO l_resp_id, l_appl_id
FROM fnd_responsibility_vl
WHERE responsibility_name = 'OM Super User - UDS UK';
fnd_global.apps_initialize(l_user_id, l_resp_id, l_appl_id);
FOR i IN c_ord_details LOOP
DBMS_OUTPUT.put_line('Initializing the Application for Shipping Transactions');
-- Mandatory initialization for R12
mo_global.set_policy_context('S', i.org_id);
mo_global.init;
-- Ship Confirming
p_delivery_name := TO_CHAR(i.delivery_id);
DBMS_OUTPUT.put_line('Before Shipping, Calling WSH_DELIVERY_DETAILS_PUB API to Update Shipping Attributes');
DBMS_OUTPUT.put_line('=============================================');
l_changed_attributes(1).delivery_detail_id := i.delivery_detail_id;
l_changed_attributes(1).shipped_quantity := 5;
wsh_delivery_details_pub.update_shipping_attributes(p_api_version_number => 1.0,
p_init_msg_list => init_msg_list,
p_commit => l_commit,
x_return_status => x_return_status,
x_msg_count => x_msg_count,
x_msg_data => x_msg_data,
p_changed_attributes => l_changed_attributes,
p_source_code => l_source_code);
IF (x_return_status <> wsh_util_core.g_ret_sts_success) THEN
RAISE fail_api;
DBMS_OUTPUT.put_line('Failed to Update the Shipping Attributes');
ELSE
DBMS_OUTPUT.put_line('Successfully Updated the Shipping Attributes');
END IF;
BEGIN
SELECT shipping_method_code
INTO l_ship_method_code
FROM oe_order_headers_all
WHERE order_number = i.sales_order
AND org_id = i.org_id;
EXCEPTION
WHEN OTHERS THEN
l_ship_method_code := NULL;
END;
p_action_code := 'CONFIRM'; -- The action code for ship confirm
p_sc_action_flag := 'S'; -- Ship entered quantity.
p_sc_intransit_flag := 'Y';
--In transit flag is set to 'Y' closes the pickup stop and sets the delivery in transit.
p_sc_close_trip_flag := 'Y'; -- Close the trip after ship confirm
p_sc_trip_ship_method := l_ship_method_code; -- The ship method code
p_sc_defer_interface_flag := 'Y';
p_sc_stage_del_flag := 'Y';
p_sc_create_bol_flag := 'N';
p_wv_override_flag := 'N';
-- API Call for Ship Confirmation
DBMS_OUTPUT.put_line('Calling WSH_DELIVERIES_PUB to Perform Ship Confirmation');
DBMS_OUTPUT.put_line('=============================================');
wsh_deliveries_pub.delivery_action(p_api_version_number => 1.0,
p_init_msg_list => init_msg_list,
x_return_status => x_return_status,
x_msg_count => x_msg_count,
x_msg_data => x_msg_data,
p_action_code => p_action_code,
p_delivery_id => i.delivery_id,
p_delivery_name => p_delivery_name,
p_asg_trip_id => p_asg_trip_id,
p_asg_trip_name => p_asg_trip_name,
p_asg_pickup_stop_id => p_asg_pickup_stop_id,
p_asg_pickup_loc_id => p_asg_pickup_loc_id,
p_asg_pickup_stop_seq => p_asg_pickup_stop_seq,
p_asg_pickup_loc_code => p_asg_pickup_loc_code,
p_asg_pickup_arr_date => p_asg_pickup_arr_date,
p_asg_pickup_dep_date => p_asg_pickup_dep_date,
p_asg_dropoff_stop_id => p_asg_dropoff_stop_id,
p_asg_dropoff_loc_id => p_asg_dropoff_loc_id,
p_asg_dropoff_stop_seq => p_asg_dropoff_stop_seq,
p_asg_dropoff_loc_code => p_asg_dropoff_loc_code,
p_asg_dropoff_arr_date => p_asg_dropoff_arr_date,
p_asg_dropoff_dep_date => p_asg_dropoff_dep_date,
p_sc_action_flag => p_sc_action_flag,
p_sc_intransit_flag => p_sc_intransit_flag,
p_sc_close_trip_flag => p_sc_close_trip_flag,
p_sc_create_bol_flag => p_sc_create_bol_flag,
p_sc_stage_del_flag => p_sc_stage_del_flag,
p_sc_trip_ship_method => p_sc_trip_ship_method,
p_sc_actual_dep_date => p_sc_actual_dep_date,
p_sc_report_set_id => p_sc_report_set_id,
p_sc_report_set_name => p_sc_report_set_name,
p_sc_defer_interface_flag => p_sc_defer_interface_flag,
p_sc_send_945_flag => p_sc_send_945_flag,
p_sc_rule_id => p_sc_rule_id,
p_sc_rule_name => p_sc_rule_name,
p_wv_override_flag => p_wv_override_flag,
x_trip_id => x_trip_id,
x_trip_name => x_trip_name);
IF (x_return_status <> wsh_util_core.g_ret_sts_success) THEN
DBMS_OUTPUT.put_line('Ship confirm has not been Completed For SO => ');
ROLLBACK;
RAISE fail_api;
ELSE
DBMS_OUTPUT.put_line('Ship confirm Successfully Completed For SO => ');
COMMIT;
DBMS_OUTPUT.put_line('Checking the Delivery Status after delivery action API Call');
DBMS_OUTPUT.put_line('==========================================');
SELECT wdd.source_code,
wdd.released_status,
wdd.inv_interfaced_flag,
wdd.oe_interfaced_flag,
wts.pending_interface_flag
INTO v_source_code,
v_released_status,
v_inv_interfaced_flag,
v_oe_interfaced_flag,
v_pending_interface_flag
FROM wsh_trips wtr,
wsh_trip_stops wts,
wsh_delivery_legs wlg,
wsh_new_deliveries wnd,
wsh_delivery_assignments wda,
wsh_delivery_details wdd
WHERE wtr.trip_id = wts.trip_id
AND wts.stop_id = wlg.pick_up_stop_id
AND wts.pending_interface_flag = 'Y'
AND wdd.inv_interfaced_flag <> 'Y'
AND wlg.delivery_id = wnd.delivery_id
AND wnd.delivery_id = wda.delivery_id
AND wda.delivery_detail_id = wdd.delivery_detail_id
AND wnd.delivery_id = p_delivery_name
AND wdd.source_line_id = i.source_line_id;
IF (v_source_code = 'OE' AND v_released_status = 'C' AND
v_inv_interfaced_flag <> 'Y' AND v_oe_interfaced_flag <> 'Y' AND
v_pending_interface_flag = 'Y') THEN
DBMS_OUTPUT.put_line('The Delivery has been Shipped & the Next Step is - Run Interface');
DBMS_OUTPUT.put_line('===========================================');
-- API Call for Submitting Interface Trip Stop
wsh_ship_confirm_actions.interface_all_wrp(errbuf => v_errbuf,
retcode => v_retcode,
p_mode => 'ALL',
p_stop_id => NULL,
p_delivery_id => p_delivery_name,
p_log_level => 0,
p_batch_id => NULL,
p_trip_type => NULL,
p_organization_id => i.organization_id,
p_num_requests => 1,
p_stops_per_batch => 1);
ELSE
DBMS_OUTPUT.put_line('The Delivery has not Shipped Properly');
END IF;
END IF;
END LOOP;
EXCEPTION
WHEN fail_api THEN
DBMS_OUTPUT.put_line('==============');
DBMS_OUTPUT.put_line('Error Details If Any');
DBMS_OUTPUT.put_line('==============');
wsh_util_core.get_messages(p_init_msg_list => 'Y',
x_summary => x_msg_summary,
x_details => x_msg_details,
x_count => x_msg_count);
IF x_msg_count > 1 THEN
x_msg_data := x_msg_summary ||' '||x_msg_details;
DBMS_OUTPUT.put_line(x_msg_data);
ELSE
x_msg_data := x_msg_summary||' '|| x_msg_details;
DBMS_OUTPUT.put_line(x_msg_data);
END IF;
END;
But at the stage of updating delivery attributes I get the following error message
Warning: For Delivery Detail 21439836, the following field(s) are not updatable: SHIPPED_QUANTITY.
Why?Hi Paul
Looks like the authorisation is failing due to a bad registration for some reason.
Would you be kind enough to clear out the registration to ensure we are dealing with a fresh start and no information is being used which may have become corrupt. You may do this by following this procedure;
Remove existing reg details
# usr/lib/cc-ccr/bin/eraseCCRRepository
List /tmp/RegistrationProfile.properties file
# cat /tmp/RegistrationProfile.properties
Attempt re-registration
# sconadm register -a -r /tmp/RegistrationProfile.properties
Send us the full output of the commands above if you would please. -
AD group in multivalue attribute in OIA
Hi,
I am trying to load AD groups into OIA via csv feed using schema files. I have created a multivalue attribute adgroup in OIA, but when i am entering multiple AD groups in the csv feed file for one user as "ou=abc,dc=abc ; ou=def,dc=ab", so instead of getting separated into two groups it is getting split into 4 different values at commas, is there any way to handle this type of values in the feed file or OIA cannot handle this kind of multiple values.
Any pointers would be really helpful.Hi there abhishek,
By default the seperator char is a comma, that's why OIA splits it up into the "wrong pieces".
If you would like to use a different separator, you'll have to make a config adjustment in the database.
Find the NAMESPACES table and look for the AD resource you created (resource has to be created first). One of the other fields is the 'multivalue_separator' field, if you change this to a semicolon (;) it should work alright. You might want to restart the application for it to work and re-import the accounts.
I'm still looking for a more gentle way to commit the change instead of restarting OIA.
Hope this helps you!
Best regards,
Jeff -
Update custom attributes in WebUI using 9iFS
Updating custom attributes of subclassed document in WinUI is
working. Through the WebUI the attributes appear to be readonly
(which is not the case).
Did I forget something or is it still not possible to update
custom attributes from the WebUI and do I have to write a
servlet/JSP+bean to accomplish this?
Thanks in advance,
Harry.
Please reply to: [email protected]Updating custom attributes of subclassed document in WinUI is
working. Through the WebUI the attributes appear to be readonly
(which is not the case).
Did I forget something or is it still not possible to update
custom attributes from the WebUI and do I have to write a
servlet/JSP+bean to accomplish this?
Yes. You have to write a servlet/JSP+bean to update the
attributes. You can also upload XML file to update your
attributes.
Maybe you are looking for
-
OIM 11g - AD Organization Recon "missing expression" error
Hi, I've got an environment with a OIM 11.1.1.5.2 installed with MSAD user management connector version 9.1.1. Provisioning to Active Directory works just fine out of the box, however, we've run into a problem with the Organization Reconciliation Job
-
What is the purpose of the duplicate Local folders (Inbox, Trash, etc.) which are also in the default account?
-
Again, the files I am Exporting are assigned different names than the CS4 Illustrator file and/or any other files in destination Folder. Thx.
-
Nano 3rd GEN & Apple Universal Dock
Hi! I've just bought a nano 3rd GEN and a Apple Universal Dock. I've a probleme with the compatibility of these two devices. When I'm connecting the nano with the Universal Dock, there is only one channel (the right channel) whitch works. I've try a
-
Photosmart 8230. How do you Remove the print heads for cleaning?
Hi guys, I have a Photosmart 8230. After a few lines of printing the black ink fades to almost nothing, all the colours are perfect. There are no error messages. I have done the self cleaning and alignment procedures and wasted a lot of expensive ink