E9.2 Orchestrator AIS call only returning one error message when several are thrown

JohnDanter2

JohnDanter2

VIP Member
Hi all

I have written a very simple E1 NER that can be called in various modes to handle errors and wrapped it in an ORCH to test responses under success warning and error etc.
One mode is to throw TWO errors, yet my response is only ever showing me the first thrown error not the second

NER code
Code:
00075  //
00076  // Throw TWO errors and trip the COM to 2
00077 -If BF cModeProcessing [MODE] is equal to "7"
00078  |    BF szErrorMessageKey [EKEY] = "616V"
00079  |    Set NER Error(BF szErrorMessageKey, BF szErrorMessageKey)
00080  |    BF szErrorMessageKey [EKEY] = "774J"
00081  |    Set NER Error(BF szErrorMessageKey, BF szErrorMessageKey)
00082  |    BF szDataMovementErrorDesc [DMED] = "TWO COM Error 2 Error 616V & 774J"
00083  |    VA evt_GenericLongGENLNG [GENLNG] = "2"
00084  |   -SetNERReturnCode(B0100044.SetNERReturnCode)
       |         "2" -> idErrorStatus [GENLNG]
00085  |    BF szSourceResultField [RESU] = "200003"
00086  End If


JSON respone

Code:
{
  "ServiceRequest1": {
    "szerror": "616V",
    "errorLevel": 1,
    "alphaDescription": "Error: Auto Batch Receipts Not Created",
    "glossaryText": "CAUSE...Auto Batch Receipts could not be created through the Auto Bank Statement Process (R09616)\n\nRESOLUTION...Review the bank statement for details.\n\n",
    "fileName": "n55apird.c",
    "lineNumber": 501
  },
  "continuedOnError": [
    {
      "step": "RRD_N55APIRD_BSFN",
      "message": {
        "RRD_N55APIRD_BSFN": {
          "szerror": "616V",
          "errorLevel": 1,
          "alphaDescription": "Error: Auto Batch Receipts Not Created",
          "glossaryText": "CAUSE...Auto Batch Receipts could not be created through the Auto Bank Statement Process (R09616)\n\nRESOLUTION...Review the bank statement for details.\n\n",
          "fileName": "n55apird.c",
          "lineNumber": 501
        }
      },
      "timeStamp": "2023-02-23T09:22:31.585-0600",
      "userDefinedErrorText": "Error handling text that we can control 200003"
    }
  ],
  "jde__simpleMessage": "WARNING 774J 200003",
  "jde__status": "WARN",
  "jde__startTimestamp": "2023-02-23T09:22:31.569-0600",
  "jde__endTimestamp": "2023-02-23T09:22:31.587-0600",
  "jde__serverExecutionSeconds": 0.018
}

Any ideas on how to see ALL errors? As I don't want users fixing error 1 only to retest and come across unseen error 2

Thanks

John
 
Back
Top