JDBC Receiver Adapter:Incorrect syntax near the keyword 'FROM'
Hi All,
I'm trying to get data from an SQL 2005 server using synchronous JDBC receiver adapter. I'm using PI 7.0. My outgoing message is as follows:
<?xml version="1.0" encoding="UTF-8" ?>
- <ns0:MT_IZIN_YUKU_REQ xmlns:ns0="http://holding.com/brd/">
- <STATEMENT>
- <ECZ_IZIN_YUKU action="SELECT">
<table>ECZ_IZIN_YUKU</table>
<access />
- <key>
<iy_yil compareOperation="GT">1900</iy_yil>
</key>
</ECZ_IZIN_YUKU>
</STATEMENT>
</ns0:MT_IZIN_YUKU_REQ>
I've found the following log in the trace file:
#1.5#0014C23BCFC900630000003D000013B000042740B0A858B1#1169058702046#/Applications/ExchangeInfrastructure/AdapterFramework/Services/ADAPTER/ADMIN/JDBC#sap.com/com.sap.aii.af.app#com.sap.aii.adapter.jdbc.XI2JDBC.onInternalMessageBinary(Message)#J2EE_GUEST#0####fa10f5f0a65811db84410014c23bcfc9#XI XI2JDBC[CC_JDBC_RECI_BRD_TO_BHT/HUMANIST/]_2574##0#0#Error#1#com.sap.aii.adapter.jdbc.XI2JDBC#Plain###Error processing request, rollback: Error processing request in sax parser: Error when executing statement for table/stored proc. 'ECZ_IZIN_YUKU' (structure 'STATEMENT'): com.microsoft.sqlserver.jdbc.SQLServerException: Incorrect syntax near the keyword 'FROM'.#
Thanks a lot..
Hi,
Make sure the XML structure for your SQL statement is correct. Include the all the fields in the structure of XML.
<?xml version="1.0" encoding="UTF-8"?>
<ns0:MT_IZIN_YUKU_REQ xmlns:ns0="http://holding.com/brd/">
<STATEMENT>
<TECZ_IZIN_YUKU ACTION="SELECT">
<TABLE>ECZ_IZIN_YUKU</TABLE>
<ACCESS>
<EMPNO></EMPNO>
<NAME></NAME>
</ACCESS>
<KEY>
<iy_yil compareOperation="GT">1900</iy_yil>
</KEY>
</TABLENAME>
</STATEMENT>
</ns0:MT_IZIN_YUKU_REQ>
Best Regards
Similar Messages
-
Incorrect syntax near the keyword 'AND'.
Hi Friends,
I have a requirement from SAP BI to SQL database.
When I am triggering data from SAP BI, it is successfully sent to XI.
In XI, it is also in success.
But when I check in Message monitoring, I faced a error.
Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException: Error processing request in sax parser: Error when executing statement for table/stored proc. 'ZSaleFromBI' (structure 'Data'): com.microsoft.sqlserver.jdbc.SQLServerException: Incorrect syntax near the keyword 'AND'.
The data is not updating in SQL Database also.
Kindly suggest the same.
Regards,
Narendra GoyalHi,
After debugging lot, I found a payload difference.
In PI 7.0 Inbound message from BI is:
<?xml version="1.0" encoding="utf-8" ?>
- <n0:MT_OTBData_BI xmlns:n0="http://grmap.com/xi/grmap/OTB_Data_OB" xmlns:prx="urn:sap.com:proxy:BIJ:/1SAI/TAS05A432A314B70F5CEB43:700:2008/01/11">
+ <DataRow>
+ <DataRow>
+ <DataRow>
</n0:MT_OTBData_BI>
In XI 3.0 Inbound message from BI is:
<?xml version="1.0" encoding="utf-8" ?>
- <nr1:MT_OTBData_BI xmlns:nr1="http://grmap.com/xi/grmap/OTB_Data_OB">
+ <DataRow>
+ <DataRow>
+ <DataRow>
</nr1:MT_OTBData_BI>
Kindly provide suggestion to resolve this issue.
Regards,
Narendra Goyal -
Incorrect syntax near the keyword 'Values'
Hi all I was wondering if you could help I keep getting this error when I try to build this stored procedure in sql 2008
CREATE PROCEDURE dbo.TutorialAddHeadline
@title varchar(100), @content varchar(MAX), @publisher varchar(50), @linkurl varchar(255)
AS
BEGIN
DECLARE @hash binary(16);
SET @hash = dbo.TutorialHash(@title, @content);
VALUES(@publisher, @title, @content, @linkurl, @hash);
END
thanksTry:
INSERT YOURTABLE (YOUR_COLUMN_LIST)
VALUES....
Kalman Toth Database & OLAP Architect
SQL Server 2014 Database Design
New Book / Kindle: Beginner Database Design & SQL Programming Using Microsoft SQL Server 2014 -
Receiver JDBC Channel Error : Incorrect syntax near 'OR'
hi,
we are facing the below error at the receiver communication channel:
Error while parsing or executing XML-SQL document: Error processing request in sax parser: Error when executing statement for table/stored proc. 'table' (structure 'statement'): com.microsoft.sqlserver.jdbc.SQLServerException: Incorrect syntax near 'OR'.
When we again reprocess the message,it shows the exact error at the channel.
Any ideas why the first error shows up?Hi, Anu
The most probable it's that your target XML it's not correct because it haven't a correct format.
Please, check your target XML and see
http://help.sap.com/saphelp_nwpi711/helpdata/en/48/465581929734d9e10000000a42189d/frameset.htm
Regards,
Carme -
JDBC receiver adapter to call MS SQLServer stored procedure with parameters
We are trying to use the JDBC receiver adapter to call a stored procedure in MS SQLServer with parameters. According to the help documentation for the JDBC receiver adapter for action=EXECUTE, "The elements within the stored procedure are interpreted as parameters" and "The parameter names must be identical to those of the stored procedure definition". The parameters within a MS SQLServer stored procedure are required to begin with the '@' symbol. The element names within a XML document i.e. used to call the stored procedure can not contain a special character such as '@' in the first position. For all of the tests we have done where the parameter name in the XML document omits the '@' character, the parameters are not being received by the stored procedure. Is there a way around this problem?
Thank you,
HaroldHello Harold - I am facing the EXACTLY SAME problem.Pls let me know how did you fix this problem ?
This is the message I am passing on to the DB SP:
<?xml version="1.0" encoding="UTF-8"?>
<MRIRequestInbound>
<StatementName>
<prc_FC_InsertStagingJournalEntries action="EXECUTE"/>
<JournalData isInput="true" type="STRING">
<NewDataSet><Table ITEM = "" ENTITYID = "" PERIOD = "" ACCTNUM = "" DEPARTMENT = "" JOBCODE = "" AMT = "" REF = "" DESCRPN = "" ENTRDATE = "" BASIS = " " BALFOR = "N" REQUESTNUM = "" ACCTNAME = "" TYPE = "" DESCRPTN = "" GDEP_DESCRPN = "" GJOB_DESCRPTN = "" JOBTYPE = "" /></NewDataSet>
</JournalData>
</StatementName>
</MRIRequestInbound>
Out of which,
<NewDataSet> tag contains the value of the parameter in the SP. So, my value to the SP's parameter is :
<NewDataSet><Table ITEM = "" ENTITYID = "" PERIOD = "" ACCTNUM = "" DEPARTMENT = "" JOBCODE = "" AMT = "" REF = "" DESCRPN = "" ENTRDATE = "" BASIS = " " BALFOR = "N" REQUESTNUM = "" ACCTNAME = "" TYPE = "" DESCRPTN = "" GDEP_DESCRPN = "" GJOB_DESCRPTN = "" JOBTYPE = "" /></NewDataSet>
Any clue ?
Cheers,
Amrish. -
Hi
DECLARE @XMLA nvarchar(3000)
, @DateSerial nvarchar(35);
-- Change date to format YYYYMMDDHHMMSS
SET @DateSerial = CAST(GETDATE() AS DATE);
--SELECT @DateSerial
Set @XMLA =
N' <Batch xmlns="http://schemas.microsoft.com/analysis services/2003/engine">
<ErrorConfiguration xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ddl2="http://schemas.microsoft.com/analysisservices/2003/engine/2"
xmlns:ddl2_2="http://schemas.microsoft.com/analysisservices/2003/engine/2/2" xmlns:ddl100_100="http://schemas.microsoft.com/analysisservices/2008/engine/100/100" xmlns:ddl200="http://schemas.microsoft.com/analysisservices/2010/engine/200"
xmlns:ddl200_200="http://schemas.microsoft.com/analysisservices/2010/engine/200/200">
<KeyErrorLimit>-1</KeyErrorLimit>
<KeyNotFound>IgnoreError</KeyNotFound>
<NullKeyNotAllowed>IgnoreError</NullKeyNotAllowed>
</ErrorConfiguration>
<Parallel>
<Process xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ddl2="http://schemas.microsoft.com/analysisservices/2003/engine/2" xmlns:ddl2_2="http://schemas.microsoft.com/analysisservices/2003/engine/2/2"
xmlns:ddl100_100="http://schemas.microsoft.com/analysisservices/2008/engine/100/100" xmlns:ddl200="http://schemas.microsoft.com/analysisservices/2010/engine/200" xmlns:ddl200_200="http://schemas.microsoft.com/analysisservices/2010/engine/200/200"
xmlns:ddl300="http://schemas.microsoft.com/analysisservices/2011/engine/300" xmlns:ddl300_300="http://schemas.microsoft.com/analysisservices/2011/engine/300/300">
<Object>
<DatabaseID>MultidimensionalProject5</DatabaseID>
<CubeID>giri</CubeID>
<MeasureGroupID>Fact Internet Sales</MeasureGroupID>
</Object>
<Type>ProcessFull</Type>
<WriteBackTableCreation>UseExisting</WriteBackTableCreation>
</Process>
</Parallel>
</Batch>';
EXEC (@XMLA) At SHALL-PCAdventureWorksDw ;
iam executive the query when iam getting below error.
[Execute SQL Task] Error: Executing the query "DECLARE
@XMLA nvarchar(3000)
, @DateSerial nvarch..." failed with the following error: "Incorrect syntax near '-'.". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set
correctly, or connection not established correctly.
how to solve this error;
please help meWhat are you trying to do? What sort of data source is SHALL-PCAdventureWorksDw?
When you use EXEC() AT, I would execpt to see an SQL string to be passed to EXEC(), but you are passing an XML string????
If you explain why you think this would work in the first place, maybe we can help you.
Erland Sommarskog, SQL Server MVP, [email protected] -
Error while updating database using jdbc receiver adapter
Hi All,
I am trying to update a single record using jdbc receiver adapter.
This is my the message that is getting created..
<?xml version="1.0" encoding="UTF-8" ?>
- <ns0:Data xmlns:ns0="urn:Test">
- <STATEMENT>
- <TABLENAME ACTION="UPDATE_INSERT">
<TABLE>ORDERS</TABLE>
- <ACCESS>
<OrderID>99999</OrderID>
<CustomerID>VICTE</CustomerID>
<EmployeeID>3</EmployeeID>
<ShipAddress>VICTE</ShipAddress>
</ACCESS>
- <KEY>
<OrderID compareOperation="EQ">99999</OrderID>
<ShipAddress compareOperation="EQ">VICTE</ShipAddress>
</KEY>
</TABLENAME>
</STATEMENT>
</ns0:Data>
But in Adapter Monitoring i am getting the following error..
<i>Error while parsing or executing XML-SQL document: Error processing request in sax parser: Error when executing statement for table/stored proc. 'ORDERS' (structure 'STATEMENT'): java.sql.SQLException: [Microsoft][ODBC SQL Server Driver][SQL Server]Line 1: Incorrect syntax near 'VICTE'.</i>
Regards,
RahulRahul,
> In this case i believe the interface has to be synch.
> So what will the response message type be like..
Not necessary. UPDATE can be asynch as well.
Can you turn the trace on like pointed by Michal and then you can see the Query in the Audit Log of the adapter montioring. Try to execute the same query from your DB Client like TOAD and see what is the Syntax error you are getiing.!
The problem looks like some field has some dataype / column name mismatch.
Regards
Bhavesh -
Strange error while executing a stored procedure: Incorrect syntax near '@p0'
All, I am getting a strange error while executing a stored procedure: Incorrect syntax near '@p0' using JDBC CallableStatment.
Here is my code...
CallableStatement cStmt = con.prepareCall("{call SET CHAINED ON EXEC <dbName>.<schemaName>.<SPName> (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)}");
cStmt.setString(1, "2012005881");
cStmt.setString(2, "07");
cStmt.setString(3, "10");
cStmt.setString(4, "Case title");
cStmt.setString(5, "Open");
java.sql.Date dt1 = new java.sql.Date(2014,10,20);
cStmt.setDate(6, dt1);
cStmt.setString(7, "01");
cStmt.setString(8, "N");
cStmt.setString(9, "ADA Test");
cStmt.setString(10, "N");
cStmt.setString(11, "English");
cStmt.setString(12, "N");
cStmt.setString(13, "N");
cStmt.setString(14, "N");
cStmt.setString(15, "N");
cStmt.setString(16, "N");
cStmt.setString(17, "N");
cStmt.setString(18, "07");
cStmt.setString(19, "10");
cStmt.setString(20, "juache0");
java.sql.Date dt2 = new java.sql.Date(2014,10,20);
java.sql.Date dt3 = new java.sql.Date(2014,10,20);
cStmt.setDate(21, dt2);
cStmt.setDate(22, dt3);
cStmt.setString(23, "userid0");
cStmt.setString(24, "");
cStmt.setString(25, "");
cStmt.setString(26, "");
java.math.BigDecimal bg1 = new java.math.BigDecimal(10);
cStmt.setBigDecimal(27, bg1);
cStmt.setString(28, "userid");
cStmt.setString(29, "userid");
int hadResults = cStmt.executeUpdate();
Your help is greatly appreciated.
I am executing the above using Jconnect3.0 driver, inside WebSphere Application Server V8.0
Thanks
NagsNOTE: I don't work with JDBC/jConnect so (at this point) just some questions ...
1 - are you sending this to ASE, ASA, IQ, or some other RDBMS?
2 - what is the value of <schemaname>?
3 - do you have other prepareCall() instances that successfully call a stored proc? [would be interesting to see if there's a difference in the format of the calls]
A quick google search shows a couple ways to submit a stored proc execution to the RDBMS, with the format depending on the format expected by the target RDBMS.
I'm wondering if you really need/want the parentheses around the argument list, ie, what happens if you change
from
-- parentheses around args
EXEC <dbName>.<schemaName>.<SPName> ( ?,?,?,?,?,...,? )
to
-- no parentheses around args
EXEC <dbName>.<schemaName>.<SPName> ?,?,?,?,?,...,?
In ASE if I wrap the parameters in parentheses I get the same error you're getting:
================== w/ parentheses => error
1> sp_who (sa)
2> go
Msg 102, Level 15, State 1:
Server 'CC1_V1', Line 1:
Incorrect syntax near 'sa'. <<=== sa == @p0 ??
================== w/out parentheses => works
1> sp_who sa
2> go
fid spid status loginame origname ...
0 17 running sa sa ...
================== -
Hi,
I am currently receiving the following error in BI Answers when I run a query against a Microsoft SQL 2005 Server.
View Display Error
Odbc driver returned an error (SQLExecDirectW).
Error Details
Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 43113] Message returned from OBIS. [nQSError: 43119] Query Failed: [nQSError: 16001] ODBC error state: 60 code: 8180 message: [DataDirect][ODBC 20101 driver][Microsoft SQL Server]Statement(s) could not be prepared.. [nQSError: 16001] ODBC error state: 60 code: 102 message: [DataDirect][ODBC 20101 driver][Microsoft SQL Server]Incorrect syntax near 'UserName'.. [nQSError: 16002] Cannot obtain number of columns for the query result. (HY000)
SQL Issued: SELECT 0 s_0, "SD&A_Dashboard_Test"."BORIS_ALIAS_ETMS_Users"."Id" s_1, "SD&A_Dashboard_Test"."BORIS_ALIAS_ETMS_Users"."UserName" s_2 FROM "SD&A_Dashboard_Test" WHERE ("BORIS_ALIAS_ETMS_Users"."UserName" = 'trowe') FETCH FIRST 65001 ROWS ONLY
I am able to connect successfully to the Data Source and run a query against the database using the NQCMD command line tool so believe I have configured the DataDirect 7.0.1 drivers correctly, also I am able to view the Table Data in the RPD Physical Layer in the BI Administration Tool. So don't understand why I am getting this error.
I have also activated the nquery.log but that doesn't really give me any further information.
[2015-04-28T16:37:22.000+00:00] [OracleBIServerComponent] [TRACE:4] [USER-34] [] [ecid: 4a9e440f990ba0a4:-1995d2c5:14d00d3ef04:-8000-00000000000001c6,0:1:1:5] [tid: 5f] [requestid: 6f11000b] [sessionid: 6f110000] [username: borisdev] -------------------- Query Status: [nQSError: 16002] Cannot obtain number of columns for the query result. [[
[nQSError: 16001] ODBC error state: 60 code: 102 message: [DataDirect][ODBC 20101 driver][Microsoft SQL Server]Incorrect syntax near 'UserName'..
[nQSError: 16001] ODBC error state: 60 code: 8180 message: [DataDirect][ODBC 20101 driver][Microsoft SQL Server]Statement(s) could not be prepared..
[nQSError: 43119] Query Failed:
I was wondering if anyone could shed any light on what could possibly be causing the [DataDirect][ODBC 20101 driver][Microsoft SQL Server]Incorrect syntax near 'UserName'.. error ? And also provide any suggestions on how I can troubleshoot this issue further as I am now completely out of ideas of what to do next having tried numerous things i.e. setting IDENTIFIER_QUOTE_CHAR = '' in DBFeatures.INI which I found in similar posts on the subject all to no avail
Regards,
Tom RoweHi Rajagopal,
Thanks for your reply after doing some further investigations this morning I found and corrected the problem...
The DataDirect Driver does not like double quotes in the query for some reason, testing using the BI Answers generated SQL with the nqcmd tool below...
With double quotes “” it fails immediately
Give SQL Statement: select T18706."Id" as c1, T18706."UserName" as c2 from "ETMS_Users" T18706 where ( T18706."UserName" = 'trowe' )
select T18706."Id" as c1, T18706."UserName" as c2 from "ETMS_Users" T18706 where ( T18706."UserName" = 'trowe' )
[102][State: S1000] [DataDirect][ODBC SQL Server Wire Protocol driver][Microsoft SQL Server]Incorrect syntax near 'Id'.
Statement execute failed
With double quotes removed for just the columns I now get the Error near ‘ETMS_Users’ which still had the double quotes
Give SQL Statement: select T18706.Id as c1, T18706.UserName as c2 from "ETMS_Users" T18706 where ( T18706.UserName = 'trowe' )
select T18706.Id as c1, T18706.UserName as c2 from "ETMS_Users" T18706 where ( T18706.UserName = 'trowe' )
[102][State: S1000] [DataDirect][ODBC SQL Server Wire Protocol driver][Microsoft SQL Server]Incorrect syntax near 'ETMS_Users'.
Statement execute failed
With all double quotes removed it works !
Give SQL Statement: select T18706.Id as c1, T18706.UserName as c2 from ETMS_Users T18706 where ( T18706.UserName = 'trowe' )
select T18706.Id as c1, T18706.UserName as c2 from ETMS_Users T18706 where ( T18706.UserName = 'trowe' )
c1 c2
42499 trowe
Row count: 1
Give SQL Statement:
The solution to fix the problem is...
In the BI Admin Tool Physical Layer Database, Properties Features tab is to delete the double quote in the Value column for IDENTIFIER_QUOTE_CHAR, setting this in the DBFeatures.INI file does not resolve the problem possibly it did in earlier versions of the product.
Regards,
Tom Rowe -
Timestamp to datetime throws "Incorrect syntax near '00'"
SQLServer 6.5 and Weblogic 6.0 SP2 on NT4.0:
Hi All
Can someone point me the utility which would tell me which version of
the JDBC Driver I am using. I know I am using Type 4 JDriver for
MSSQLServer 6.5 but I want to know the exact version to report the below
problem.
I am trying to insert java.sql.Timestamp values in datetime columns in a
table via a BMP (1.1) and I get this error
From java object
String value =07/11/2001
timestamp = 2001-07-11 00:00:00.0
java.rmi.RemoteException: EJB Exception:; nested exception is:
javax.ejb.EJBException
- with nested exception:
[java.sql.SQLException: Line 1: Incorrect syntax near '00'. Severity 15,
State 1, Procedure 'QCID_SRP_DEV null', Line 1]
Any help would be much appreciated.
Thanks
MadhuMadhusudan R Chaganthi wrote:
>
SQLServer 6.5 and Weblogic 6.0 SP2 on NT4.0:
Hi All
Can someone point me the utility which would tell me which version of
the JDBC Driver I am using. I know I am using Type 4 JDriver for
MSSQLServer 6.5 but I want to know the exact version to report the below
problem.
I am trying to insert java.sql.Timestamp values in datetime columns in a
table via a BMP (1.1) and I get this error
From java object
String value =07/11/2001
timestamp = 2001-07-11 00:00:00.0
java.rmi.RemoteException: EJB Exception:; nested exception is:
javax.ejb.EJBException
- with nested exception:
[java.sql.SQLException: Line 1: Incorrect syntax near '00'. Severity 15,
State 1, Procedure 'QCID_SRP_DEV null', Line 1]The first answer is to run the command:
% java weblogic.jdbc.mssqlserver4.Driver
This will print out the exact version.
Then, show me. I assume you're dealing with a
java.sql.Timestamp object. If so, would you
show me what it's .toString() method prints out?
I just saw a difference in our 7.0 driver and our
6.5 driver with setTimestamp(). Apparently a bug
was fixed in one but maybe not in the other because
of how infrequently we get 6.5 users nowadays.
Once I see your string, I can make you a new driver.
Joe
Any help would be much appreciated.
Thanks
Madhu--
PS: Folks: BEA WebLogic is expanding rapidly, with both entry and advanced positions
for people who want to work with Java, XML, SOAP and E-Commerce infrastructure products.
We have jobs at Nashua NH, Liberty Corner NJ, San Francisco and San Jose CA.
Send resumes to [email protected] -
SQL Server 2005 Problem: Incorrect syntax near '{'
hi,<br>
<br>
I am using SQL Server 2005 JDBC driver from Microsoft (sqljdbc_1.0.809.102_enu.exe), there are some problem when calling stored procedure from Database Control:<br>
<br>
The following exception flow when parameters of the stored procedure were wrapped to newline :<br>
<br>
<i>weblogic.jws.control.ControlException: ControlException on control test2005DBCtrl[Incorrect syntax near '{'.]</i><br>
<br>
Here is the method that generate the above exception:<br>
<br>
/**<br>
* @jc:sql statement::<br>
* {call P_dummyProcedure<br>
* <b>(<br>
* {intValue}, {value}<br>
* )</b> <br>
* }::<br>
*/<br>
void callStoreProcedure(int intValue, String value);<br>
<br>
But if the parameters were not wrap, the method work fine:<br>
<br>
/**<br>
* @jc:sql statement::<br>
* {call P_dummyProcedure<br>
* <b>( {intValue}, {value} ) </b><br>
* }::<br>
*/<br>
void callStoreProcedure(int intValue, String value);<br>
<br>
The above problem exist when I change from SQL Sever 2000 to 2005. Both methods is ok for SQL Server 2000 (both the driver from BEA and Microsoft)<br>
Do any one got the above problem or know why?<br>
<br>
cheer ~
<br>Wiz Cheng wrote:
hi Joe,<br>
<br>
following is a snippet of the config.xml, please see if that cover what you want ~ <br>
<br>
config.xml<br>
----<br>
<JDBCConnectionPool CapacityIncrement="5"<br>
?? ?? ?? DriverName="com.microsoft.sqlserver.jdbc.SQLServerXADataSource"<br>
?? ?? ?? InitialCapacity="10" MaxCapacity="100" Name="sql2005Pool"<br>
?? ?? ?? PasswordEncrypted="{3DES}lF9SivpaSCc=" Properties="user=sa"<br>
?? ?? ?? SupportsLocalTransaction="true" Targets="cgServer"<br>
?? ?? ?? TestConnectionsOnReserve="true" TestTableName="SQL Select 1"<br>
?? ?? ?? URL="jdbc:sqlserver://svr08006\\SQL2005:1533;databaseName=SBI"<br>
?? ?? ?? XASetTransactionTimeout="true" XATransactionTimeout="300"/><br>
<br>
<JDBCTxDataSource JNDIName="JNDI_SQL_2005" Name="JNDI_SQL_2005"<br>
?? ?? ?? PoolName="sql2005Pool" Targets="cgServer"/><br>
<br>
<br>
Thanks ~ <br>
WizOk, please recreate the pool, telling the console to use the BEA driver for MS.
when it shows you the pool properties, it should show you a URL, something like:
"jdbc:bea:sqlserver://......". Please then edit the URL to add this to the end:
;spyAttributes=(log=(file)spy.log, so the URL looks like
jdbc:bea:sqlserver://......;spyAttributes=(log=(file)spy.log)
Or just make the pool, and then edit the config file.
You should then see the config entry look something like this:
<JDBCConnectionPool CapacityIncrement="5"
DriverName="weblogic.jdbcx.sqlserver.SQLServerDataSource"
InitialCapacity="10" MaxCapacity="100" Name="sql2005Pool"
PasswordEncrypted="{3DES}lF9SivpaSCc=" Properties="user=sa"
SupportsLocalTransaction="true" Targets="cgServer"
TestConnectionsOnReserve="true" TestTableName="SQL Select 1"
URL="jdbc:bea:sqlserver://......"
XASetTransactionTimeout="true" XATransactionTimeout="300"/>
Then please alter the URL line so it's like:
URL="jdbc:bea:sqlserver://......;spyAttributes=(log=(file)spy.log)"
This will generate a file in the server directory called spy.log.
Then when the server boots, please then run the code that would
have caused the problem, as simply as possible, and then send
me the spy.log file.
thanks,
Joe -
Hey,
I created a report in Reporting Services where I added multi-value parameter
( Filter). When I run my report, and try to select more than one parameter, I get an error: Incorrect syntax near ','
then i put in parameter expression : join(Parameters!Filter.Value,",")
and add : dbo.ufnSplit before calling parameter in query :
>>> set @valwhere = 'table.field IN (select * from dbo.ufnSplit(' + @Filter + ' , '',''))'
but i still have errors : incorrect syntax near 'text' which is the second value of the picklist of the parameter,
Please Any idea ?
Thanks !!I have sometimes had to collate as default with the SQL query
currently I've just using
CompanyName in
(selectitemfromdbo.fnSplit(@function,','))
In the SSRS report text box I have Join(Parameters!Company.Value,",") -
Hi all,
I want to insert data into two tables and want to get data from one of those tables(using SELECT in the attribute 'action') after they are inserted with the data.
So how should be my receiver jdbc datatype structure.
Can anybody please tell me?
Thanks & Regards
Radhika.Check this blog for Synhronous select of data froma Database,
/people/bhavesh.kantilal/blog/2006/07/03/jdbc-receiver-adapter--synchronous-select-150-step-by-step
/people/jegathees.waran/blog/2007/03/02/oracle-table-functions-and-jdbc-sender-adapter
Please see the below URL for logic.
http://www.flickr.com/photos/8764045@N06/549186611/
http://www.flickr.com/photos/8764045@N06/549186651/
hope it will help u .. -
JDBC Receiver Adapter -- Synch Select. ERROR
Hello,
We have implemented the scenario described by Bhavesh Kantilal in blog 3928:
JDBC Receiver Adapter -- Synchronous Select Step by Step
/people/bhavesh.kantilal/blog/2006/07/03/jdbc-receiver-adapter--synchronous-select-150-step-by-step
but modified to our requirements.
An Idoc is coming in, mapped to a sync receiver jdbc as described to collect data from a jdbc table.
Result when connecting the oracle database with the jdbc receiver adapter:
Error processing request in sax parser: Error when executing statement for table/stored proc. 'T_ST_MAINDRIVER' (structure 'STATEMENT'): java.sql.SQLException: ORA-00942: table or view does not exist
Oh, like to complete the information by the payload from the jdbc rec. connect:
<?xml version="1.0" encoding="UTF-8" ?>
- <ns0:MT_JDBC_LOOPUP_ID xmlns:ns0="http://www.xxx.org/excel">
- <STATEMENT>
- <TABLENAME ACTION="SELECT">
<TABLE>T_ST_MAINDRIVER</TABLE>
<ACCESS />
- <KEY>
<MAINDRIVER compareOperation="=">Optomechanical</MAINDRIVER>
</KEY>
</TABLENAME>
</STATEMENT>
</ns0:MT_JDBC_LOOPUP_ID>
The table exists on the database. So, what is our mistake? Do you have any ideas?
Best regards
Dirk
Message was edited by:
Dirk Meinhard
Message was edited by:
Dirk MeinhardHi Anil,
I am back on my JDBC problem and I am one step further!
Thank you for this hint. Looks like this is the solution.
So I like to add my next question !
My new error is resulting from my query command.
I have set "=" to find a specific entry as compare operation.
Error when executing statement for table/stored proc. 'IRIS.T_ST_MAINDRIVER' (structure 'STATEMENT'): java.sql.SQLException: FATAL ERROR document format in structure 'TABLENAME': unexpected value '=' for attribute 'compare' found
Looks like this is not ok .
This is my xml of this query:
<ns0:MT_JDBC_LOOPUP_ID xmlns:ns0="http://www.xxx.org/excel">
<STATEMENT>
<TABLENAME ACTION="SELECT">
<TABLE>IRIS.T_ST_MAINDRIVER</TABLE>
<ACCESS/>
<KEY>
<MAINDRIVER compareOperation="=">Optomechanical</MAINDRIVER>
</KEY>
</TABLENAME>
</STATEMENT>
</ns0:MT_JDBC_LOOPUP_ID>
Can you, or anybody else, give the helping idea?
regards
Dirk -
Hi
I am trying insert rows in Oracle database using JDBC receiver adapter setup in PI 7.1. However this receiver adapter is throwing following exception.
Delivering the message to the application using connection JDBC_http://sap.com/xi/XI/System failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: Error processing request in sax parser: Error when executing statement for table/stored proc. 'PRADEEP_OTC_ORDERS' (structure 'statement'): java.sql.SQLException: ORA-00904: "BATCH_ID": invalid identifier .
<?xml version="1.0" encoding="UTF-8" ?>
<ns0:mt_sql_writer xmlns:ns0="http://rdbms_poc">
<statement>
<dbtablename action="INSERT">
<table>PRADEEP_OTC_ORDERS</table>
<access>
<order_id>19126</order_id>
<version>1</version>
<batch_id>132</batch_id>
</access>
</dbtablename>
</statement>
</ns0:mt_sql_writer>
PRADEEP_OTC_ORDERS table has just 3 columns as specified the access segment. However I stil get this ORA-00904 error message.
Any idea on what could be wrong.?
Thanks
-PradeepHi All,
Thanks a lot for responding...
I verified the table structure, table just contains those 3 coulms all varchar type.
I modified the column name as well, But was still getting ORA-00904. Then I went directly to the the database and executed below insert statement,
insert into PRADEEP_OTC_ORDERS (mps_order_id, mps_version,mps_batch_id) Values(1,2,3)
I got exact SQL Error: ORA-00904: "MPS_BATCH_ID": invalid identifier.
So ISAP JDBC adapter is not enclosing the string values in quotes.
SAP documentation says it puts quotes for values and treats everything as string(text).
Anybody has any idea, why JDBC receiver adapter not enclosing the values in quotes?
Thanks
-Pradeep
Maybe you are looking for
-
Dear Experts, We are developing a report for open line items for a customer though we have the standard T Code FBL5N. We have used BSAD table to get the open line item. But we are not getting exactly what we want. could u please suggest the table na
-
Facing issue while running the page locally
Hi All, I am facing an initial issue with iExpense page. I have ftped all the folder from appl/apps/apps_st/appl/ap/12.0.0/mds/oie (For I-Expense Module Customization) in ascii mode to myproject\oracle\apps\ap\oie and from appl/apps/apps_st/comn/java
-
Selecting from a column based on the id
Hello All, Is there a way to update a table based on the column id? Example: I have a table where column 2 is an accumulated dollar amount. Each row of the column is a lease. I need to update column 3 with $$ that i get from my cursor say x. Then col
-
Functions needed in Data Template for XML output
Hi , Are there any oracle functions like abs() available in data_template to be used as follows group name="listItem" source="Q2"> <element name="amount" value="abs(amount)"/> <element name="serialNumber" value="TXN_SERIAL_NO"/> I want the absolute v
-
Problem with vertexCount in LineArray
hey, I have an array with points and I want to connect them with line and the program throw an exception during running. This is part of code: public BranchGroup graph(int n) { for(int i = 0; i<n; i++) { X[i] = eq.rungekutty4(0, x