Hello Cireson Community
I have a problem
Sometimes when an end user updates a ticket, he gets an error "Request Failed" when he clicks the SAVE or APPLY button.
I have tried to clear the cache of the browser but it didn't help.
in order to solve this problem, I change the AFFECTED USER to me and back to that end user.
after this, the end user can update the ticket and save.
I checked the log file and there are these lines. Do you know what mean these lines?
2017-06-12 09:32:39,449,UpdateDirtyProjectionAsync threw an exception
2017-06-12 09:32:39,449,Microsoft.EnterpriseManagement.Common.UnauthorizedAccessEnterpriseManagementException: The user DOMAIN\NAME.SURNAME does not have sufficient permission to perform the operation.
at Microsoft.EnterpriseManagement.Common.Internal.ServiceProxy.HandleFault(String methodName, Message message)
at Microsoft.EnterpriseManagement.Common.Internal.ConnectorFrameworkConfigurationServiceProxy.ProcessDiscoveryData(Guid discoverySourceId, IList`1 entityInstances, IDictionary`2 streams, ObjectChangelist`1 extensions)
at Microsoft.EnterpriseManagement.ConnectorFramework.IncrementalDiscoveryData.CommitInternal(EnterpriseManagementGroup managementGroup, Guid discoverySourceId, Boolean useOptimisticConcurrency)
at Microsoft.EnterpriseManagement.ConnectorFramework.IncrementalDiscoveryData.Commit(EnterpriseManagementGroup managementGroup, Guid discoverySourceId, Boolean useOptimisticConcurrency)
at Microsoft.EnterpriseManagement.ConnectorFramework.IncrementalDiscoveryData.CommitForUserDiscoverySource(EnterpriseManagementGroup managementGroup, Boolean useOptimisticConcurrency)
at Cireson.ServiceManager.ManagementService.ManagementService.<>c__DisplayClassc.<InvokeCommand>b__b(EnterpriseManagementGroup emg)
at Cireson.ServiceManager.ManagementService.ManagementService.InvokeCommand[T](Func`2 func, Boolean invokeAsService)
at Cireson.ServiceManager.ManagementService.ManagementService.InvokeCommand(Action`1 action, Boolean invokeAsService)
at Cireson.ServiceManager.ManagementService.ManagementService.<>c__DisplayClass6.<InvokeCommandAsync>b__5()
at System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Cireson.ServiceManager.ManagementService.ManagementService.<InvokeCommandAsync>d__8.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Cireson.ServiceManager.Services.Projection.<UpdateDirtyProjectionAsync>d__6c.MoveNext()
Answers
Is this just happening to one user or a group of users?
The error:
Would suggest the user doesn't have access to the workitem or a certain form.
Are you using custom forms?
Is the app pool account an SCSM admin in Service Manager?
Hello,
No, the end user's are from different end users groups.
checked the "All Work Items can be accessed" for (end users) User roles.
Yes, our Incident form is customized.
I don't understand this question "Is the app pool account an SCSM admin in Service Manager?"
It is referring to the Administration - Security - User Roles in SCSM.
In the Administrators group is the App Pool set as a user.
Did you ever get this resolved? We've just had the same reported.
No.This issue continues.
I don't know what I must check or configure in order to solve this problem.
The AD Users sometimes get that error when they try to add a comment .
I checked almost everything.
there are 2 lines in log file when an user get thar error
1 )IRXXXXX threw an exception likely due to scoping that hasn't been applied
2)The user DOMAIN\NAME.SURNAME does not have sufficient permission to perform the operation.
2017-06-28 17:09:55,838,System.Data.SqlTypes.SqlTypeException: SqlDateTime overflow. Must be between 1/1/1753 12:00:00 AM and 12/31/9999 11:59:59 PM. at System.Data.SqlClient.TdsParser.TdsExecuteRPC(_SqlRPC[] rpcArray, Int32 timeout, Boolean inSchema, SqlNotificationRequest notificationRequest, TdsParserStateObject stateObj, Boolean isCommandProc, Boolean sync, TaskCompletionSource`1 completion, Int32 startRpc, Int32 startParam) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, SqlDataReader ds) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean asyncWrite) at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite) at System.Data.SqlClient.SqlCommand.BeginExecuteNonQueryInternal(AsyncCallback callback, Object stateObject, Int32 timeout, Boolean asyncWrite) at System.Data.SqlClient.SqlCommand.BeginExecuteNonQueryAsync(AsyncCallback callback, Object stateObject) at System.Threading.Tasks.TaskFactory`1.FromAsyncImpl(Func`3 beginMethod, Func`2 endFunction, Action`1 endAction, Object state, TaskCreationOptions creationOptions) at System.Threading.Tasks.TaskFactory`1.FromAsync(Func`3 beginMethod, Func`2 endMethod, Object state) at System.Data.SqlClient.SqlCommand.ExecuteNonQueryAsync(CancellationToken cancellationToken)--- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult() at Cireson.ServiceManager.DAL.Database.<ExecuteStoredProcedureNonQueryAsync>d__50.MoveNext()--- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult() at Cireson.ServiceManager.Services.Implementations.ProjectionPersistenceService.<UpdateCacheWithNewWorkItemAsync>d__64.MoveNext()--- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Cireson.ServiceManager.Services.Implementations.ProjectionPersistenceService.<UpdateCacheAsync>d__52.MoveNext()--- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Cireson.ServiceManager.Services.Implementations.ProjectionPersistenceService.<CommitSaveAsync>d__33.MoveNext()2017-06-28 17:11:07,230,IR106413 threw an exception likely due to scoping that hasn't been applied
They can see the calls fine, but cant update them.
The same workaround (of swapping the user out and back in) also works for us, but is obviously not a fix as the user would have to ask us to do that before updating!
It's certainly not all users, and as proved by the above, it isn't permissions as they can update calls once moved out of the affected user and back in.
Have you spoke to support and asked for them to have a look already?
No, I haven't connected with support.
what is your portal version?
Current Portal Version: 5.0.6.0
We're on with @Geoff_Ross to get it updated
I hope you will update ASAP
We also will, at this time I create a TEST SCSM environment.
I don't want to update our PROD without testing.
As I understand, this Request Failed error was for our versions
and CIRESON has solved it by a bug.
but there must be a solution for our versions also
We have the same issue but with users approving/rejecting RA. this error have been with us since 2012 r2 Ur3 and the old silver light portal though the error message was somewhat different. We have a case with microst about this and it is not the Cireson Portal that throws this exception. I belive it it is the data access layer of SCSM but i cant prove it .
2012 portal error msg: "The approve operation is not allowed in the current state of the activity"
Anyone get this resolved at all?
Bump
Getting an issue like this in 11.6.3 where users can sometimes add comments and then days later are unable to update the same ticket, getting
2023-08-22 09:46:46,174, ERROR [ 58]: UpdateDirtyProjectionAsync threw an exception
2023-08-22 09:46:24,116, ERROR [ 96]: Microsoft.EnterpriseManagement.Common.UnauthorizedAccessEnterpriseManagementException:
We are in the same situation event with portal version 11.8.2. The same issues: some users report that they cannot add comments even to own tickets, sometimes RA cannot be approved, or ticket accessed at all.
Log shows same errors posted in this thread.
Any help? Anyone solved it somehow? Do you know the root cause? @Ozgur_Sahin, @Sean_Terry, @Robert_Osterberg, @David_Johnsen? Thanks.
@Peter_Miklian Not sure of the root cause. I know that on odd occasions I have got involved, removing and re-adding the affected user has allowed comments to be added again. I don't believe it was a permanent fix on that item.
Its quite rare for us as staff tend to approve or add comments via the system emails instead.
It would be good to understand the root cause and timelines for any fixes.
Yes, we advise our users reporting this issue to use e-mail to add comments / approve, too.
Weird is that I think sometimes this only lasts for a period of time and uses to fix itself for a few users.
Anyway, thank you all for the hint to change Affected user back and forth 👍️