Internal documentation only
This page has been marked as draft.
Extractor Plugin Does Not Support XPath Functions
Related to Copied
Geneos Copied
Using the Extractor plugin in Geneos and attempting to use XPath functions.
Problem Copied
When using the Extractor plugin in Geneos, XPath functions such as concat() are not supported inside
concat([8]/text(), 'test')
the Extractor will not return the expected combined value. To build unique row names, use multiple
Possible cause(s) Copied
- Root Cause 1: The Extractor plugin does not support XPath functions such as
concat(). - Root Cause 2: Mismatch between
<columns>definitions and<cells>extraction causing column misalignment. - Root Cause 3: The
<name>or<value>section contains a single XPath expression expecting function evaluation.
Possible solution(s) Copied
-
Solution Root Cause 1: Replace XPath function usage with multiple
<xpath>elements inside<name>.Sample:
<row> <xpath>data/array</xpath> <name> <xpath> <xpath>[8]/text()</xpath> </xpath> <xpath> <xpath>[1]/text()</xpath> </xpath> </name> </row>The Extractor concatenates these string values in order, effectively mimicking
concat(). -
Solution Root Cause 2: Ensure each
<xpath>element returns a simple string value (e.g.,text()), not a function call. -
Solution Root Cause 3: Ensure thethe number of
<column>elements matches the number of<cell>values. -
The schema XPath (e.g.,
schema/object/colName) matches the structure of the sampler XML.