# SagTaminoQuery problem

**URL:** <https://techcommunity.softwareag.com/t/sagtaminoquery-problem/59574>\
**Category:** Forum\
**Tags:** Former-Crossvision-Products, Service-Orchestrator\
**Created:** [January 19, 2006, 10:49pm UTC](https://techcommunity.softwareag.com/t/sagtaminoquery-problem/59574 "2006-01-19T22:49:58Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Raffaele\_Apisa](https://avatars.discourse-cdn.com/v4/letter/r/8edcca/32.png) [@Raffaele\_Apisa](https://techcommunity.softwareag.com/u/Raffaele_Apisa)\
**Post date:** [January 19, 2006, 10:49pm UTC](https://techcommunity.softwareag.com/t/sagtaminoquery-problem/59574/1 "2006-01-19T22:49:58Z")

</div>

Hello again

I have this sequence:

\<?xml version="1.0" encoding="UTF-8"?\> 

The Tamino query returns 8 documents with root .  
If I test Mediator properties, I can see:

user.count.torecover = 8

I want to get a single document from the payload, for example the first document.  
So I tried to get it into user.firstDocument property, but it does not work.

What is the matter?  
Does anyone help me?

\<?xml version="1.0" encoding="UTF-8"?\> 

Thanks

Raffaele

---

<div class="post-metadata">

**Author:** ![Matthew](https://avatars.discourse-cdn.com/v4/letter/m/ed655f/32.png) [@Matthew](https://techcommunity.softwareag.com/u/Matthew)\
**Post date:** [January 20, 2006, 5:30pm UTC](https://techcommunity.softwareag.com/t/sagtaminoquery-problem/59574/2 "2006-01-20T17:30:52Z")

</div>

Hi Raffaele,

Could you post the tamino schema, some sample data and a sample Mediator payload :?: It would help to discover what is going wrong in your sequence.

Thanks, 😉

---

<div class="post-metadata">

**Author:** ![Mike\_Bernat](https://avatars.discourse-cdn.com/v4/letter/m/5e9695/32.png) [@Mike\_Bernat](https://techcommunity.softwareag.com/u/Mike_Bernat)\
**Post date:** [January 20, 2006, 8:37pm UTC](https://techcommunity.softwareag.com/t/sagtaminoquery-problem/59574/3 "2006-01-20T20:37:56Z")

</div>

Hi Raffaele,

Two comments. First, using xpath expressions is a set statement:  
  
will only set the value of text nodes, because message properties can only contain text values. It will not set the entire document fragment.

Second, you might want to conside using the xbd.tamino.accessor=“XML” and use the iterator capabilities to retrieve the desired result document. The "XML accessor returns one document at a time, the “stream” accessor returns all the query results in one document.

Hope this helps.

---

<div class="post-metadata">

**Author:** ![Raffaele\_Apisa](https://avatars.discourse-cdn.com/v4/letter/r/8edcca/32.png) [@Raffaele\_Apisa](https://techcommunity.softwareag.com/u/Raffaele_Apisa)\
**Post date:** [January 23, 2006, 9:48pm UTC](https://techcommunity.softwareag.com/t/sagtaminoquery-problem/59574/4 "2006-01-23T21:48:03Z")

</div>

Hi everybody,

al last I worked out my problem!

I used xbd.tamino.accessor=stream and iterated on the user.count = {count(//Processing)} property.

This following sequence works fine

Thanks a lot

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 2, 2021, 2:39pm UTC](https://techcommunity.softwareag.com/t/sagtaminoquery-problem/59574/5 "2021-04-02T14:39:55Z")

</div>


