Answered by:
Cryptic message in Log files after Solution Import attempt

Question
-
Hi,
I was importing a Managed Solution from a third party company into our Acceptance Environment which has also our Managed Solution.
The import failed without marking any error, so I went for enabling tracing.
By checking the Log files I found several strange lines, for example:
isWorkflowSupported. Value : false
(the solution does not include Workflows)
A series of lined like
Checking Privilege for UserId: {EB8CDBD7-DABB-E211-95F0-0050569239EF}, PrivilegeId: {B64E92C8-5D2A-4052-A026-1B73EFF9CEBF}. Returned hr = 0
with different privileges. I am running the import as a System Administrator.
Any idea why the import fail?
Monday, August 12, 2013 8:13 AM
Answers
-
The convention is that a return value of 0 ('Returned hr = 0') indicates success, so I think these lines in the log are to be expected - i.e. that it is successfully checking that you have the privileges.
I think you need to look elsewhere in the log for the source of the problem
Microsoft CRM MVP - http://mscrmuk.blogspot.com/ http://www.excitation.co.uk
- Marked as answer by MarcoPierobon Thursday, August 15, 2013 7:43 AM
Tuesday, August 13, 2013 3:48 PMModerator
All replies
-
Hi,
With the above privilegeid, you can query database to check which privilege is missing. Open SQL server, select CRM database and run below query,
SELECT [PrivilegeId], [Name],[CanBeLocal] ,[CanBeDeep],[VersionNumber],[CanBeGlobal],[CanBeBasic],[AccessRight],[IsDisabledWhenIntegrated] FROM [Test_MSCRM].[dbo].[PrivilegeBase] where [PrivilegeId]='B64E92C8-5D2A-4052-A026-1B73EFF9CEBF'
Then check if user has the same privilege.
Also if user has System Administrator role, then check if Access mode is "Read-Write" and License Type is "Full".
Hope this helps!
Kalim Khan
Monday, August 12, 2013 9:28 AM -
I did it but I do not know how to interpret the output:
PrivilegeId
B64E92C8-5D2A-4052-A026-1B73EFF9CEBF
Name
prvReadSolution
CanBeLocal
1
CanBeDeep
1
VersionNumber
0x00000000000140EECanBeGlobal
1
CanBeBasic
0
AccessRight
1
IsDisabledWhenIntegrated
0
do you have a suggestion?
- Edited by MarcoPierobon Monday, August 12, 2013 12:20 PM
Monday, August 12, 2013 11:37 AM -
Read privilege is missing for solution. Could you please recheck assigned security role to user and check if it has read privilege for solution?
Monday, August 12, 2013 12:09 PM -
The layout turned out terrible.
The user has a system administator role, I tried with another user that is also system administrator.
Is the query output really saying Reading privilege is missing? How do you tell it?
Monday, August 12, 2013 12:21 PM -
Hi,
You got below error ,
Checking Privilege for UserId: {EB8CDBD7-DABB-E211-95F0-0050569239EF}, PrivilegeId: {B64E92C8-5D2A-4052-A026-1B73EFF9CEBF}. Returned hr = 0.
It means the user with id {EB8CDBD7-DABB-E211-95F0-0050569239EF} do not have privilege with id {B64E92C8-5D2A-4052-A026-1B73EFF9CEBF} (prvreadsolution).
Hope this explains!
Kalim Khan
Monday, August 12, 2013 12:52 PM -
Thanks for the explanation and for the time you are investing on it.
What I meant is: which is the query field that is telling the privilege is missing?
And having a System Administrator role, what could be the problem?
Monday, August 12, 2013 1:25 PM -
The convention is that a return value of 0 ('Returned hr = 0') indicates success, so I think these lines in the log are to be expected - i.e. that it is successfully checking that you have the privileges.
I think you need to look elsewhere in the log for the source of the problem
Microsoft CRM MVP - http://mscrmuk.blogspot.com/ http://www.excitation.co.uk
- Marked as answer by MarcoPierobon Thursday, August 15, 2013 7:43 AM
Tuesday, August 13, 2013 3:48 PMModerator