SQLServer Exception and Database Adapter. Please Help!!

Hello Everyone!
I've been trying during a whole week to insert a row in an SQLServer Database table from a BPEL Process using the database adapter. But I've never had success, I will show you the table, the XML used to do the insert with the DB adapter and the exception, I hope that someone will help me.
The Table:
CREATE TABLE [dbo].[Solicitudes](
     [NumSolicitud] [int] IDENTITY(1,1) NOT NULL,
     [NifSol] [varchar](9) COLLATE Modern_Spanish_CI_AS NOT NULL,
     [Destino] [varchar](max) COLLATE Modern_Spanish_CI_AS NOT NULL,
     [Motivo] [varchar](max) COLLATE Modern_Spanish_CI_AS NOT NULL,
     [FechaS] [datetime] NOT NULL,
     [FechaR] [datetime] NOT NULL,
     [InformeDirDep] [varchar](max) COLLATE Modern_Spanish_CI_AS NULL,
     [VoBoDirDep] [int] NOT NULL CONSTRAINT [DF_Solicitudes_VoBoDirDep] DEFAULT ((2)),
     [FirmaDirDep] [varchar](9) COLLATE Modern_Spanish_CI_AS NULL,
     [VoBoDirCen] [int] NOT NULL CONSTRAINT [DF_Solicitudes_VoBoDirCen] DEFAULT ((2)),
     [FirmaDirCen] [varchar](9) COLLATE Modern_Spanish_CI_AS NULL,
     [MedioLocom] [varchar](max) COLLATE Modern_Spanish_CI_AS NOT NULL,
     [Matricula] [varchar](max) COLLATE Modern_Spanish_CI_AS NOT NULL,
     [Credito] [varchar](10) COLLATE Modern_Spanish_CI_AS NOT NULL,
     [CantidadEst] [float] NOT NULL,
     [VoBoRespCredito] [int] NOT NULL CONSTRAINT [DF_Solicitudes_VoBoRespCredito] DEFAULT ((2)),
     [FirmaRespCredito] [varchar](9) COLLATE Modern_Spanish_CI_AS NULL,
     [VoBoRector] [int] NOT NULL CONSTRAINT [DF_Solicitudes_VoBoRector] DEFAULT ((2)),
     [FirmaRec] [varchar](9) COLLATE Modern_Spanish_CI_AS NULL,
     [FechaFirmaRec] [datetime] NULL,
     [FirmaSolicitante] [varchar](max) COLLATE Modern_Spanish_CI_AS NULL,
     [FechaSol] [datetime] NOT NULL,
CONSTRAINT [PK_Solicitudes] PRIMARY KEY CLUSTERED
     [NumSolicitud] ASC
)WITH (PAD_INDEX = OFF, IGNORE_DUP_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
The XML:
<InvokeAdapter_insert_InputVariable>
<part name="SolicitudesCollection" >
<SolicitudesCollection>
<Solicitudes>
<CantidadEst>250.73</CantidadEst>
<Credito>Crédito21</Credito>
<Destino>Destino2</Destino>
<FechaR>2007-04-14T12:45:51.924</FechaR>
<FechaS>2007-04-14T12:45:51.908</FechaS>
<FechaSol>2007-04-14T12:45:51.939</FechaSol>
<FirmaSolicitante>Signature26</FirmaSolicitante>
<Matricula>Matrícula20</Matricula>
<MedioLocom>MedioLocomoción19</MedioLocom>
<Motivo>Motivo3</Motivo>
<NifSol>12345678S</NifSol>
</Solicitudes>
</SolicitudesCollection>
</part>
</InvokeAdapter_insert_InputVariable>
And the Exception (Translated from spanish):
Descripción de Excepción: com.microsoft.sqlserver.jdbc.SQLServerException: El nombre de objeto 'SEQUENCE' no es válido. Excepción Interna: com.microsoft.sqlserver.jdbc.SQLServerException: El nombre de objeto 'SEQUENCE' no es válido. Código de Error: 208
Exception Description: com.microsoft.sqlserver.jdbc.SQLServerException: invalid object name 'SEQUENCE'. Internal Exception: com.microsoft.sqlserver.jdbc.SQLServerException: invalid object name 'SEQUENCE'. Error Code: 208
Why do i have this exception? Please help!!

Hi peter, thanks for answering!!
I don't have anything called sequence so i don't know why I have this error. The steps described in the page you sent to me were followed and the connection is good.
Do you know if there's any way to know the SQL query executed or the jdbc classes used by the database adapter?
Regards Antonio
P.D. I'm using SQL Server Express 2005

Similar Messages

  • Multiple database operations in Database Adapter - please help

    Hi,
    I would like to have multiple operation in my database adapter. I drop the database adapter onto the composite.xml and follow the wizard. An adapter with one operation is created.
    When I click the "Edit" button on it and run the wizard again, all the previous changes are lost, and only the new operation is present.
    In the "Oracle® Fusion Middleware User's Guide for Technology Adapters 11g Release 1 (11.1.1.5.0) 9 Oracle JCA Adapter for Database" I read the following:+
    While at run time you have Oracle Database Adapter instances, at design time you have the Adapter Configuration Wizard (link). You can run it once to generate a single adapter service end point, and then multiple times in edit mode to make incremental changes to each. It generates all the adapter related artifacts needed when deploying a SOA composite as Table 9-1 lists.
    But I how do I change the Jdeveloper into the "edit mode" ??? I've been trying for hours, and I cant figure it out. Please help!!!

    Hi Vijay,
    did you actually test this? When I finish creating a DBAdapter, there is a operation present. Then when I click edit again on the DBAdapter, and I create another select, when I finish only the first operation is gone, and I can only see the one I've created via the last edit.
    I dont understand your reply. Can I have two operations, each one with select underneath, in the same adapter?
    Edited by: user13604541 on Jan 30, 2012 11:19 AM

  • I need to pass a query in form of string to DBMS_XMLQUERY.GETXML package...the parameters to the query are date and varchar ..please help me..

    I need to pass a query in form of string to DBMS_XMLQUERY.GETXML package...the parameters to the query are date and varchar ..please help me build the string .Below is the query and the out put. ( the string is building fine except the parameters are with out quotes)
    here is the procedure
    create or replace
    procedure temp(
        P_MTR_ID VARCHAR2,
        P_FROM_DATE    IN DATE ,
        P_THROUGH_DATE IN DATE ) AS
        L_XML CLOB;
        l_query VARCHAR2(2000);
    BEGIN
    l_query:=  'SELECT
        a.s_datetime DATETIME,
        a.downdate Ending_date,
        a.downtime Ending_time,
        TO_CHAR(ROUND(a.downusage,3),''9999999.000'') kWh_Usage,
        TO_CHAR(ROUND(a.downcost,2),''$9,999,999.00'') kWh_cost,
        TO_CHAR(ROUND(B.DOWNUSAGE,3),''9999999.000'') KVARH
      FROM
        (SELECT s_datetime + .000011574 s_datetime,
          TO_CHAR(S_DATETIME ,''mm/dd/yyyy'') DOWNDATE,
          DECODE(TO_CHAR(s_datetime+.000011574 ,''hh24:'
          ||'mi''), ''00:'
          ||'00'',''24:'
          ||'00'', TO_CHAR(s_datetime+.000011574,''hh24:'
          ||'mi'')) downtime,
          s_usage downusage,
          s_cost downcost
        FROM summary_qtrhour
        WHERE s_mtrid = '
        ||P_MTR_ID||
       ' AND s_mtrch   = ''1''
        AND s_datetime BETWEEN TO_DATE('
        ||P_FROM_DATE||
        ',''DD-MON-YY'') AND (TO_DATE('
        ||P_THROUGH_DATE||
        ',''DD-MON-YY'') + 1)
        ) a,
        (SELECT s_datetime + .000011574 s_datetime,
          s_usage downusage
        FROM summary_qtrhour
        WHERE s_mtrid = '
        ||P_MTR_ID||
        ' AND s_mtrch   = ''2''
        AND s_datetime BETWEEN TO_DATE('
        ||P_FROM_DATE||
        ',''DD-MON-YY'') AND (TO_DATE('
        ||P_THROUGH_DATE||
        ','' DD-MON-YY'') + 1)
        ) B
      where a.S_DATETIME = B.S_DATETIME(+)';
    SELECT DBMS_XMLQUERY.GETXML('L_QUERY') INTO L_XML   FROM DUAL;
    INSERT INTO NK VALUES (L_XML);
    DBMS_OUTPUT.PUT_LINE('L_QUERY IS :'||L_QUERY);
    END;
    OUTPUT parameters are in bold (the issue is they are coming without single quotes otherwise th equery is fine
    L_QUERY IS :SELECT
        a.s_datetime DATETIME,
        a.downdate Ending_date,
        a.downtime Ending_time,
        TO_CHAR(ROUND(a.downusage,3),'9999999.000') kWh_Usage,
        TO_CHAR(ROUND(a.downcost,2),'$9,999,999.00') kWh_cost,
        TO_CHAR(ROUND(B.DOWNUSAGE,3),'9999999.000') KVARH
      FROM
        (SELECT s_datetime + .000011574 s_datetime,
          TO_CHAR(S_DATETIME ,'mm/dd/yyyy') DOWNDATE,
          DECODE(TO_CHAR(s_datetime+.000011574 ,'hh24:mi'), '00:00','24:00', TO_CHAR(s_datetime+.000011574,'hh24:mi')) downtime,
          s_usage downusage,
          s_cost downcost
        FROM summary_qtrhour
        WHERE s_mtrid = N3165 AND s_mtrch   = '1'
        AND s_datetime BETWEEN TO_DATE(01-JAN-13,'DD-MON-YY') AND (TO_DATE(31-JAN-13,'DD-MON-YY') + 1)
        ) a,
        (SELECT s_datetime + .000011574 s_datetime,
          s_usage downusage
        FROM summary_qtrhour
        WHERE s_mtrid = N3165 AND s_mtrch   = '2'
        AND s_datetime BETWEEN TO_DATE(01-JAN-13,'DD-MON-YY') AND (TO_DATE(31-JAN-13,' DD-MON-YY') + 1)
        ) B
      where a.S_DATETIME = B.S_DATETIME(+)

    The correct way to handle this is to use bind variables.
    And use DBMS_XMLGEN instead of DBMS_XMLQUERY :
    create or replace procedure temp (
      p_mtr_id       in varchar2
    , p_from_date    in date
    , p_through_date in date
    is
      l_xml   CLOB;
      l_query VARCHAR2(2000);
      l_ctx   dbms_xmlgen.ctxHandle;
    begin
      l_query:=  'SELECT
        a.s_datetime DATETIME,
        a.downdate Ending_date,
        a.downtime Ending_time,
        TO_CHAR(ROUND(a.downusage,3),''9999999.000'') kWh_Usage,
        TO_CHAR(ROUND(a.downcost,2),''$9,999,999.00'') kWh_cost,
        TO_CHAR(ROUND(B.DOWNUSAGE,3),''9999999.000'') KVARH
      FROM
        (SELECT s_datetime + .000011574 s_datetime,
          TO_CHAR(S_DATETIME ,''mm/dd/yyyy'') DOWNDATE,
          DECODE(TO_CHAR(s_datetime+.000011574 ,''hh24:'
          ||'mi''), ''00:'
          ||'00'',''24:'
          ||'00'', TO_CHAR(s_datetime+.000011574,''hh24:'
          ||'mi'')) downtime,
          s_usage downusage,
          s_cost downcost
        FROM summary_qtrhour
        WHERE s_mtrid = :P_MTR_ID
        AND s_mtrch   = ''1''
        AND s_datetime BETWEEN TO_DATE(:P_FROM_DATE,''DD-MON-YY'')
                           AND (TO_DATE(:P_THROUGH_DATE,''DD-MON-YY'') + 1)
        ) a,
        (SELECT s_datetime + .000011574 s_datetime,
          s_usage downusage
        FROM summary_qtrhour
        WHERE s_mtrid = :P_MTR_ID
        AND s_mtrch   = ''2''
        AND s_datetime BETWEEN TO_DATE(:P_FROM_DATE,''DD-MON-YY'')
                           AND (TO_DATE(:P_THROUGH_DATE,'' DD-MON-YY'') + 1)
        ) B
      where a.S_DATETIME = B.S_DATETIME(+)';
      l_ctx := dbms_xmlgen.newContext(l_query);
      dbms_xmlgen.setBindValue(l_ctx, 'P_MTR_ID', p_mtr_id);
      dbms_xmlgen.setBindValue(l_ctx, 'P_FROM_DATE', to_char(p_from_date, 'DD-MON-YY'));
      dbms_xmlgen.setBindValue(l_ctx, 'P_THROUGH_DATE', to_char(p_through_date, 'DD-MON-YY'));
      l_xml := dbms_xmlgen.getXML(l_ctx);
      dbms_xmlgen.closeContext(l_ctx);
      insert into nk values (l_xml);
    end;

  • Not able drop a user in database.. please help

    Not able drop a user in database.. please help
    SQL> drop user xxx cascade;
    drop user xxx cascade
    ERROR at line 1:
    ORA-00600: internal error code, arguments: [16500], [kqdcru], [D], [2], [74],
    [BIN$gwB1YtUSNkHgQKjAVbQi5w==$0], [], []
    i tried to clear recycle bin .. it went fine as sysdba but not an user
    As sys:
    purge recyclebin;
    Recyclebin purged.
    SQL> conn xxx
    Enter password:
    Connected.
    SQL> purge recyclebin;
    purge recyclebin
    ERROR at line 1:
    ORA-00600: internal error code, arguments: [16500], [kqdcru], [D], [2], [74],
    [BIN$gwB1YtUSNkHgQKjAVbQi5w==$0], [], []
    restart of db not helping out...
    thanks in advance.. help me out..

    You didn't mention your Database and O/S details....
    drop user xxx cascade
    ERROR at line 1:
    ORA-00600: internal error code, arguments: [16500], [kqdcru], [D], [2], [74],
    [BIN$gwB1YtUSNkHgQKjAVbQi5w==$0], [], []
    SQL> purge recyclebin;
    purge recyclebin
    ERROR at line 1:
    ORA-00600: internal error code, arguments: [16500], [kqdcru], [D], [2], [74],
    [BIN$gwB1YtUSNkHgQKjAVbQi5w==$0], [], []You should probably raise a Service Request for ORA-00600 errors, as Oracle Support needs to look at it.
    Regards
    Z.K.

  • My appstore wont let me download anything. It says i have to agree to the terms and i agree and again it pop up the same thing over and over! Please help me

    My appstore wont let me download anything. It says i have to agree to the terms and i agree and again it pop up the same thing over and over! Please help me

    I thought i was the only one!! but its happening on my ipad! and i dont even want to try on my iphone uhhh its annoying!

  • "Connect to iTunes to Use Push Notifications" comes almost in every app that I open and it does not notify me when I got message in Whatsapp and Viber. Please help me to overcome it, it is becoming quite annoying!

    "Connect to iTunes to Use Push Notifications" comes almost in every app that I open and it does not notify me when I got message in Whatsapp and Viber. Please help me to overcome it, it is becoming quite annoying!

    Did you get any help on this? From what I can see from surfing this site, it's a BUG that no one has offered a solution to. It sometimes happens after a 'reset' and going to ITunes does not offer a way to 'set up push notifications'.

  • I have an itunes account on my home PC. I want to use my same account but on my laptop. How do i do this with out wiping out my phone and backing up all my Pictures and Apps? Please Help.

    I have an itunes account on my home PC. I want to use my same account but on my laptop. How do i do this with out wiping out my phone and backing up all my Pictures and Apps? Please Help.

    Copy everything from the old computer or your backup copy of your old computer to your new one.
    Type "move itunes library from pc to mac" or similar into the google search bar.

  • I'm having multiple crashes on my new 5s. I can't connect to my Mac Pro!! Power cord broken. How can I fix this without connecting to my MacBook? Very frustrating and disappointing. Please help!!!

    I'm having multiple crashes on my new 5s. I can't connect to my Mac Pro!! Power cord broken. How can I fix this without connecting to my MacBook? Very frustrating and disappointing. Please help!!!

    Hi there Rlong50,
    You may want to try force closing all open apps and resetting the device as an initial troubleshooting step. Take a look at the articles below for more information.
    iOS: Force an app to close
    http://support.apple.com/kb/ht5137
    iPhone, iPad, iPod touch: Turning off and on (restarting) and resetting
    http://support.apple.com/kb/ht1430
    -Griff W.

  • I have a problem with itunes when I sync the saved music and want to sync my iphone 5 ios 7.0.6 no longer passes the music thing is that just stays on "waiting for sync" and not worry please help are more than 400 songs that do not want to hear who are wi

    I have a problem with itunes when I sync the saved music and want to sync my iphone 5 ios 7.0.6 no longer passes the music thing is that just stays on "waiting for sync" and not worry please help are more than 400 songs that do not want to hear who are wi

    Plawexki wrote:
    ...  do you know if the contacts, photos, messages etc will be wiped?
    Yes... Everything will be Wiped and Replaced with what is currently on Your Mac.
    SYNCING with iTunes
    See here  >  http://support.apple.com/kb/HT1386
    From Here  >  http://www.apple.com/support/iphone/syncing/
    You may find this information of interest...
    Have a read here...
    https://discussions.apple.com/message/18409815?ac_cid=ha
    And See Here...
    How to Use Multiple iDevices with One Computer

  • Iphone 4 went into recovery mode when trying to restore, only option available now is to "restore and update" however this will not work, how can you restore from a backup once in recovery mode and only option is "restore and upgrade"? Please help!

    iPhone 4 went into recovery mode when trying to restore it. Now the only option iTunes allows is for "restore & upgrade", it is not offer an option to restore from a backup, says that must first do the upgrade, when attempting to do the upgrade the iPhone won't accept it.
    How can I restore from a back up in recovery mode when the only option is "restore and upgrade"?
    Please help.

    You don't you must restore your phone first and then you will have the option to restore from your backup.
    If you can't update or restore your iPhone, iPad, or iPod touch - Apple Support

  • My iPod shuffle will not turn on, nor is it recognized by the computer to pull up iTunes. I have order new USB cords and nothing. Please help!

    My iPod shuffle will not turn on, nor is it recognized by the computer to pull up iTunes. I have order new USB cords and nothing. Please help! Not sure of the generation of iPod shuffle, I think 3rd.

    first: why did you download the iOS Beta 8? If you are a developer, go to the Apple Developers website and check what they can do for your case.
    second: setup an appointment to a Genius Bar for service.

  • The enter key is not working in firefox but it has working fine in chrome and IE so please help me to rid out from this.

    The enter key is not working in firefox but it has working fine in chrome and IE so please help me to rid out from this.

    Hello gokulaan, '''try Firefox Safe Mode''' to see if the problem goes away. Safe Mode is a troubleshooting mode, which disables most add-ons.
    ''(If you're not using it, switch to the Default theme.)''
    * You can open Firefox 4.0+ in Safe Mode by holding the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
    * Or open the Help menu and click on the '''Restart with Add-ons Disabled...''' menu item while Firefox is running.
    ''Once you get the pop-up, just select "'Start in Safe Mode"''
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one. Please follow the [[Troubleshooting extensions and themes]] article for that.
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    ''When you figure out what's causing your issues, please let us know. It might help other users who have the same problem.''
    Thank you.

  • I try to access the itunes store and my bar goes halfway and stop. Please help

    I am trying to access the Itunes Store and my bar goes halfway and stop.
    Please help.

    Is it endlessly saying "Accessing iTunes Store"? Or is something a bit different going on?

  • By mistake I uninstalled my Acrobat someting, which gave me the opportunity to print .pdf and color-mark text. My licence key is [removed by moderator]. What is the name of the product? Where is the link for download and reinstall? Please help me r

    By mistake I uninstalled my Acrobat someting, which gave me the opportunity to print .pdf and color-mark text. My licence key is [removed by moderator - never disclose publicly]. What is the name of the product? Where is the link for download and reinstall? Please help me rapidly, Best regards / Stefan

    Sign in to your Adobe account online and look in the Plans/Products sections to see which program it might have been.

  • I received a replacement iPad. On my original iPad I had dozens of books and PDF's. I completely backed up my original iPad. The categories of my iBook files transferred but NOT the actual PDF and Books. Please help.

    I received a replacement iPad. On my original iPad I had dozens of books and PDF's. I completely backed up my original iPad. The categories of my iBook files transferred but NOT the actual PDF and Books. Please help.

    Are the PDFs and ibooks on your computer's iTunes ? If so then you should be able to re-sync them, if not then you can re-download ibooks for free as long as they are still available in the store and you use the same iTunes account as you originally used to buy them : http://support.apple.com/kb/HT2519 . The backup doesn't contain the contents of the ibooks app, so for them to be restored to the device they needed to be in your iTunes library.

Maybe you are looking for