Skip Ribbon Commands
Skip to main content

WDK

:

Articles: Troubleshooting-DM_QUERY_E_NOT_RESTRICTED_FOLDER_PATH

If we receive the error:

Preference repository is not available, reason: repository credentials are not valid

com.documentum.web.env.PreferenceRepository$DisabledException: repository credentials are not valid

....

Caused by: DfException:: THREAD: Thread-1; MSG: [DM_API_E_QUERY_FAIL]error: "Query failed: select r_object_id from dm_sysobject where folder ('/Resources/Registry/Preferences') and object_name = 'Webtop'"; ERRORCODE: 100; NEXT: null

....

Caused by: DfException:: THREAD: Thread-1; MSG: [DM_QUERY_E_NOT_RESTRICTED_FOLDER_PATH]error:  "You have specified a folder path ( '/Resources/Registry/Preferences' ) that is not a folder (or subfolder of a folder) in the user's restricted_folder_ids.";​


  1. Log in to DA as admin user and navigate to Cabinet-> Resources-> Registry. Right click the Preferences in the right window and select Properties. Select the Show all Properties checkbox. Get the r_object_id.
  2. Check the r_object_id is one of the restricted_folder_ids[0-x]:
  3. If r_object_id is not one of the above ids, try the following api. Go to api tester on DA.

API>id,c, dm_user where user_name='dm_bof_registry'

API>set,c,l, restricted_folder_ids[x+1]

DATA>r_object_id# from step

API>save,c,l

 

 Log in to DA, and change the dmc_wdk_preferences_owner back to default password (webtop).

 

Check each cabinets/folder of Resource, Registry and preferneces. The permission of dm_world should be read. It might be due to upgrading, sometimes the dm_world is none for those cabinets and folders.​