Video Screencast Help
Give us your opinion and win with Symantec! Please help us by taking this survey to tell us about your experience with Symantec Connect, so that we can continue to grow and improve.  Take the survey.

I can't add a attachment in a opened incident

Created: 19 Apr 2013 • Updated: 22 Apr 2013 | 6 comments
brunoyep's picture
This issue has been solved. See solution.
Hello
 
When I try to attach a simple file in some incident, I get the follow message:
 
1 - 04-19.PNG
 
I added ALL document permissions to the user and the group, but i can't upload a file in a opened incident.
The unique alternative that I found was give the admin permissions to the user (No, I won't do it), or add the user to the permissions of the incident, in documents, but if I do it, I will need to do it in all incidents, one by one. I need a solution to all incidents.
 
I got 2 logs
 
1 - 
 
Application Name : ProcessManager
Process ID : 6092
Date :4/19/2013 2:37:58 PM
Log Level :Error
Log Category :Docman
Machine Name : SDSERV
Message : 
[docman service] Error adding document.
[docman service] Client Host Information: 
[docman service] IP: 172.16.6.28
[docman service] HostName: 172.16.6.28
[docman service] Browser: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.64 Safari/537.11
[docman service] -- error.ToString() --
[docman service] LogicBase.Ensemble.DocmanException: User doesn't have permission to add a document to this category.
[docman service]    at LogicBase.Ensemble.Docman.Docman.AddDocument(String sessionID, DocumentInfo documentInfo, String[] categoryIDs, DocumentPermission[] permissions, Int32 releaseVersion, Int32 majorVersion, Int32 minorVersion, Byte[] versionData, String versionNotes, DocumentKeyValuePair[] pairs)
 
2- 
 
Application Name : ProcessManager
Process ID : 6092
Date :4/19/2013 2:37:58 PM
Log Level :Error
Log Category :docman_documentaddsimple2_aspx
Machine Name : SDSERV
Message : 
[docman] Error adding document.
[docman] Client Host Information: 
[docman] IP: 172.16.6.28
[docman] HostName: 172.16.6.28
[docman] Browser: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.64 Safari/537.11
[docman] -- error.ToString() --
[docman] System.Exception: Error adding document. ---> LogicBase.Ensemble.DocmanException: User doesn't have permission to add a document to this category.
[docman]    at LogicBase.Ensemble.Docman.Docman.AddDocument(String sessionID, DocumentInfo documentInfo, String[] categoryIDs, DocumentPermission[] permissions, Int32 releaseVersion, Int32 majorVersion, Int32 minorVersion, Byte[] versionData, String versionNotes, DocumentKeyValuePair[] pairs)
[docman]    --- End of inner exception stack trace ---
[docman]    at LogicBase.Ensemble.Docman.Docman.AddDocument(String sessionID, DocumentInfo documentInfo, String[] categoryIDs, DocumentPermission[] permissions, Int32 releaseVersion, Int32 majorVersion, Int32 minorVersion, Byte[] versionData, String versionNotes, DocumentKeyValuePair[] pairs)
[docman]    at LogicBase.Ensemble.Docman.DocumentAddSimple2.btnAdd_Click(Object sender, EventArgs e)
 
Operating Systems:

Comments 6 CommentsJump to latest comment

reecardo's picture

Users need the "CanAddDocumentsToCategory" permission to add docs to a particular category.

Go to Documents - Category View, click the lightning bolt by the appropriate category, and select Permissions. You can add the permission here.

brunoyep's picture

Hi reecardo

I don't have this permission.

I just have that:

Capturar.PNG

Bruno Bacelar

reecardo's picture

You need to do this on the Documents - Category View page (see my instructions in my 1st post)

Untitled_2.png

SOLUTION
brunoyep's picture

Yes, you are right.

I found this page and this permission. It's work, but you know if is possible give this permission to take ALL categories?

In every incident the system are creating a new category and this new category don't inherits the "CanAddDocumentsToCategory".

E.g.: If I open the incident IM-0000142, the system create the category IM-0000142 under Process/2013/4/IM-/IM0000142

If I create a new incident, it's not get the permission to add documents.

You know if this is possible or I will need to add this permission in all new categories?

Regards,

Bruno

Bruno Bacelar

reecardo's picture

I think you need to add the permission for each user to all categories.

You could probably do this quicker via a SQL script that does a bulk insert of rows into the DocumentCategoryPermission table all categories/all users. CanAddDocumentsToCategory listed below would be 1, the other rows would be whatever suits you - 0 for false and 1 for true.

INSERT INTO [DocumentCategoryPermission]
           ([CategoryPermissionID]
           ,[CategoryID]
           ,[ReferenceID]
           ,[PermissionType]
           ,[CanViewAllDocumentsInCategory]
           ,[CanEditCategory]
           ,[CanDeleteCategory]
           ,[CanAddSubcategories]
           ,[CanAddDocumentsToCategory]
           ,[CanEditDocumentsInCategory]
           ,[CanAddDocumentVersion]
           ,[CanModifyPermissions]
           ,[CanChangeDocumentPermissions]
           ,[CanDeleteDocument]
           ,[CanDownloadHistoricalVersions]
           ,[NotifyOnNewDocument]
           ,[NotifyOnNewMinorVersion]
           ,[NotifyOnNewMajorVersion]
           ,[NotifyOnNewReleaseVersion]
           ,[NotifyOnDocumentDelete]
           ,[NotifyOnPermissionsChange]
           ,[CanView])
     VALUES
           (NEWID()
           ,<category id>
           ,<user id>
           ,1
           ,<CanViewAllDocumentsInCategory, tinyint,>
           ,<CanEditCategory, tinyint,>
           ,<CanDeleteCategory, tinyint,>
           ,<CanAddSubcategories, tinyint,>
           ,<CanAddDocumentsToCategory, tinyint,>
           ,<CanEditDocumentsInCategory, tinyint,>
           ,<CanAddDocumentVersion, tinyint,>
           ,<CanModifyPermissions, tinyint,>
           ,<CanChangeDocumentPermissions, tinyint,>
           ,<CanDeleteDocument, tinyint,>
           ,<CanDownloadHistoricalVersions, tinyint,>
           ,<NotifyOnNewDocument, tinyint,>
           ,<NotifyOnNewMinorVersion, tinyint,>
           ,<NotifyOnNewMajorVersion, tinyint,>
           ,<NotifyOnNewReleaseVersion, tinyint,>
           ,<NotifyOnDocumentDelete, tinyint,>
           ,<NotifyOnPermissionsChange, tinyint,>
           ,<CanView, tinyint,>)

toomas's picture

A proper way would be to modify the flows to add the necessary permissions (7.1) or create automation rules that set up the permissions as desired (7.5).