on 11-13-2009 12:19 PM
Hi,
I'm using an adpater to poll dta from two tables using the below query:
SELECT TPartOrderMaster., (the editor convert the star to bold), TPartOrderDetail. FROM TPartOrderMaster INNER JOIN TPartOrderDetail ON TPartOrderMaster.OdrNo = TPartOrderDetail.OdrNo WHERE (((TPartOrderMaster.DocStatusCode)='OA'))
UPDATE TPartOrderMaster SET LastUpdatedDate= GETDATE(), DocStatusCode='OP' WHERE DocStatusCode ='OA'
However, the adapter doesn't pick any data and gives the below log continuously.
11/13/09 5:35:50 PM 7c2bb696-0832-423d-2d59-8e955a3d6e6e Processing finished successfully
11/13/09 5:35:30 PM Processing started
11/13/09 5:33:50 PM 7c2bb696-0832-423d-2d59-8e955a3d6e6e Polling interval started. Length: 120.0 seconds
I have tried running th equery in the SQL server and it works properly.
I even tried restarting the adapter, inactivating and activating it, restarted the adapter in Visual admin. There are no locks for the jdbc adapter in the Visual admin.
Can anyone please suggest what other measures can I take to solve this issue.
Thanks and Regards,
Merrilly
Edited by: Merrilly Don Thomas on Nov 13, 2009 5:50 PM
Hi Merrily
I am also facing the same issue .Please let me know if u have solved thw issue
Regards
Shivguru
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The Adapter picks up only new data. As suggested, the update query must have set the flag due to which it did not pick up the records instead of changing the field "DocStatusCode" manually. We tried with another query it worked. Then we tried putting in new data. it worked. Thanks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
SELECT TPartOrderMaster., (the editor convert the star to bold), TPartOrderDetail. FROM TPartOrderMaster INNER JOIN TPartOrderDetail ON TPartOrderMaster.OdrNo = TPartOrderDetail.OdrNo WHERE (((TPartOrderMaster.DocStatusCode)='OA'))
I doubt whether this works with Jdbc adapter even though the query fetches data when executed on database. The query selects two tables (TPartOrderMaster and TPartOrderDetail) which could be problamatic. Instead can you list out the resultant table(after join) fields in Select query instead of table names?
Refer this blog-
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.