Do you have any idea why this property below is seen has an invalid criteria in my request ?
Projection
System.WorkItem.ServiceRequestProjection
Web API
/api/V3/Projection/GetProjectionByCriteria
Request
{
"Id": "E44B7C06-590D-64D6-56D2-2219C5E763E0",
"Criteria": {
"Base": {
"Expression": {
"SimpleExpression": {
"ValueExpressionLeft": {
"Property": "$Context/Path[Relationship='WorkItem!System.WorkItemAffectedUser' TypeConstraint='System!System.Domain.User']/Property[Type='System!System.Domain.User']/UserName$"
},
"Operator": "Equal",
"ValueExpressionRight": {
"Value": "%RBOP085%"
}
}
}
}
}
}
Answers
TTP/1.1 500 Internal Server Error
Cache-Control: no-cache
Pragma: no-cache
Content-Type: application/json; charset=utf-8
Expires: -1
Server: Microsoft-IIS/10.0
X-AspNet-Version: 4.0.30319
Set-Cookie: CPAuth=tfpiWLqQATQd7p1Fja8L+11MnbFWg6npDaB2f6GvsWwb6ToF28F+uScz0+YeOgzMvGql1Vx5Aljh2qxOUUcAuqQ3q7EkkRGW8l+y9VHUQrofIpHaky8LbTnOT0/M4NzcVoP4BHdgsQVfczkyIQYejlyjk6jwA3KIuiKoyhxfVvtC1RZdsEh588iEcGgix/RcNQKM1wcd6ppr9IvLU9nf4wUHzZwk1bOWtFqzzA85A9ayNCBewpBlzWaFHZX8cL7pYBXR2www0wIRS3h3kwV/CaycCU9VBPK522rbj+Au3JUiUxrE+Hso3bizkIVLgk6R+04mZ1WqlUaVwjHBC+G17ZCVOAItiyiX0YTN9QLCmBHXME8pTKBM0SZA2pK5q1jQiawldUwtkMWPkQ8wuHVXgsvX26cubF+xpO7G8wNtEofCiPDqdXpeQfuKHLB6bfIPZSe58sEFCYG2QjA5Jz8L/g==; path=/;HttpOnly; HttpOnly
X-UA-Compatible: IE=edge
X-XSS-Protection: 1;mode=block
Date: Fri, 26 Jun 2020 20:16:09 GMT
Content-Length: 5244
{"success":false,"message":"An error occurred.","exception":"Microsoft.EnterpriseManagement.Common.InvalidCriteriaException: The criteria could not be parsed. See inner exception for details. ---> System.ArgumentException: The provided path ($Context/Path[Relationship='WorkItem!System.WorkItemAffectedUser' TypeConstraint='System!System.Domain.User']/Property[Type='System!System.Domain.User']/UserName$) was not valid: MPElement references require a ManagementPack be provided for resolution.\r\nParameter name: pathReference\r\n at Microsoft.EnterpriseManagement.Configuration.ManagementPackPathProcessor.ProcessPathReference(String pathReference, ManagementPack managementPack, ManagementPackElementReference`1 target, IManagementPackStore managementGroup, Boolean idsOnly)\r\n at Microsoft.EnterpriseManagement.Internal.ValueExpressionPropertyPathValueType.ResolvePath(ManagementPackClass target, ManagementPack managementPack, EnterpriseManagementGroup managementGroup, Boolean allowProjectionqueryPath)\r\n at Microsoft.EnterpriseManagement.Internal.SimpleCriteriaType.ResolvePaths(ManagementPackClass target, ManagementPack managementPack, EnterpriseManagementGroup managementGroup, Boolean allowProjectionqueryPath)\r\n at Microsoft.EnterpriseManagement.Internal.ExpressionType.GetExpression(String xml, ManagementPackClass target, ManagementPack managementPack, EnterpriseManagementGroup managementGroup, Boolean allowProjectionqueryPath)\r\n --- End of inner exception stack trace ---\r\n at Microsoft.EnterpriseManagement.Internal.ExpressionType.GetExpression(String xml, ManagementPackClass target, ManagementPack managementPack, EnterpriseManagementGroup managementGroup, Boolean allowProjectionqueryPath)\r\n at Microsoft.EnterpriseManagement.Common.ObjectProjectionCriteria..ctor(String criteria, ManagementPackTypeProjection typeProjection, EnterpriseManagementGroup managementGroup)\r\n at Cireson.ServiceManager.Services.Projection.<>c__DisplayClass11_0.<GetProjectionByCriteriaAsync>b__0(EnterpriseManagementGroup emg)\r\n at Cireson.ServiceManager.ManagementService.ManagementService.InvokeCommand[T](Func`2 func, Boolean invokeAsService)\r\n at System.Threading.Tasks.Task`1.InnerInvoke()\r\n at System.Threading.Tasks.Task.Execute()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at Cireson.ServiceManager.ManagementService.ManagementService.<InvokeCommandAsync>d__9`1.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at Cireson.ServiceManager.Services.Projection.<GetProjectionByCriteriaAsync>d__11.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at CiresonWebConsole.Controllers.api.V3.ProjectionController.<GetProjectionByCriteria>d__8.MoveNext() in D:\\a\\1\\s\\Cireson.WebConsole\\Cireson.ServiceManager.WebConsole\\Controllers\\api\\V3\\ProjectionController.cs:line 83\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Threading.Tasks.TaskHelpersExtensions.<CastToObject>d__3`1.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Controllers.ApiControllerActionInvoker.<InvokeActionAsyncCore>d__0.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Controllers.ActionFilterResult.<ExecuteAsync>d__2.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Filters.AuthorizationFilterAttribute.<ExecuteAuthorizationFilterAsyncCore>d__2.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Controllers.ExceptionFilterResult.<ExecuteAsync>d__0.MoveNext()"}