Home Analyst Portal

Error when create workitem from template

Magnus_Lundgren1Magnus_Lundgren1 Customer Adept IT Monkey ✭✭
Hi.

We have a problem when trying to create a workitem from a template.
Its stuck on loading and when i check with f12 in Chrome im getting

 http://support/api/V3/Template/GetTemplates?classId=a604b942-4c7b-2fb2-28dc-61dc6f465c68 500 (Internal Server Error)

If i restart the server it starts running again.

Best Answer

Answers

  • john_doylejohn_doyle Cireson Support Ninja IT Monkey ✭✭✭✭
    @Magnus_Lundgren1 are you able to replicate the issue on the server itself? If so, are there any further details about the fault in the response body to the GetTemplates call?
  • Magnus_Lundgren1Magnus_Lundgren1 Customer Adept IT Monkey ✭✭
    Same respons on the server.
  • Magnus_Lundgren1Magnus_Lundgren1 Customer Adept IT Monkey ✭✭
    saw now that i can expand the error 
    getting this, dont know if its any help

    sendjquery.min.js?v=820:5
    ajaxjquery.min.js?v=820:5
    readkendo.all.min.js?v=820:27
    (anonymous)kendo.all.min.js?v=820:27
    _queueRequestkendo.all.min.js?v=820:28
    readkendo.all.min.js?v=820:27
    querykendo.all.min.js?v=820:28
    _querykendo.all.min.js?v=820:28
    fetchkendo.all.min.js?v=820:28
    initkendo.all.min.js?v=820:47
    (anonymous)kendo.all.min.js?v=820:26
    eachjquery.min.js?v=820:3
    eachjquery.min.js?v=820:3
    e.fn.(anonymous function)kendo.all.min.js?v=820:26
    (anonymous)cca5abda-6803-4833-a…d-d59a43e2d2cf:2539
    (anonymous)cca5abda-6803-4833-a…d-d59a43e2d2cf:2648
    cjquery.min.js?v=820:3
    fireWithjquery.min.js?v=820:3
    kjquery.min.js?v=820:5
    rjquery.min.js?v=820:5
    XMLHttpRequest.send (async)
    sendjquery.min.js?v=820:5
    ajaxjquery.min.js?v=820:5
    b.(anonymous function)jquery.min.js?v=820:5
    getTemplateRemotecca5abda-6803-4833-a…d-d59a43e2d2cf:2647
    loadGridTemplatecca5abda-6803-4833-a…d-d59a43e2d2cf:2530
    loadTemplatecca5abda-6803-4833-a…d-d59a43e2d2cf:2433
    opencca5abda-6803-4833-a…d-d59a43e2d2cf:2017
    dispatchjquery.min.js?v=820:3
    v.handlejquery.min.js?v=820:3
  • john_doylejohn_doyle Cireson Support Ninja IT Monkey ✭✭✭✭
    @Magnus_Lundgren1 on the Network tab in Developer Tools, you should see the GetTemplates call when you click on new > work item > incident > from template.
    If you click on that call in dev tools, you should be able to see the Response Body from the server. You may need to click Details to see the response, depending on the browser. The response body usually contains the fault reported by the code. Most of our code expects the response to be JSON and will throw an error if it is something else.
  • Magnus_Lundgren1Magnus_Lundgren1 Customer Adept IT Monkey ✭✭
    1. "Microsoft.EnterpriseManagement.Common.InconsistentDataException: The requested objects had an unknown management pack. ---> Microsoft.EnterpriseManagement.Common.InconsistentDataException: The call produced inconsistent results. The data on the client does not match the data returned from the server. The most likely cause is that client-side cache is out of sync with server data. ---> Microsoft.EnterpriseManagement.Common.ObjectNotFoundException: An object of class ManagementPack with ID 89f6f585-7d72-eccc-ccf7-e9fd56f7df30 was not found. ↵ at Microsoft.EnterpriseManagement.Configuration.TypeSpaceCacheBaseWithManagementPacks.GetManagementPack(Guid id) ↵ at Microsoft.EnterpriseManagement.Configuration.TypeSpaceCache.GetManagementPack(Guid id) ↵ at Microsoft.EnterpriseManagement.ManagementPackManagement.GetManagementPack(Guid id) ↵ at Microsoft.EnterpriseManagement.Configuration.CreatableManagementPackElement`1.GetManagementPack(Guid managementPackId) ↵ --- End of inner exception stack trace --- ↵ --- End of inner exception stack trace --- ↵ at Microsoft.EnterpriseManagement.Configuration.CreatableManagementPackElement`1.GetManagementPack(Guid managementPackId) ↵ at Microsoft.EnterpriseManagement.Configuration.ManagementPackObjectTemplate.Constructor.CreateSingle(Result row) ↵ at Microsoft.EnterpriseManagement.Configuration.ManagementPackElementConstructor.CreateMultiple[T,H](IList`1 dataAccessResult, EnterpriseManagementGroup managementGroup, ManagementPack managementPack) ↵ at Microsoft.EnterpriseManagement.Configuration.TypeSpaceManagementPackCache.Get[T](IQueryCriteria criteria) ↵ at Microsoft.EnterpriseManagement.Configuration.TypeSpaceCache.Get[T]() ↵ at Microsoft.EnterpriseManagement.TemplatesManagement.GetObjectTemplates() ↵ at Cireson.ServiceManager.Services.Implementations.TemplateService.<>c.<GetTemplatesAsync>b__2_0(EnterpriseManagementGroup emg) ↵ at Cireson.ServiceManager.ManagementService.ManagementService.InvokeCommand[T](Func`2 func, Boolean invokeAsService) ↵ at System.Threading.Tasks.Task`1.InnerInvoke() ↵ 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__9`1.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.TemplateService.<GetTemplatesAsync>d__2.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 CiresonWebConsole.Controllers.api.V3.TemplateController.<GetTemplates>d__2.MoveNext() in d:\a\1\s\Cireson.WebConsole\Cireson.ServiceManager.WebConsole\Controllers\api\V3\TemplateController.cs:line 28 ↵--- 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.Threading.Tasks.TaskHelpersExtensions.<CastToObject>d__3`1.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.Web.Http.Controllers.ApiControllerActionInvoker.<InvokeActionAsyncCore>d__0.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.Web.Http.Controllers.ActionFilterResult.<ExecuteAsync>d__2.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.Web.Http.Filters.AuthorizationFilterAttribute.<ExecuteAuthorizationFilterAsyncCore>d__2.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.Web.Http.Controllers.ExceptionFilterResult.<ExecuteAsync>d__0.MoveNext()"
  • Magnus_Lundgren1Magnus_Lundgren1 Customer Adept IT Monkey ✭✭
    im guessing its the MP 89f6f585-7d72-eccc-ccf7-e9fd56f7df30.
    But as it sais "not found" i cant find it either.
    running 
    Get-SCSMManagementPack|select name, id|sort id 
    i cant find that ID
  • Magnus_Lundgren1Magnus_Lundgren1 Customer Adept IT Monkey ✭✭
    Yes that did the trick!
  • Magnus_Lundgren1Magnus_Lundgren1 Customer Adept IT Monkey ✭✭
    Last time a server restart did the trick, will this happen again when it tries to download the MP that does not exist?
    we recently imported a bunch of MPs from SCOM into service manager.
  • john_doylejohn_doyle Cireson Support Ninja IT Monkey ✭✭✭✭
    I'm afraid that's a question for Microsoft. We are just making a call to the SDK GetObjectTemplates method. The error is occurring in SCSM.
Sign In or Register to comment.