SQL Query issue - VisualCron - Forum

Please note that VisualCron support is not actively monitoring this community forum. Please use our contact page for contacting the VisualCron support directly.


hepworthd
11 years ago
I am attempting to run a simple SQL Query against a MYSQL database, and am receiving the following error message, which doesn't tell me anything:

'Exception in Task: Input string was not in a correct format.'

When I run the same command manually, I get the results I want. How can I debug the issue when that's the only information I get, even in the VisualCron main log.

thanks.
Sponsor
Forum information
Support
11 years ago
What query do you use? And what version of VisualCron?
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Support
11 years ago
It sounds like a problem is with a Variable format, maybe a date variable.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
hepworthd
11 years ago
VisualCron 5.1.8.

Query:
SELECT ID_bescol, FROM_UNIXTIME(LEFT(FileDateTime, 10)) As LocalFileDateTime, bes.MFT_TPRef, bes.LocalFileName As LocalFileNameSource, bes.LocalFile_Destination, FROM_UNIXTIME(LEFT(CopyLog_DateTime, 10)) As CommCopyDateTime
FROM MFT_Audit_CAMKSEBXT005.BES left join MFT_Audit_CAMKSEBXT005.MFT on (BES.MFT_TPRef = MFT.MFT_TPRef)
WHERE ((FileDateTime - 300000) <= FileDateTime) And (MFT.MFT_TPRef IS null) And (bes.Man_validated IS null) ORDER BY LocalFileDateTime DESC;

No VisualCron variables are being used.
Support
11 years ago
Ok, unfortunately it is hard to say with that older version. Is it possible that you could upgrade?
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
hepworthd
11 years ago
We are planning to, but it takes time for all the approvals, scheduling and such. Is there no way to correct/resolve the issue currently as it is a valid working query statement?
Support
11 years ago
If other queries work then there is something specific. Try changing the query to see what's wrong. Start with removing the semicolon in the end.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
hepworthd
11 years ago
This is my first attempt at a query in VisualCron, I have three queries, two return blank and run successful, which is what I intended from the results. The query that is returning something, is the one failing.
Support
11 years ago
I see. Hard to day really. We tested against MySQL with your query and latest version without a problem. I suggest you try upgrading on one server to test this or just create this specific Task on another server with the latest version.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Scroll to Top