dm_audittrail object is not fetched by DFC
Having this code in java dfc :
audittrail = (IDfAuditTrail) sess.getObject(vCollection.getId("r_object_id"));
i managed to catch this error with the following error message :
[DM_API_E_EXIST]error: "Document/object specified by 5f0203421cd60e3d does not exist."
Although the exact code work in another environment which is supposed to be a duplicate.
Any idea on how to solve this ?
Comments
-
Are you running this code as superuser ? If not it may be due to permissions issues.
0 -
Hello, Thank you for the interaction,
Yes i am running this a superuser0 -
OK. What do you mean by "which is supposed to be a duplicate" ? Did you clone/copy your repository ? If so, how ?
0 -
I mean it is a very similair environment, my code works fine so it must smth missing from content server side.
0 -
You need to check if the user has the extended privilege "View audit" or higher. Even if it is a superuser those privileges are not granted by default. In order to be able to grant them you need to connect with another superuser that has them granted. The repository owner is the account you will need for that. Install owner (dmadmin) does not have the extended privileges granted by default.
0 -
I found the reason actually and it is a common one : the reason is that the R_OBJECT_SEQUENCE for dm_audittrail passed the limit value of 2^31-1.
0 -
That's not quite true: a user with superuser privileges can view all audit trail entries without requiring "VIEW AUDIT" privilege. A non-superuser without "VIEW AUDIT" can see audit records related to sysobjects which he owns or for which he has at least BROWSE permission.
0 -
That's strange. Which Documentum Server version are you using ? Since Documentum 4 (if I'm not mistaken), Documentum IDs are not limited to hexadecimal as they were before. So If the last 8 digits of r_object_id reach FFFFFFFF, the next ID will be G0000000 and it will continue until ZZZZZZZZ. So the maximum number of documents or audit trail objects which you can have is not 16^8 (or 2^32) but 26^8 which amounts to more than 200 billion objects (for a given type tag, e.g. 08, 09 or 5f), if my math is correct.
0 -
My math was wrong! The correct number should be 36^8, so 2'821'109'907'456, so about 2'821 billion.
0 -
I am not speaking about r_object_id i am speaking about the R_OBJECT_SEQUENCE you can find this in the dm_audittrail object for example and is limited ( you can still get data via a dql query but without fetching or dfc
0
Categories
- All Categories
- 108 Developer Announcements
- 53 Articles
- 106 General Questions
- 144 IM Services
- 43 OpenText Hackathon
- 32 Developer Tools
- 20.6K Analytics
- 4.1K AppWorks
- 8.9K Extended ECM
- 899 Cloud Fax and Notifications
- 77 Digital Asset Management
- 9.3K Documentum
- 29 eDOCS
- 120 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management