Call Oracle DECODE in BizTalk 2006 XML message



Hi

I have an Oracle DB with a function that can be used inside an insert
statement

Such that

insert into CDI_SOR_DEFS (EX_SOR_NUM, SOR_REF, SOURCE_CODE,
CATALOGUE_SOURCE)

values(DECODE(customer_card_loc(31,null,null),null,31 ,null),
'TEST','TEST','TEST')

(customer_card_loc() - is the function)

This works fine in SQLPlus however when i try and call this function
through Biztalk and an XML message

such that

<ns0:Insert
xmlns:ns0="http://schemas.microsoft.com/[OracleDb://LFC/CDI/Tables/CDI_SOR_DEFS]";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
<ns0:Rows>
<ns0:InsertRecord>
<ns0:EX_SOR_NUM>DECODE(customer_card_loc(31,null,null ),null,31
,null)</ns0:EX_SOR_NUM>
<ns0:SOR_REF>506003</ns0:SOR_REF>
<ns0:SOURCE_CODE>W</ns0:SOURCE_CODE>
<ns0:CATALOGUE_SOURCE>CATALOGUE</ns0:CATALOGUE_SOURCE>
</ns0:InsertRecord>
</ns0:Rows>
</ns0:Insert>

It fails

Any pointers would be great

Thanks

Simon

.



Relevant Pages

  • Re: Oracle transactions and DDL statements.
    ... DA Morgan skrev: ... architecture of products, such as Oracle, on which you might implement ... midway (or the power fails), the poor programmers will now have to ... Daniel A. Morgan ...
    (comp.databases.oracle.misc)
  • Re: SSIS Import Job
    ... it sure sounds like an Oracle issue. ... manually, and yet it fails when schedulsed, can you give us more details as ...  The job imports ...  The job runs via job scheduler, ...
    (microsoft.public.sqlserver.dts)
  • RE: SSIS Import Job
    ... it sure sounds like an Oracle issue. ... data from multiple tables, from 4 Oracle 9i databases, and 1 Oracle ... The job runs via job scheduler, and fails when it comes ...
    (microsoft.public.sqlserver.dts)
  • inserting guid does not work when DBPROP_SERVERDATAONINSERT is set
    ... with a command object and with accessors, just like with so many other ... This is the table (in MSSQL): ... With Oracle the Openworks always, but the actual insert-statement fails ...
    (microsoft.public.data.oledb)
  • Problem with asp pages accessing database and internet access on web server
    ... Oracle Client 9.2.0.4 ... that access the database fail to respond. ... internet fails with a DNS error. ... outside web site like Google. ...
    (microsoft.public.inetserver.iis)