REST error - "Specified cast is not valid."

Trying to call an updatable BAQ via REST… I can call multiple BOs but when I call the Ice.BO.DynamicQuerySvc /RunCustomActionByID method, I get the following error response… first theory was that I was trying to send decimal values… I changed all the values to strings… still have the error. Any ideas? Anyone else get something like this when pushing data through REST API?
{
“HttpStatus”: 500,
“ReasonPhrase”: “REST API Exception”,
“ErrorMessage”: “Specified cast is not valid.”,
“ErrorType”: “System.InvalidCastException”
}

what’s the call and the BAQ look like? What does the code on the UBAQ side look like.

It may be BPM Code on your CustomAction? (Assuming you have a BPM)

I found out that the REST services is not yet programmed to properly handle running a custom action. So… I have moved on, and using a different variation to run my action. Possibly more to come here on how to create a common “function” that is internal to Epicor that can be called from either the Product Configurator, the UI, a BPM, or using REST.

1 Like