Method Error Occurred

Table 1. iAutomate WEB API: Scenario 3
Issue Description

Error message Method Error Occurred appears in the Component Log screen of Web API.

Figure 1. Method Error in the Component Log
Modules Impacted Provided JSON may not be in correct format

Resolution Steps:

  1. Open Postman and paste the desired URL.
  2. Select the method type as PUT and provide input JSON in Body section. Provide valid credentials for Basic Authentication and click Send.
    Figure 2. Method Error in the Component Log
  3. If the response error is as mentioned below, it implies that the JSON input is not in single quotes.

    If following error occurred:

    {
    "result":{
    "statusCode": 300,
    "status": "Fail",
    "message": "Value cannot be null.\r\nParameter name: value",
    "data": null
    }
    }
  4. Correct Format of JSON:
    '{
    "JobId":85,
    "TicketNumber":"XXXXXXXX",
    "RbaInteractionId":"XXXXXXXX",
    "RbaStatusCode":"0",
    "RbaStatusMessage":"WIP"
    }'