Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

MID Server not found error

Kosuke Tsujibay
Tera Contributor

Hi, all

 

I'm trying to connect thrid party IDS tool(Nozomi) and ServiceNow (OTM) using MID Sever.

I set up the credentail information then try to test connection, then error occurs like this; 'FlowObjectAPIException: The current operation ended in state: ERROR. Detail: MID Server not found: Unable to locate MID Server'

 

I already checked the status MID Server but it was cleraly perfect(attatchment).

and I'm sure that the user have a right role(mid_server).

 

Is there anything to check regarding this?

or does anyone know this solution here?

1 REPLY 1

MartinS24686019
Tera Contributor

Hi,

for me it worked to select the ecc_agent.sys_id of the MID Server with "Specific MID Server" option.

For that I used this script to search for a MID Server:

var gr = new GlideRecord("ecc_agent");
gr.addEncodedQuery("nameSTARTSWITHmymidservername_");
gr.query();
if ( gr.next()) {
    return gr.sys_id;
}
return null;