cancel
Showing results for 
Search instead for 
Did you mean: 

XMLQuery fails when executed as a job

Former Member
0 Kudos

Hi all,

I build a query that checks the data server connections, using the string

server://XMII/Illuminator?Service=SystemInfo&Mode=Status&Content-Type=text/xml

The query works fine by itself and executed in a BLS. However, when I schedule the BLS, NetWeaver Log shows an error:

Error Processing XMLQuery A remote host refused an attempted connect operation

...ACTION FAILED: End Action XML_listConnectStatus : (XML Query)

I tried to supply user and pw to the job, or pass it as parameter to the query, but the error remains. I also tried to use the "http...<server>:<port>" prefix instead of "server", but the error does not disappear. What is the difference when calling it from workbench or as a job?

Michael

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Michael, while I'm not sure what the cause is, there's a trick you can try to work around this issue. Instead of using the XMLQuery, in your BLS, use a TagQuery, and override the value of the Service and Mode properties in the configuration dialog (and perhaps set the Server to an empty string). Give that a try and report back...

Rick

Former Member
0 Kudos

Rick,

I tried the TAG-Query, with mode = XMLQuery and Service = address as listed above.

However, either MII complains that server cannot be blank, or that server is not valid (I entered a dot).

Michael

Former Member
0 Kudos

Try Mode=Status and Service=SystemInfo.

Former Member
0 Kudos

Rick,

that solved it.

I used the following:

- TAG query

- Simulator as Data Server

- save query without further settings

- define a BLS with this TAG query

- Link Mode=Status and Service=SystemInfo

The result set is a XML which can be processed.

Thanks and Merry Christmas.

Michael

Answers (0)