Manually created table is not an array but "unique tag"

The condition should return either true or false. I’ve changed the condition so it extracts the value of the Paketbarcode attribute. In my tests I hardcoded the NrRelevantesPaket value to one of the values in the data for testing.

data.extract(steps.currentPosition + '/@Paketbarcode') == "559-0047-23151"

Hope this works for you.

Thanks, that seems to work. I would have never found that out by myself due to the lack of information in the docs about conditions.

If I add an extract step, then mark all fields I want to extract and click “add Extract Field” in thwe context menu, all fields do have the wrong XPath

e.g.:
./Paketpositionen/Paketposition/Artikelposition/@Bestellnummer
instead of
./Artikelposition/@Bestellnummer

I would have to go through all fields in the Field List to correct this and that is very tedious with lots of fields. Is there an easier and faster way to do this? If not, it would be very helpful to either have an option to change parts of the XPath for multiple fields in the fieldlist or if the fieldlist popup could be expanded to also show the XPath in addition to Name and Value for faster and more comfortable editing.

I’m not certain why the XPath should be ./Artikelposition/@Bestellnummer instead of ./Paketpositionen/Paketposition/Artikelposition/@Bestellnummer but have you already been able to check whether you are able to achieve this result by first executing a GoTo Step and apply the Relative XPath ./Paketpositionen/Paketposition to this GoTo Step and then add the Extraction Step? Because by doing so you should be able to get the XPath you would like to have as result for your Extraction Step.