Description of the issue :
You have scheduled the cleanup agents provided by Desktop Manager.
However, the clean-up action "Purge obsolete Profile in User documents" fails with the following error:
<ERROR> : (58) Object variable not set
or
<ERROR> : 58 Object variable not set
Solution:
In order to fix this issue, you need to modify the script library 'DskMgrEventLib', function 'PurgeObsoleteProfileFromUser', as below :
<BEFORE the modification>
(...)
' # Open view with all users with profile document declaration.
Set view_userByProfile = db_dskmgruser.getview ("(DskMgrUserByProfile)")
Set doc_user = view_userByProfile.GetFirstDocument
(...)
<AFTER the modification>
(...)
' # Open view with all users with profile document declaration.
Set view_userByProfile = db_dskmgruser.getview ("(DskMgrUserByProfile)")
Set view_profile = db_dskmgr.getview ("(DskMgrProfileName)")
Set doc_user = view_userByProfile.GetFirstDocument
(...)
Summary : you need to add one extra line : Set view_profile = db_dskmgr.getview ("(DskMgrProfileName)")
See attached screenshot showing you the code modification.
Comments
0 comments
Please sign in to leave a comment.