Skip to Main Content

Application Development Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

IDC Client Exception occurred. Unable to delete file. Message: Unable to delete content item 'xxxxx'

RavistarMar 21 2018 — edited Jun 18 2019

Hi All,

I am trying to Delete a content item from RIDC API, but getting below error.

IDC Client Exception occurred. Unable to delete file. Message: Unable to delete content item 'xxxxx'. User 'username' does not have sufficient privileges.

at oracle.stellent.ridc.protocol.ServiceResponse.getResponseAsBinder(ServiceResponse.java:142)

at oracle.stellent.ridc.protocol.ServiceResponse.getResponseAsBinder(ServiceResponse.java:108)

at com.vodafone.gdpr.ridc.GdprConnection.deleteDoc(GdprConnection.java:48)

at com.vodafone.gdpr.ridc.GdprConnection.main(GdprConnection.java:64)

Below is the code i am using to delete document

//IdcClientManager myIdcClientManager = new IdcClientManager();

IdcContext idcContext = new IdcContext ("username", "password");

//IdcClient myIdcClient = myIdcClientManager.createClient("idc://hostname:4444");

IdcClient idcClient = GdprConnection.getConnection();

DataBinder requestDataBinder = idcClient.createBinder();

requestDataBinder.putLocal("IdcService", "DELETE_DOC");

// Document ID

requestDataBinder.putLocal("dID", "123456");

// Document Name

requestDataBinder.putLocal("dDocName", "contentid_001");

serviceResponse = idcClient.sendRequest(idcContext, requestDataBinder);

DataBinder responseDataBinder = serviceResponse.getResponseAsBinder();

System.out.println("File deleted successfully");

Then I have checked WCC GUI, user has a part of below roles and accounts

Roles:guest,authenticated,admin,sysmanager,refineryadmin,rmaadmin,pcmadmin,ermadmin
Accounts:#none,#all

Do i need to add any other roles to delete document from content server through the RIDC API?

Please help me resolve this issue.

Thanks & Regards,

Ravi.

This post has been answered by Srinath Menon-Oracle on Mar 22 2018
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 19 2018
Added on Mar 21 2018
5 comments
530 views