Tinderbox User-to-User Forum (for formal tech support please email: info@eastgate.com)
http://www.eastgate.com/Tinderbox/forum//YaBB.cgi
Tinderbox Users >> Moving to Tinderbox 6 >> This agent has no query... error
http://www.eastgate.com/Tinderbox/forum//YaBB.cgi?num=1401539996

Message started by Graham Smith on May 31st, 2014, 8:39am

Title: This agent has no query... error
Post by Graham Smith on May 31st, 2014, 8:39am

I have added a single query

$Supplier=="Wex";

to an Agent, which seems to work exactly as I think it should, but I have an error being flagged (orange apostrophe)on all notes, not just the agent.

"This agent has no query, or its query can't be understood."

It maybe that I am missing some key element, as after a brief spell with Tinderbox some time ago, I am learning everything all over again.

But does this error point to something obvious I haven't done, as I say, it seems to work OK.

Many thanks,

Graham

Title: Re: This agent has no query... error
Post by Mark Anderson on May 31st, 2014, 9:31am

The error works document wide but each error (there can be more than one) lists the error and the path to the note/agent with the error. Likely the error you see points to a different agent to the one you think it does.

Title: Re: This agent has no query... error
Post by Mark Bernstein on May 31st, 2014, 9:37am

In the lower right-hand corner of each error message, Tinderbox shows the path of the note that seems to be the problem.

Title: Re: This agent has no query... error
Post by Graham Smith on May 31st, 2014, 12:04pm

Thanks both,

I have deleted the two agents (one at a time to see if the error went away)  with the plan of adding them back one at a time, but even though the agents have gone, the error hasn't.

According to the inspector I now have zero agents, but still the same error appears on all the notes in the file.

However, I have discovered that by double clicking on the error message, it, and the yellow apostrophe go away.

And both agents were working as expected anyway, so it seems its an error in the error message !

Adding the agents back in, still gave me this sticky error message, with the first agent (which I double clicked away), but not with the second.

A little weird.

Thanks for your help.

Cheers,

Graham




Title: Re: This agent has no query... error
Post by Mark Anderson on May 31st, 2014, 2:18pm

A common error that may be reported is an agent with no query - which is the state for any newly added agent. Add a query and the error will go away.

"but still the same error appears on all the notes in the file". The error (yellow) marker appears in all notes so you know there are errors in the document. The error doesn't necessarily apply to the current note:



Note the arrow. We're in note 'ZZZ2' but the error is for 'agent x' at root level. The box indicates what looks like a glitch in TB. After you fix an error, the path is deleted but not the error message (both should go away). For now you need to close/re0open the document.

Title: Re: This agent has no query... error
Post by Graham Smith on May 31st, 2014, 3:13pm

Thanks 'Mark,

I had kind if worked out that the error message appeared in all the notes, and  it's good to know its a common error and good to know it's easily fixed.

As I said in my last post, double clicking on the error message also makes it go away.

Setting up a new file and replicating the first file, does as you describe,and the error message only  stays until you complete the query.

Cheers,

Graham

Title: Re: This agent has no query... error
Post by Mark Anderson on May 31st, 2014, 3:45pm

Ah, double-clicking the error. That's an elegance I'd not tried. Interesting aspect of discoverability, but I hesitate to wave my fiery brand over an app where so much well-intentioned thought has gone into it.

Title: Re: This agent has no query... error
Post by Graham Smith on May 31st, 2014, 5:12pm

Not sure about elegance, more a slip of the finger!

Cheers,

Graham

Tinderbox User-to-User Forum (for formal tech support please email: info@eastgate.com) » Powered by YaBB 2.2.1!
YaBB © 2000-2008. All Rights Reserved.