Invalid Parameter error if use SDK to create TransferAuthority
(Doc ID 1614676.1)
Last updated on JANUARY 16, 2020
Applies to:
Oracle Agile PLM Framework - Version 9.3.2.0 and laterInformation in this document applies to any platform.
Symptoms
On : 9.3.2.0 version, Software Development Kit
When attempting to cretae a TransferAuthority,
the following error occurs.
ERROR
-----------------------
Error code : 60018
Error message : Invalid parameter.
at com.agile.api.pc.Session.createError(Session.java:1880)
at com.agile.api.pc.APIObject.createError(APIObject.java:76)
at com.agile.api.pc.APIObject.getMapValue(APIObject.java:244)
at com.agile.api.pc.admin.transferauthority.TransferAuthorityManager$CreateRecordAction.doSdkAction(TransferAuthorityManager.java:212)
at com.agile.api.common.SDKAction.run(SDKAction.java:23)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:146)
at weblogic.security.Security.runAs(Security.java:61)
at com.agile.api.common.WebLogicAuthenticator.doAs(WebLogicAuthenticator.java:111)
at com.agile.api.common.Security.doAs(Security.java:54)
STEPS
-----------------------
The issue can be reproduced at will with the following steps:
1. Code the program with below sample
IAgileSession sessionAdm=Connector.getSession();
ITransferAuthorityManager m=(ITransferAuthorityManager) sessionAdm.getManager(ITransferAuthorityManager.class);
Map map=new HashMap();
String sDt = "01/14/2014 12:08:00";
String sDt1 = "01/30/2014 12:08:00";
SimpleDateFormat sdf= new SimpleDateFormat("MM/dd/yyyy HH:mm:ss");
Date dt = sdf.parse(sDt);
Date dt1 = sdf.parse(sDt1);
IUser userFrom=(IUser) sessionAdm.getObject(UserConstants.CLASS_USER, "admin");
IUser userTo=(IUser) sessionAdm.getObject(UserConstants.CLASS_USER_BASE_CLASS, "test");
map.put(TransferAuthorityConstants.ATT_TITLEBLOCK_CRITERIA, "All Changes");
map.put(TransferAuthorityConstants.ATT_TITLEBLOCK_CREATOR, userFrom);
map.put(TransferAuthorityConstants.ATT_TITLEBLOCK_FROMDATE, dt);
map.put(TransferAuthorityConstants.ATT_TITLEBLOCK_FROMUSER, userFrom);
map.put(TransferAuthorityConstants.ATT_TITLEBLOCK_TODATE, dt1);
map.put(TransferAuthorityConstants.ATT_TITLEBLOCK_TOUSER, userTo);
map.put(TransferAuthorityConstants.ATT_TITLEBLOCK_CHANGES,1);
m.createTransferAuthorityRecord(map);
2. Compile and run
Cause
To view full details, sign in with your My Oracle Support account. |
|
Don't have a My Oracle Support account? Click to get started! |
In this Document
Symptoms |
Cause |
Solution |