# Postman Test, sendRequest to run patch and verify results and repeat

**URL:** <https://www.epiusers.help/t/postman-test-sendrequest-to-run-patch-and-verify-results-and-repeat/46194>\
**Category:** Epicor ERP 10\
**Tags:** e10\
**Created:** [July 20, 2018, 12:04pm UTC](https://www.epiusers.help/t/postman-test-sendrequest-to-run-patch-and-verify-results-and-repeat/46194 "2018-07-20T12:04:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dpenn](https://www.epiusers.help/user_avatar/www.epiusers.help/dpenn/32/9690_2.png) [@dpenn](https://www.epiusers.help/u/dpenn)\
**Post date:** [July 20, 2018, 12:04pm UTC](https://www.epiusers.help/t/postman-test-sendrequest-to-run-patch-and-verify-results-and-repeat/46194/1 "2018-07-20T12:04:06Z")

</div>

I’m not sure this is possible, but what I am trying to do is update a part field and then pull the part info and verify the field was updated and then repeat the process. I am using the odata from PartSvc

This sendRequest test works to pull the data after the initial update.

 ![image](https://epiusers.help/uploads/default/original/2X/7/766a1949b9d775b070408b1ae81d24071fc58c55.png)

I then try to update the part again. This does not work!

 ![image](https://epiusers.help/uploads/default/original/2X/9/955daa8ad4b2680d03d29bd70bb2b495681ddb90.png)

I reviewed the calls in the postman console and the only difference I see is my second call is missing the body.

 ![image](https://epiusers.help/uploads/default/original/2X/8/83b93ad93184325f725b7e2d99953d25213fa111.png)

Any help would be appreciated.  
Thanks  
David

---

<div class="post-metadata">

**Author:** ![josecgomez](https://www.epiusers.help/user_avatar/www.epiusers.help/josecgomez/32/55731_2.png) [@josecgomez](https://www.epiusers.help/u/josecgomez)\
**Post date:** [July 20, 2018, 12:18pm UTC](https://www.epiusers.help/t/postman-test-sendrequest-to-run-patch-and-verify-results-and-repeat/46194/2 "2018-07-20T12:18:06Z")

</div>

That 500 error should show up as an errror in your app flight data recorder (event log)  
Look at the App Server Event Log and see what its complaining about.

---

<div class="post-metadata">

**Author:** ![dpenn](https://www.epiusers.help/user_avatar/www.epiusers.help/dpenn/32/9690_2.png) [@dpenn](https://www.epiusers.help/u/dpenn)\
**Post date:** [July 20, 2018, 12:37pm UTC](https://www.epiusers.help/t/postman-test-sendrequest-to-run-patch-and-verify-results-and-repeat/46194/3 "2018-07-20T12:37:26Z")

</div>

Jose,Thanks For the suggestions. I reviewed the log but am still unsure of what the issue is other than “Incorrect input data”

Here is the log data:

Epicor.RESTApi.ErrorHandling.ApiException: Incorrect input data for PATCH at Epicor.RESTApi.Controllers.HandleOdatav3Controller.Patch(String key, IEdmEntityObject patch) in C:\_Releases\ICE\3.1.500.27\Source\Framework\Epicor.RESTApi\Controllers\HandleOdatav3Controller.cs:line 198 at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.\<\>c\_\_DisplayClassc.b\_\_6(Object instance, Object[] methodParameters) at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ExecuteAsync(HttpControllerContext controllerContext, IDictionary`2 arguments, 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.Web.Http.Controllers.ApiControllerActionInvoker.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.Filters.ActionFilterAttribute.d\_\_5.MoveNext() — End of stack trace from previous location where exception was thrown — at System.Web.Http.Filters.ActionFilterAttribute.d\_\_5.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.ActionFilterAttribute.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.Filters.ActionFilterAttribute.d\_\_5.MoveNext() — End of stack trace from previous location where exception was thrown — at System.Web.Http.Filters.ActionFilterAttribute.d\_\_5.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.ActionFilterAttribute.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.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.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.Dispatcher.HttpControllerDispatcher.d\_\_1.MoveNext() — End of stack trace from previous location where exception was thrown — at System.Web.Http.Dispatcher.HttpControllerDispatcher.d\_\_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.HttpServer.d\_\_0.MoveNext()
