0
Select a.stmt_date,a.*,b.* from ES_CC_STATEMENTS a left outer join ES_STMT_TRANSACTIONS
b on a.stmt_id = b.stmt_id
where a.stmt_cc_number = #cc_number AND (stmt_date >= CONVERT(DATETIME, #dateFrom ,
101)) AND (stmt_date < CONVERT(DATETIME, #dateTo , 101)) order by b.txn_date desc
меня написать этот запрос в JDeveloper DB-адаптер & имеют стро бизнес-услуг в OSB11g, когда я развернуть проект & прогонов бизнес-сервера & вставки входных параметров я получаю следующее сообщение об ошибке:Неверное имя столбца «txn_date»
The invocation resulted in an error: Invoke JCA outbound service failed with
application error, exception: com.bea.wli.sb.transports.jca.JCATransportException:
oracle.tip.adapter.sa.api.JCABindingException:
oracle.tip.adapter.sa.impl.fw.ext.org.collaxa.thirdparty.apache.wsif.WSIFException:
servicebus:/WSDL/OSB%20DB%20Adapter/adapter/Jdev_OSB_DBAdapter/test_es_cc_STMT_new [ test_es_cc_STMT_new_ptt::test_es_cc_STMT_new(test_es_cc_STMT_newInput_msg,test_es_cc_STMT_n
ewOutputCollection) ] - WSIF JCA Execute of operation 'test_es_cc_STMT_new' failed due
to: Pure SQL Exception.
Pure SQL Execute of Select a.stmt_date,a.*,b.* from ES_CC_STATEMENTS a left outer join
ES_STMT_TRANSACTIONS b on a.stmt_id = b.stmt_id where a.stmt_cc_number = ? AND
(a.stmt_date >= CONVERT(DATETIME, ? , 101)) AND (a.stmt_date < CONVERT(DATETIME, ? ,
101)) order by b.txn_date desc failed.
Caused by com.microsoft.sqlserver.jdbc.SQLServerException: Invalid column name
'txn_date'..
; nested exception is:
BINDING.JCA-11633
Pure SQL Exception.
Pure SQL Execute of Select a.stmt_date,a.*,b.* from ES_CC_STATEMENTS a left outer join
ES_STMT_TRANSACTIONS b on a.stmt_id = b.stmt_id where a.stmt_cc_number = ? AND
(a.stmt_date >= CONVERT(DATETIME, ? , 101)) AND (a.stmt_date < CONVERT(DATETIME, ? ,
101)) order by b.txn_date desc failed.
Caused by com.microsoft.sqlserver.jdbc.SQLServerException: Invalid column name
'txn_date'..
The Pure SQL option is for border use cases only and provides simple yet minimal
functionality. Possibly try the "Perform an operation on a table" option instead. This
exception is considered not retriable, likely due to a modelling mistake. To classify
it as retriable instead add property nonRetriableErrorCodes with value "-207" to your
deployment descriptor (i.e. weblogic-ra.xml). To auto retry a retriable fault set
these composite.xml properties for this invoke: jca.retry.interval, jca.retry.count,
and jca.retry.backoff. All properties are integers.
колонка txn_date доступна в таблице ES_STMT_TRANSACTIONS – user3198223
ИСПОЛЬЗОВАНИЯ [Информация] GO /****** Объект:. Таблица [DBO] [ES_STMT_TRANSACTIONS] SET ANSI_NULLS ON GO КОМПЛЕКТ QUOTED_IDENTIFIER ПО GO SET ANSI_PADDING ON GO CREATE TABLE [dbo].[ES_STMT_TRANSACTIONS] ( \t [TXN_ID] [цифровой] (18, 0) NOT NULL, \t [TXN_CREATED_ON] [VARCHAR] (макс) СОЪЪАТ SQL_Latin1_General_CP1_CI_AS NULL, то \t [TXN_TRANSACTION_TYPE] [VARCHAR] (макс) СОЪЪАТ SQL_Latin1_General_CP1_CI_AS NULL, то \t [TXN_FLAG_DEBIT_CREDIT] [VARCHAR] (макс) СОЪЪАТ SQL_Latin1_General_CP1_CI_AS NULL, то \t [TXN_POSTING_DATE] [VARCHAR] (макс) СОЪЪАТ SQL_Latin1_General_CP1_CI_AS NULL, то – user3198223
[TXN_DESCRIPTION] [VARCHAR] (макс) СОЪЪАТ SQL_Latin1_General_CP1_CI_AS NULL, то \t [TXN_AMOUNT] [ varchar] (max) COLLATE SQL_Latin1_General_CP1_CI_AS NULL, \t [TXT_CURRENCY_CODE] [varchar] ] (Макс) СОЪЪАТ SQL_Latin1_General_CP1_CI_AS NULL, то \t [TXN_FOREIGN_TRANSACTION] [VARCHAR] (макс) СОЪЪАТ SQL_Latin1_General_CP1_CI_AS NULL, то \t [STMT_ID] [цифровые] (18, 0) NULL, то – user3198223