on 05-13-2009 12:31 PM
Hello,
we have an IDoc-to-JDBC-scenario configured on our XI 3.0, which uses the INSERT command to put a dataset coming from R/3 into a SQL database. This works fine.
Now a trigger has been activated on the database, which sets a flag to each dataset after inserting.
Because of this a system error occurs in the Adapter Engine and I found in the AuditLog (logSQLStatement=true), that the INSERT command is processed correcty, but in the next step an error is shown up: 'SQLServerException. A result set was generated for update.'
Could it be, that the trigger returns a result value, which can't be handled on the XI ?
If yes, how can I solve this issue? I have read something about the different methods execute(), executeUpdate() and executeQuery(), but I don't know how and where this has to be configured...
Thanks in advance,
Juergen
Hi,
If ur IDOC to JDBC scenario is working fine then u need to do anything from ur side..
As trigger is part of oracle system and it get executed on some action metioned in tht like insert, update, delete.
Trigger does not send any data to XI system and need not to handle by XI. it is internal to database until no statement is written in trigger which will cause XI to take some action like send wsdl.
Regards,
Manisha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It was a database issue.
In the trigger, a storedproc was called, which has sent back a result value. This caused the error on the XI.
After adding the option 'no_output' to the 'xp_cmdshell', the messages are processed fine again
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Upendra,
unfortunately it wasn't me who did the configuration on the stored procedure, so I didn't remember the details.
One of my colleagues did the change and told me, that he "added to the xp_cmdshell instruction the no_output option".
I asked him for more detailed information, but he didn't answer till now.
If I get a helpful answer, I will let you know...
Grtz,
Juergen
Hi Upendra,
I got some more information from the database adminstrator:
He used the following command 'exec xp_cmdshell @ExportCmd , no_output'
whereas @ExportCmd contains the command.
With the no_output option, the xp_cmdshell does not return a recordset.
I hope this will be helpful to you.
Grtz,
Juergen
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
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.