Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8526

Strange issue while testing Agentry Application

$
0
0

Hi,

 

I am trying to test an Agentry application using ATE. The application runs on a local SMP3 SP04 server that I have hosted on my machine. The application has an SQL backend. When I do the first "Transmit" after logging into ATE, it runs correctly and executes all of the SQL queries and returns the necessary data. But when I hit the transmit again, i get an Error. I pulled the details from the Server events log and below are the details of the error. I am not sure why I am getting this error and I am even more confused as to why I don't get the error during the first transmit. 


Below is the error from the events log.

 

01/27/2015 18:27:51, 1,        16,       103, Thr       2448, Fetch "GetCustomers" ClientExchange "InsertCustomersExchange", 3: SA_DBMS_API_Error, DB Code: 102, DB Text:42000 [Microsoft][SQL Server Native Client 10.0][SQL Server]Incorrect syntax near '01'.

42000 [Microsoft][SQL Server Native Client 10.0][SQL Server]Statement(s) could not be prepared., query.cpp#145:SQLQuery::run

 

So I looked at the "InsertCustomersExchange" step SQL query that it refers to and I am not able to figure out what the issues is. Below is the SQL Query

 

<<local lastUpdate=<<if <<eq <<lastUpdate format="%Y">> "0000">>

"<<database.tempdate>>"

else

"<<lastUpdate>>"

>>

>>

INSERT INTO SycloCustomersExchange

(CustomerID, UserID, ServerID, Action, LastUpdate)

VALUES

('<<object.CustomerID>>',

'<<user.agentryID>>',

'<<servevr.serialNumber>>',

NULL,

'<<local.lastUpdate>>')

 

I am guessing it has to do something with the LastUpdate field. Below is the screenshot of the InsertCustomerExchange table immediately before I hit the second transmit.

 

SycloCustomersExchange.jpg

 

 

 

 

Below is the error that the ATE returns when I try to hit "Transmit" the second time.

 

Error_message.jpg

 

Any help on how I can resolve this issue ?


Viewing all articles
Browse latest Browse all 8526

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>