Question

REST API: Adding operations to a revision - Epicor v10.2.700.13

  • 21 July 2022
  • 0 replies
  • 129 views

Epicor v10.2.700.13

Hi All,

I’m trying to add an operation to a revision. I’m having difficulty identifying the minimum dataset needed in order to create an operation. I’m using swagger to test this. I tried sending both the dataset below and a full dataset I grabbed from a trace log. Depending on if I have a part checked out or not in Engineering Workbench I get one of these two errors:

I’m trying to figure out:

  1. What is the minimum fields I need to pass to the REST API in order to create an operation?
  2. What the errors below mean?
  3. Am I using the correct end point?

Details below:

  1. Item NOT checked out 
    {
    "HttpStatus": 400,
    "ReasonPhrase": "REST API Exception",
    "ErrorMessage": "Revision approved. Creation not allowed.",
    "ErrorType": "Ice.Common.BusinessObjectException",
    "ErrorDetails": [
    {
    "Message": "Revision approved. Creation not allowed.",
    "Type": "Error",
    "Table": "ECOOpr",
    "Program": "Epicor.RESTApi.dll",
    "Method": "ThrowUpdateExtException",
    "ColumnNumber": 17,
    "LineNumber": 48
    }
    ],
    "CorrelationId": "dee20620-1cce-4a9c-a33d-a2552e31f016"
    }
  1. Item checked out
    {
    "HttpStatus": 400,
    "ReasonPhrase": "REST API Exception",
    "ErrorMessage": "Revision is currently being used by ECOTest.",
    "ErrorType": "Ice.Common.BusinessObjectException",
    "ErrorDetails": [
    {
    "Message": "Revision is currently being used by ECOTest.",
    "Type": "Error",
    "Table": "ECOOpr",
    "Program": "Epicor.RESTApi.dll",
    "Method": "ThrowUpdateExtException",
    "ColumnNumber": 17,
    "LineNumber": 48
    }
    ],
    "CorrelationId": "8480e7e4-fd77-4aa1-8959-1e3fa09baad6"
    }

EndPoint:

POST: /api/v1/Erp.BO.EngWorkBenchSvc/ECOOprs

Dataset:

{
  "Company": "XXX",
  "PartNum": "JOE-42-0187",
  "RevisionNum": "1",
  "OprSeq": 40,
  "OpCode": "ASSEMBLY",
"OpDesc" : "ASSEMBLY",
"PrimaryProdOpDtl" : 10,
"PrimarySetupOpDtl" : 10,

  "PrimaryResourceGrpID": "PROD",
  "EstSetHours": "0",
  "EstProdHours": "0.27",
  "ProdStandard": "0.27",
  "StdFormat": "HP",
  "StdBasis": "E",
"GroupID" : "ECOTest",
  "RowMod": "A"
}


0 replies

Be the first to reply!

Reply