0 results on my querydef on a temporary scheme
Hello,
I'm trying to set up a monitoring system that will calculate all my leads receiving duplicate emails. Regarding the workflow activities, I think everything is correct. However, when I perform a querydef on a temporary schema, namely temp:changeAxis2, I get no results. If I use the temporary schema temp:query, though, I manage to get results.
Here is my workflow:

Let me explain. I select all the leads from my database (I will change the targeting once I have resolved the issue). Then, I switch dimensions to the broadlogs, deduplicate the duplicate lines I have, then deduplicate the duplicate leads, and switch dimensions (temp:changeAxis2) to the recipient dimension. Finally, I send an email to the relevant operators containing the following JavaScript code:
var query = xtk.queryDef.create(
<queryDef schema='temp:changeAxis2' operation="select">
<select>
<node expr="[target/@mongoId]"/>
</select>
<orderBy>
<node expr="[target/@mongoId]"/>
</orderBy>
</queryDef>
);
var res = query.ExecuteQuery();
var wkfCount = res.query.length();
var _error = '';
for each (var line in res.query){
_error += '- ID : ' + line.target.@mongoId + '<br>'
}
delivery.mailParameters.subject = "Notification Christin Preprod - Leads ayant reçu plusieurs fois le même email";
delivery.content.html.source = new XML('<![CDATA[<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><HTML><HEAD></HEAD><BODY><P>' + wkfCount + ' leads ont reçu un ou plusieurs email(s) qui avaient déjà été reçu(s). Voici leurs mongoId :<br><br>' + _error +'</P></BODY></HTML>]]>')
à la réception de l'email ça me dit que j'ai 0 leads qui a reçu un email en double alors que j'en ai 46 comme le montre mon workflow. je sais que normalement le code fonctionne car quand je met schema='temp:query' au lieu de schema='temp:changeAxis2' ça m'affiche bien 1414 leads dans mon email
