on 09-22-2011 12:10 AM
Hello Experts,
I have a jdbc receiver scenario on PI 7.0 for just one table on MS SQL Server and I'm using the update_insert action.
When the entry does not exist it is created normally and returns insert_count=1 and update_count=0.
When the entry already exists, it's generated the statements for insert and for update (the 2 statements are visible on RWB) and returns insert_count=0 and update_count=0.
Any error occurs and in the RWB the log shows the request was processed with success.
I've already enabled the log for sql statements on the channel, but the statements are correct.
I've reviewed also the <key> tag on the mapping and it's ok.
Any suggestion to try fix this issue?
Thank you very much.
Hi,
It seems to be an issue with the update statement not working according to your requirement. What is the data type of the key value for which the query is being executed.
Regards,
Indranil
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Can you please check in the database the format of the specified fields in the update statement. Sometime we can have situations that the insert works but the subsequent update fails. An example:
Suppose key field1 value being passed from XI is '1234' in characters but in db it is stored as '00001234'.
Regards,
Indranil
Just Few cents...
Since we see issues only during update statement...
Use the same update statement and check it using toad or some database tool ? Just to make sure the query or data that is being used by statement is not causing. otherwise you might need to see SAP Notes regarding update statement if any.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
25 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.