DB2 Insertion Ampersend problem:

Hi Guys,
I have been stuck up with a problem. we are implementing BPM JDBC to JDBC scenario.
the receiver DB is DB2 (AS400).
The sender side payload contains special Characters like Ampersand (&), now when we try to insert these field into the Revier its giving problem. Below Error occcurs:
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. 'UIINV' (structure 'Statement1'): java.sql.SQLException: [SQL0104] Token & was not valid. Valid tokens: ) ,.
We have properly converted the source '&' value into '&' .
Below is the Receiver Structure for the Tag which is failing to insert and above error Occurs:
Actual Data for the field is  CKQ-QUART-COOKIES&CREAM .
In the XML payload we have converted the value into below format:
<INDESC hasQuot="no">U&'CKQ-QUART-COOKIES&amp;CREAM'</INDESC>
This is not inserting into the DB and above exception is occuring in the Adapter Level.
Regards,
Senthilprakash.
Edited by: senthilprakash selvaraj on Dec 12, 2008 2:49 PM
Edited by: senthilprakash selvaraj on Dec 12, 2008 2:50 PM

Hi,
& is a special character in XML hence use &amp; instead of &.
Check this link.
[http://www.devx.com/tips/Tip/14068]
Thanks,
- Gujjeti.

Similar Messages

  • Single record insert performance problems

    Hi,
    we have on production environment a Java based application that makes aprox 40.000 single record Inserts per hour into a table.
    We ha traced the performance of this Insert and the medium time is 3ms, that is ok. Our Java architecture is based in Websphere Application Server and we access to Oracle 10g through a WAS datasource.
    But we have detected that 3 or 4 times a day, during aprox 30 seconds, the Java service is not able to make any insertion in that table. And suddenly it makes all the "queued inserts" in only 1 second. That "pause" in the insertion cause problems of navigation because is the top layer there is a web application.
    We are sure that is not a problem with the WAS or the Java code. We are sure that is a problem with the Oracle configuration, or some tunning action for this kind of applications that we don´t know. We first thought it could be a problem with a sequence field in the table. Also, a problem when occurs the change of the redo log. But we've checked it with our DBA and this is not the problem.
    Has anybody any idea of what could be the origin of this extrange behaviour?
    Thanks a lot in advance.
    Jose.

    There are a couple of things you'd need to look at to diagnose this - As Joe says it's not really a JDBC issue from what we know.
    I've seen issues with Oracle's automatic SGA resizing causing sporadic latency in OLTP systems. Another suspect would be log file sync wait events, which are associated with commits. Don't discount the impact of well meaning people using tools like TOAD to query the DB - they can sometimes cause more harm than good.
    Right now I'd suggest you run AWR at 10 minute intervals and compare reports from when you had your problem with a time when you didn't.

  • DB2 Transaction log Problem after set db manuell to Rollforward

    Hello,
    I have a problem when set the db2 manuell in rollforward mode. After I set the command db2rfpen ON E35 my database (E35) is in rollforward mode.
    Now I can see with command "db2 rollforward db E35 query status" the Last committed transaction
    but the timestamp of the Last committed transaction is 2106-02-07-06.28.15.000000 UTC
    but we do not have year 2106!!
    did someone have similar issue or a solution for my problem??
    Is it possible to manuell update the table via SQL? But I dont know which table i should update..
    Thanks in advanced.
    Robin

    Hi,
    following output of db2 get snapshot for all databases because db2 get snapshot for database E35 does not work..
    there I think the timestamp is also ok. Thanks for your help!
    regards
    Robin
                  Database Snapshot
    Database name                              = E35
    Database path                              = /db2/E35/db2e35/NODE0000/SQL00001/MEMBER0000/
    Input database alias                       =
    Database status                            = Active
    Catalog database partition number          = 0
    Catalog network node name                  = srvnetapp07
    Operating system running at database server= LINUXAMD64
    Location of the database                   = Local
    First database connect timestamp           = 08/11/2014 12:16:58.594371
    Last reset timestamp                       =
    Last backup timestamp                      = 08/08/2014 09:57:42.000000
    Snapshot timestamp                         = 08/11/2014 12:17:46.494342
    Number of automatic storage paths          = 4
    Automatic storage path                     = /db2/E35/sapdata1
          Node number                          = 0
          State                                = In Use
          File system ID                       = 64782
          Storage path free space (bytes)      = 23376351232
          File system used space (bytes)       = 3045990400
          File system total space (bytes)      = 26422341632
    Automatic storage path                     = /db2/E35/sapdata2
          Node number                          = 0
          State                                = In Use
          File system ID                       = 64783
          Storage path free space (bytes)      = 23376351232
          File system used space (bytes)       = 3045990400
          File system total space (bytes)      = 26422341632
    Automatic storage path                     = /db2/E35/sapdata3
          Node number                          = 0
          State                                = In Use
          File system ID                       = 64784
          Storage path free space (bytes)      = 23376351232
          File system used space (bytes)       = 3045990400
          File system total space (bytes)      = 26422341632
    Automatic storage path                     = /db2/E35/sapdata4
          Node number                          = 0
          State                                = In Use
          File system ID                       = 64785
          Storage path free space (bytes)      = 23376351232
          File system used space (bytes)       = 3045990400
          File system total space (bytes)      = 26422341632
    High water mark for connections            = 13
    Application connects                       = 9
    Secondary connects total                   = 11
    Applications connected currently           = 1
    Appls. executing in db manager currently   = 0
    Agents associated with applications        = 11
    Maximum agents associated with applications= 13
    Maximum coordinating agents                = 13
    Number of Threshold Violations             = 0
    Locks held currently                       = 29
    Lock waits                                 = 2
    Time database waited on locks (ms)         = 56
    Lock list memory in use (Bytes)            = 77568
    Deadlocks detected                         = 0
    Lock escalations                           = 0
    Exclusive lock escalations                 = 0
    Agents currently waiting on locks          = 0
    Lock Timeouts                              = 0
    Number of indoubt transactions             = 0
    Total Private Sort heap allocated          = 0
    Total Shared Sort heap allocated           = 6
    Shared Sort heap high water mark           = 245
    Post threshold sorts (shared memory)       = 0
    Total sorts                                = 2
    Total sort time (ms)                       = 2
    Sort overflows                             = 0
    Active sorts                               = 0
    Buffer pool data logical reads             = 68507
    Buffer pool data physical reads            = 1312
    Buffer pool temporary data logical reads   = 0
    Buffer pool temporary data physical reads  = 0
    Asynchronous pool data page reads          = 899
    Buffer pool data writes                    = 0
    Asynchronous pool data page writes         = 0
    Buffer pool index logical reads            = 52871
    Buffer pool index physical reads           = 449
    Buffer pool temporary index logical reads  = 0
    Buffer pool temporary index physical reads = 0
    Asynchronous pool index page reads         = 0
    Buffer pool index writes                   = 0
    Asynchronous pool index page writes        = 0
    Buffer pool xda logical reads              = 0
    Buffer pool xda physical reads             = 0
    Buffer pool temporary xda logical reads    = 0
    Buffer pool temporary xda physical reads   = 0
    Buffer pool xda writes                     = 0
    Asynchronous pool xda page reads           = 0
    Asynchronous pool xda page writes          = 0
    Total buffer pool read time (milliseconds) = 4912
    Total buffer pool write time (milliseconds)= 0
    Total elapsed asynchronous read time       = 3219
    Total elapsed asynchronous write time      = 0
    Asynchronous data read requests            = 454
    Asynchronous index read requests           = 0
    Asynchronous xda read requests             = 0
    No victim buffers available                = 0
    LSN Gap cleaner triggers                   = 0
    Dirty page steal cleaner triggers          = 0
    Dirty page threshold cleaner triggers      = 0
    Time waited for prefetch (ms)              = 982
    Unread prefetch pages                      = 0
    Direct reads                               = 986
    Direct writes                              = 2
    Direct read requests                       = 77
    Direct write requests                      = 1
    Direct reads elapsed time (ms)             = 243
    Direct write elapsed time (ms)             = 0
    Database files closed                      = 0
    Host execution elapsed time                = 5.785568
    Commit statements attempted                = 16
    Rollback statements attempted              = 2
    Dynamic statements attempted               = 6950
    Static statements attempted                = 23
    Failed statement operations                = 0
    Select SQL statements executed             = 6936
    Xquery statements executed                 = 0
    Update/Insert/Delete statements executed   = 6
    DDL statements executed                    = 0
    Inactive stmt history memory usage (bytes) = 0
    Internal automatic rebinds                 = 0
    Internal rows deleted                      = 0
    Internal rows inserted                     = 0
    Internal rows updated                      = 0
    Internal commits                           = 21
    Internal rollbacks                         = 0
    Internal rollbacks due to deadlock         = 0
    Number of MDC table blocks pending cleanup = 0
    Rows deleted                               = 0
    Rows inserted                              = 0
    Rows updated                               = 13838
    Rows selected                              = 13897
    Rows read                                  = 141752
    Binds/precompiles attempted                = 0
    Log space available to the database (Bytes)= 333797877
    Log space used by the database (Bytes)     = 26523
    Maximum secondary log space used (Bytes)   = 0
    Maximum total log space used (Bytes)       = 37070
    Secondary logs allocated currently         = 0
    Log pages read                             = 0
    Log read time (sec.ns)                     = 0.000000000
    Log pages written                          = 13
    Log write time (sec.ns)                    = 0.006250000
    Number write log IOs                       = 9
    Number read log IOs                        = 0
    Number partial page log IOs                = 7
    Number log buffer full                     = 0
    Log data found in buffer                   = 0
    Log to be redone for recovery (Bytes)      = 26523
    Log accounted for by dirty pages (Bytes)   = 26523
    Node number                                = 0
    File number of first active log            = 90
    File number of last active log             = 94
    File number of current active log          = 90
    File number of log being archived          = Not applicable
    Package cache lookups                      = 6955
    Package cache inserts                      = 20
    Package cache overflows                    = 0
    Package cache high water mark (Bytes)      = 1026593
    Application section lookups                = 20824
    Application section inserts                = 29
    Catalog cache lookups                      = 740
    Catalog cache inserts                      = 55
    Catalog cache overflows                    = 0
    Catalog cache high water mark              = 429098
    Catalog cache statistics size              = 0
    Workspace Information
    Number of hash joins                       = 4
    Number of hash loops                       = 0
    Number of hash join overflows              = 0
    Number of small hash join overflows        = 0
    Post threshold hash joins (shared memory)  = 0
    Active hash joins                          = 0
    Number of OLAP functions                   = 0
    Number of OLAP function overflows          = 0
    Active OLAP functions                      = 0
    Statistic fabrications                          = 0
    Synchronous runstats                            = 0
    Asynchronous runstats                           = 0
    Total statistic fabrication time (milliseconds) = 0
    Total synchronous runstats time (milliseconds)  = 0
    Memory usage for database:
      Node number                                  = 0
        Memory Pool Type                           = Backup/Restore/Util Heap
           Current size (bytes)                    = 65536
           High water mark (bytes)                 = 65536
           Configured size (bytes)                 = 204800000
      Node number                                  = 0
        Memory Pool Type                           = Package Cache Heap
           Current size (bytes)                    = 1179648
           High water mark (bytes)                 = 1179648
           Configured size (bytes)                 = 472317952
      Node number                                  = 0
        Memory Pool Type                           = Other Memory
           Current size (bytes)                    = 196608
           High water mark (bytes)                 = 196608
           Configured size (bytes)                 = 20971520
      Node number                                  = 0
        Memory Pool Type                           = Catalog Cache Heap
           Current size (bytes)                    = 524288
           High water mark (bytes)                 = 524288
           Configured size (bytes)                 = 10485760
      Node number                                  = 0
        Memory Pool Type                           = Buffer Pool Heap
           Secondary ID                            = 1
           Current size (bytes)                    = 494010368
           High water mark (bytes)                 = 494010368
           Configured size (bytes)                 = 494010368
      Node number                                  = 0
        Memory Pool Type                           = Buffer Pool Heap
           Secondary ID                            = System 32k buffer pool
           Current size (bytes)                    = 1835008
           High water mark (bytes)                 = 1835008
           Configured size (bytes)                 = 1835008
      Node number                                  = 0
        Memory Pool Type                           = Buffer Pool Heap
           Secondary ID                            = System 16k buffer pool
           Current size (bytes)                    = 1572864
           High water mark (bytes)                 = 1572864
           Configured size (bytes)                 = 1572864
      Node number                                  = 0
        Memory Pool Type                           = Buffer Pool Heap
           Secondary ID                            = System 8k buffer pool
           Current size (bytes)                    = 1441792
           High water mark (bytes)                 = 1441792
           Configured size (bytes)                 = 1441792
      Node number                                  = 0
        Memory Pool Type                           = Buffer Pool Heap
           Secondary ID                            = System 4k buffer pool
           Current size (bytes)                    = 1376256
           High water mark (bytes)                 = 1376256
           Configured size (bytes)                 = 1376256
      Node number                                  = 0
        Memory Pool Type                           = Shared Sort Heap
           Current size (bytes)                    = 2359296
           High water mark (bytes)                 = 3932160
           Configured size (bytes)                 = 40435712
      Node number                                  = 0
        Memory Pool Type                           = Lock Manager Heap
           Current size (bytes)                    = 159645696
           High water mark (bytes)                 = 159645696
           Configured size (bytes)                 = 159711232
      Node number                                  = 0
        Memory Pool Type                           = Database Heap
           Current size (bytes)                    = 87687168
           High water mark (bytes)                 = 87687168
           Configured size (bytes)                 = 119472128
      Node number                                  = 0
        Memory Pool Type                           = Application Heap
           Secondary ID                            = 107
           Current size (bytes)                    = 65536
           High water mark (bytes)                 = 65536
           Configured size (bytes)                 = 1048576
      Node number                                  = 0
        Memory Pool Type                           = Application Heap
           Secondary ID                            = 106
           Current size (bytes)                    = 65536
           High water mark (bytes)                 = 65536
           Configured size (bytes)                 = 1048576
      Node number                                  = 0
        Memory Pool Type                           = Application Heap
           Secondary ID                            = 105
           Current size (bytes)                    = 65536
           High water mark (bytes)                 = 65536
           Configured size (bytes)                 = 1048576
      Node number                                  = 0
        Memory Pool Type                           = Application Heap
           Secondary ID                            = 104
           Current size (bytes)                    = 65536
           High water mark (bytes)                 = 65536
           Configured size (bytes)                 = 1048576
      Node number                                  = 0
        Memory Pool Type                           = Application Heap
           Secondary ID                            = 103
           Current size (bytes)                    = 65536
           High water mark (bytes)                 = 65536
           Configured size (bytes)                 = 1048576
      Node number                                  = 0
        Memory Pool Type                           = Application Heap
           Secondary ID                            = 102
           Current size (bytes)                    = 65536
           High water mark (bytes)                 = 65536
           Configured size (bytes)                 = 1048576
      Node number                                  = 0
        Memory Pool Type                           = Application Heap
           Secondary ID                            = 101
           Current size (bytes)                    = 196608
           High water mark (bytes)                 = 196608
           Configured size (bytes)                 = 1048576
      Node number                                  = 0
        Memory Pool Type                           = Application Heap
           Secondary ID                            = 100
           Current size (bytes)                    = 65536
           High water mark (bytes)                 = 65536
           Configured size (bytes)                 = 1048576
      Node number                                  = 0
        Memory Pool Type                           = Application Heap
           Secondary ID                            = 99
           Current size (bytes)                    = 65536
           High water mark (bytes)                 = 65536
           Configured size (bytes)                 = 1048576
      Node number                                  = 0
        Memory Pool Type                           = Application Heap
           Secondary ID                            = 98
           Current size (bytes)                    = 65536
           High water mark (bytes)                 = 65536
           Configured size (bytes)                 = 1048576
      Node number                                  = 0
        Memory Pool Type                           = Application Heap
           Secondary ID                            = 97
           Current size (bytes)                    = 131072
           High water mark (bytes)                 = 131072
           Configured size (bytes)                 = 1048576
      Node number                                  = 0
        Memory Pool Type                           = Applications Shared Heap
           Current size (bytes)                    = 458752
           High water mark (bytes)                 = 458752
           Configured size (bytes)                 = 81920000

  • Rows of Data cannot be inserted (Loop Problem) (urgent)

    Hi Guys
    create table JobWorker
    (JobID               Integer,
    JobName          char(20),     
    Name               char(20),      
    Department          char(20),
    Responsibilities char(30),
    JobRating char(20),
    Primary Key (JobID));
    Above is my table that requires rows of data.
    Create sequence demoseq increment by 1 start with 1;
    DECLARE
    v_rows integer := 1000; -- THIS IS THE KEY VALUE = NUMBER OF ROWS IN TABLE
    v_JobName char(20);
    v_temp integer := 1;
    BEGIN
    FOR v_counter IN 1 .. v_rows LOOP
    IF (v_temp > 10) THEN
    v_temp := 1;
    END IF;
    IF (v_temp = 1) THEN
    v_JobName := 'Pharmacist';
    insert into JobWorker values (demoseq.nextval, v_JobName, 'Richard Smith','Medical', 'Import and Export', 7);
    ELSIF (v_temp = 2) THEN
    v_JobName := 'Security Officer';
    insert into JobWorker values (demoseq.nextval, v_JobName, 'Matt Stevens', 'Security', 'Check Club Tickets', 6);
    ELSIF(v_temp = 3) THEN
    v_JobName := 'Systems Analyst';
    insert into JobWorker values (demoseq.nextval, v_JobName, 'Navdeep Kamboz', 'Finance', 'Analyse Systems', 10);
    ELSIF(v_temp = 4) THEN
    v_JobName := 'Mathematician';
    insert into JobWorker values (demoseq.nextval, v_JobName, 'Paul Potts', 'Algebra and Data Handling', 'Teach Algebra', 4);
    ELSIF(v_temp = 5) THEN
    v_JobName := 'DB Administrator';
    insert into JobWorker values (demoseq.nextval, v_JobName, 'Christine Bleakley', 'Oracle, SQL, DB2', 'Granting User Privileges', 9);
    ELSIF(v_temp = 6) THEN
    v_JobName := 'Dentist';
    insert into JobWorker values (demoseq.nextval, v_JobName, 'Edward Walker', 'Manager', 'General Checkups', 8);
    ELSIF(v_temp = 7) THEN
    v_JobName := 'Electrician';
    insert into JobWorker values (demoseq.nextval, v_JobName, 'Dave Panesar', 'Engineering', 'Examine Specifications', 3);
    ELSIF(v_temp = 8) THEN
    v_JobName := 'Cricketer';
    insert into JobWorker values (demoseq.nextval, v_JobName, 'Sachin Tendulkar', 'Batsman', 'Scoring Hundreds', 9);
    ELSIF(v_temp = 9) THEN
    v_JobName := 'Personal Trainer';
    insert into JobWorker values (demoseq.nextval, v_JobName, 'Brock Lesnar', 'Weights Dept', 'Train People on Weights', 5);
    ELSIF(v_temp = 10) THEN
    v_JobName := 'Area Manager';
    insert into JobWorker values (demoseq.nextval, v_JobName, 'Joe Hoffland', 'Midlands', 'Visit Stores and Examine', 2);
    END IF;
    END LOOP;
    END;
    It does work...but the following problems I get are...
    As you can see I have populated the tables as a Loop..
    But if I was to generate a statement : Select * from JobWorker WHERE Name = 'Joe Hoffland';
    It provides me with the result as 'No Rows Selected'.
    The first Insert consists of someone called Richard Smith. Every row of data is only populated with his name and his row of data.
    I cannot get the other 9 insert rows to work....
    Is there something wrong with the above code? I require your help guys! Thank You!

    Incrementing v_temp would help :). Also column department length is too small. You need to increase it to 25. And sing CHAR isn't a good idea. Use VARCHAR2 instead:
    SQL> DECLARE
      2  v_rows integer := 1000; -- THIS IS THE KEY VALUE = NUMBER OF ROWS IN TABLE
      3  v_JobName char(20);
      4  v_temp integer := 1;
      5 
      6  BEGIN
      7  FOR v_counter IN 1 .. v_rows LOOP
      8 
      9  IF (v_temp > 10) THEN
    10  v_temp := 1;
    11  END IF;
    12 
    13  IF (v_temp = 1) THEN
    14  v_JobName := 'Pharmacist';
    15  insert into JobWorker values (demoseq.nextval, v_JobName, 'Richard Smith','Medical', 'Import and Export', 7);
    16  ELSIF (v_temp = 2) THEN
    17  v_JobName := 'Security Officer';
    18  insert into JobWorker values (demoseq.nextval, v_JobName, 'Matt Stevens', 'Security', 'Check Club Tickets', 6);
    19  ELSIF(v_temp = 3) THEN
    20  v_JobName := 'Systems Analyst';
    21  insert into JobWorker values (demoseq.nextval, v_JobName, 'Navdeep Kamboz', 'Finance', 'Analyse Systems', 10);
    22  ELSIF(v_temp = 4) THEN
    23  v_JobName := 'Mathematician';
    24  insert into JobWorker values (demoseq.nextval, v_JobName, 'Paul Potts', 'Algebra and Data Handling', 'Teach Algebra', 4);
    25  ELSIF(v_temp = 5) THEN
    26  v_JobName := 'DB Administrator';
    27  insert into JobWorker values (demoseq.nextval, v_JobName, 'Christine Bleakley', 'Oracle, SQL, DB2', 'Granting User Privileges',
    9);
    28  ELSIF(v_temp = 6) THEN
    29  v_JobName := 'Dentist';
    30  insert into JobWorker values (demoseq.nextval, v_JobName, 'Edward Walker', 'Manager', 'General Checkups', 8);
    31  ELSIF(v_temp = 7) THEN
    32  v_JobName := 'Electrician';
    33  insert into JobWorker values (demoseq.nextval, v_JobName, 'Dave Panesar', 'Engineering', 'Examine Specifications', 3);
    34  ELSIF(v_temp = 8) THEN
    35  v_JobName := 'Cricketer';
    36  insert into JobWorker values (demoseq.nextval, v_JobName, 'Sachin Tendulkar', 'Batsman', 'Scoring Hundreds', 9);
    37  ELSIF(v_temp = 9) THEN
    38  v_JobName := 'Personal Trainer';
    39  insert into JobWorker values (demoseq.nextval, v_JobName, 'Brock Lesnar', 'Weights Dept', 'Train People on Weights', 5);
    40  ELSIF(v_temp = 10) THEN
    41  v_JobName := 'Area Manager';
    42  insert into JobWorker values (demoseq.nextval, v_JobName, 'Joe Hoffland', 'Midlands', 'Visit Stores and Examine', 2);
    43 
    44  END IF;
    45  v_temp := v_temp + 1;
    46  END LOOP;
    47  END;
    48  /
    PL/SQL procedure successfully completed.
    SQL> Select * from JobWorker WHERE Name = 'Joe Hoffland';
         JOBID JOBNAME              NAME                 DEPARTMENT                RESPONSIBILITIES               JOBRATING
            10 Area Manager         Joe Hoffland         Midlands                  Visit Stores and Examine       2
            20 Area Manager         Joe Hoffland         Midlands                  Visit Stores and Examine       2
            30 Area Manager         Joe Hoffland         Midlands                  Visit Stores and Examine       2
            40 Area Manager         Joe Hoffland         Midlands                  Visit Stores and Examine       2
            50 Area Manager         Joe Hoffland         Midlands                  Visit Stores and Examine       2
           120 Area Manager         Joe Hoffland         Midlands                  Visit Stores and Examine       2
           130 Area Manager         Joe Hoffland         Midlands                  Visit Stores and Examine       2
           140 Area Manager         Joe Hoffland         Midlands                  Visit Stores and Examine       2
         JOBID JOBNAME              NAME                 DEPARTMENT                RESPONSIBILITIES               JOBRATING
           970 Area Manager         Joe Hoffland         Midlands                  Visit Stores and Examine       2
           980 Area Manager         Joe Hoffland         Midlands                  Visit Stores and Examine       2
           990 Area Manager         Joe Hoffland         Midlands                  Visit Stores and Examine       2
          1000 Area Manager         Joe Hoffland         Midlands                  Visit Stores and Examine       2
    100 rows selected.
    SQL> SY.

  • Labview 2013 report generation toolkit word 2010 insert table problem

    Hi,
    I am currently evaluating LV2013 with respect to the report generation toolkit for use with word 2010. My Vi/program won't insert the correct table and gives me an error message. see below:-
    Exception occured in Microsoft Word: The requested member of the collection does not exist.Help Path is wdmain11.chm and context 25421 in NI_ReportGenerationToolkit.lvlib:Word_Insert_Table​.vi->NI_Word.lvclass:Append Text Table to Report.vi->Word Table save.vi
    I have since run the following word example.vi provided by NI within LV2013 office examples:- Growable table.vi. this gives me the same error!
    Exception occured in Microsoft Word: The requested member of the collection does not exist.Help Path is wdmain11.chm and context 25421 in NI_ReportGenerationToolkit.lvlib:Word_Insert_Table​.vi->NI_Word.lvclass:Append Text Table to Report.vi->Growable table.vi
    It would seem that regardless of my own Vi there is a fundamental problem in the office example vi.
    I have found examples of a similar problem in LV2011/2012 but the work around code doesn't seem to match the LV2013 vi's code for a direct replacement.
    Can anyone help/shed some light on this? 
    Thanks in advance,
    Dan.

    Because the upgrade of Word from 2007 to 2010 I needed to upgrade an existing application from LabVIEW 2009 to 2013. This didn't work because of the insert table error. I discovered that the problem is the vi called "Word_Insert_Table.vi" located in the ..Program Files (x86)\National Instruments\LabVIEW 2013\vi.lib\addons\_office\_wordsub.llb. There is a "Cut" command implemented, this command removes the created cell instead of clearing it. Therefore the table will be filled half and then returnes with an error. I have removed this command. I have posted the changed vi (LV 2013).
    Attachments:
    Word_Insert_Table.vi ‏30 KB

  • Insert into - problem

    I have a problem while executing an insert-statement from an ASP-script.
    The problem is, that a statement like :
    Insert into test(test1,test2) values('testing','testagain')
    inserts 2 identical records instead of just 1
    I'm working with Oracle 8i on win98
    Any solutions ?
    Jesper

    Hi,
    You please check the asp code whether the insert is inside a loop. Check whether are you calling the form again. You please check whether are you doing refresh for the same form.
    These are the possible places where these type of problem may occur.
    bye

  • DB2 (OS/390): Problems connecting to DB

    Hi,
    I try to set up a connection pool WL8.1 SP2 with the BEA DB2 Type 4 driver.
    I get an error message, that the DB could not be found. But I think there is a
    problem with creating the package on the DB2 Server. (Maybe the user has not enough
    privileges).
    Anyone an idea?

    Hi Zach,
    > I'm sorry for the formatting of the post.  Is there a particular way to use the code and quote tags?
    Don't worry, you did it right. It's just that the formatting was turned off for posts exceeding 2500 characters.
    Let's look at the error message:
    C *** ERROR => the connected user (SAPXT1) does not work with the right user/schema [dbslsdb.cpp 4780]
    C *** ERROR => application has to work with schema SAPR3 (dbs/ada/schema) [dbslsdb.cpp 4782]
    Well. appearently, the SAP profile parameter "dbs/ada/schema" says: "We use schema SAPR3", but the logon user (which equals the default schema for the NetWeaver work processes) is SAPXT1.
    Obviously, the solution is: when your data is stored in the SAPXT1 schema, change the profile parameter, otherwise change the logon data (XUSER key DEFAULT).
    best regards,
    Lars

  • Flash CFGRID Insert Row Problem

    I think others have posted similar issues, but I've been
    unable to find a resolution to it. I have a Flash grid in an
    Accordion page that I need users to be able to insert data into.
    Most of the time, the grid will be empty when the user enters data.
    I've tried using the picturebar insert button, I've tried using
    onClick="GridData.insertRow(mygrid);". I even tried a fairly
    extensive script that seemed to be a timer that would detect a
    double click to insert. None of these work well. The
    onClick="GridData.insertRow(mygrid);" is the best in that I only
    have to click a column field about 3 times before I can enter data
    in the field. Multiple clicks to activate the field is just not
    useable.

    Hi,
    Thanks for the reply, I have the same problem. The suggestion you gace did not work as it works only for flash grids. I am using an HTML grid.I just want to set a default value of OLST to the Client column. Please help!
    <cfgrid name = "FirstGrid"
    format="html"
    height="320"
    width="580"
    font="Tahoma"
    fontsize="12"
    query = "rsIncidentTypes"
    bgcolor="orange"
    selectmode="edit"
    selectcolor="teal"
    delete="true"
    insert="true"
    insertButton = "Insert a Row"
    deleteButton = "Delete selected row"
    onChange="FirstGrid.dataProvider.editField(FirstGrid.selectedIndex,'Client', 'OLST');"
    >

  • Inserting date problem

    hi,
    i want to insert the date into my emp table.
    my query is :
    INSERT INTO emp (empid,empname,creation_date)
    VALUES (1,'JOE','12/05/2007');
    i run this query in my oracle 10g Express edition.
    but it will throw the error like this
    ORA-01843:not a valid month.
    how to insert the date like this format in oracle 10g.
    please help me.
    Thanks in advance.

    I think it only causes a problem if you to_date('01/01/07', 'dd/mm/yyyy') - that returns '01/01/0007', whereas to_date('01/01/07', 'dd/mm/rrrr') returns '01/01/2007'.
    But, following on from all the y2k problems, who on Earth would NOT specify their years as a four digit number? Why rely on implicit conversions!
    I always use to_date('01/01/2007', 'dd/mm/yyyy') - explicitly stating my year in four digits, not two, and I've never had a problem.

  • Insert statement problem

    need help urgently,am useing microsoft access as my database,whenever i try to insert data into the table i have in my database it tells me syntax error in INSERT INTO statement.please how do i overcome this problem.my code is below.thanks in advance.
    '\n'
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.sql.*;
    public class NewCustomerRecord extends JFrame{
         private JTextField firstnameF,othernameF,phoneF,addressF,depositF,currentF,dateF;
         private JButton registerbutton;
         private Connection con;
         private Statement st;
         private ResultSet set;
         private PreparedStatement stat;
         public NewCustomerRecord(){
              //super(f,"",true);
              JPanel panel = new JPanel();
              panel.setLayout(null);
              JLabel firstL = new JLabel("First Name:");
              firstL.setBounds(5,15,80,20);
              panel.add(firstL);
              firstnameF = new JTextField();
              firstnameF.setBounds(70,15,100,20);
              panel.add(firstnameF);
              JLabel otherL = new JLabel("Other Names:");
              otherL.setBounds(175,15,80,20);
              panel.add(otherL);
              othernameF = new JTextField();
              othernameF.setBounds(255,15,100,20);
              panel.add(othernameF);
              JLabel phoneL = new JLabel("Phone No.:");
              phoneL.setBounds(5,40,80,20);
              panel.add(phoneL);
              phoneF = new JTextField();
              phoneF.setBounds(70,40,100,20);
              panel.add(phoneF);
              JLabel addressL = new JLabel("Address:");
              addressL.setBounds(185,40,80,20);
              panel.add(addressL);
              addressF = new JTextField();
              addressF.setBounds(255,40,100,20);
              panel.add(addressF);
              JLabel depositL = new JLabel("Deposit:");
              depositL.setBounds(5,65,60,20);
              panel.add(depositL);
              depositF = new JTextField();
              depositF.setBounds(70,65,100,20);
              panel.add(depositF);
              /*JLabel currentL = new JLabel("Current Bill:");
              currentL.setBounds(135,65,80,20);
              panel.add(currentL);
              currentF = new JTextField();
              currentF.setBounds(205,65,50,20);
              panel.add(currentF);*/
              JLabel dateL = new JLabel("Date:");
              dateL.setBounds(185,65,50,20);
              panel.add(dateL);
              dateF = new JTextField();
              dateF.setBounds(255,65,100,20);
              panel.add(dateF);
              registerbutton = new JButton("Register Customer");
              registerbutton.setBounds(115,100,145,20);
              registerbutton.addActionListener(new ActionListener(){
                   public void actionPerformed(ActionEvent e){
                        insertRecord();
                        dispose();
              registerbutton.setMinimumSize(new Dimension(50,20));
              panel.add(registerbutton);
              add(panel);
              setSize(400,200);
              setDefaultCloseOperation(EXIT_ON_CLOSE);
         public void insertRecord(){
              double bal=0.0;
              String s=depositF.getText();
              double dep = Double.parseDouble(s);
              bal+=dep;
              //String ss=dateF.getText();
              //short dd=Short.parseShort(ss);
              String ss=Double.toString(dep);
              String bb=Double.toString(bal);
              String fullName=firstnameF.getText()+"\t"+othernameF.getText();
              try{
                   Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
                   con=DriverManager.getConnection("jdbc:odbc:sparkletransaction","","");
                   String insert="INSERT parsonaltransaction(date,name,phone,addres,deposit,balance)";
                   insert=insert+" VALUES(?,?,?,?,?,?)";
                   stat=con.prepareStatement(insert);
                   stat.setString(1,dateF.getText());
                   stat.setString(2,fullName);
                   stat.setString(3,phoneF.getText());
                   stat.setString(4,addressF.getText());
                   stat.setString(5,ss);
                   stat.setString(6,bb);
                   stat.executeUpdate();
                   stat.close();
              catch(Exception e){
                   System.out.println(e);
         public static void main(String[] arg){
              new NewCustomerRecord().setVisible(true);
    }

    try changing
    "INSERT parsonaltransactionto
    "INSERT INTO parsonaltransactionEdit: Also, should that really be parsonal, or maybe personal, or maybe even personnel?

  • PHP/mySQL Insert/Update Problems

    I hope someone can help because I can't find anything online
    that is helping me with this problem. I can't get the Dreamweaver
    controls to work when coding a PHP insert or update record page. It
    looks like it creates the code correctly but when I put them out on
    my webserver and then fill out the form and click submit the page
    submits and tries to use a URL string of (null)/admin/index.php
    where index.php is the form page not the page I told it to redirect
    to. I don't know why the (null) value keeps getting inserted into
    the string either. The browser obviously can't find this URL so
    gives a page cannot be displayed screen and nothing get's inserted
    or updated in the mySQL database.
    Any help would be greatly appreciated. This problem is
    driving me crazy because I want to save time not having to hand
    code things. Below is a User Authentication page using the
    Dreamweaver controls that does the same thing when I try to
    login.

    tobyd wrote:
    > the page submits and tries to use a URL string of
    (null)/admin/index.php
    > where index.php is the form page not the page I told it
    to redirect to. I don't
    > know why the (null) value keeps getting inserted into
    the string either.
    The following two lines set the URL for login success and
    failure.
    > $MM_redirectLoginSuccess = "../admin_index.php";
    > $MM_redirectLoginFailed = "../admin/index.php";
    As you can see, they are relative paths, suggesting that the
    login form
    is in a different subfolder, but at the same level as
    admin_index.php
    and the admin folder. The (null) almost certainly comes from
    the fact
    that your login page is in the site root. If you're typing in
    the
    redirect filenames manually, use the Browse button instead.
    Dreamweaver
    should set the correct path for you.
    David Powers, Adobe Community Expert
    Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • Insert Table Problem

    I am actually really new to Dreamweaver MX, so I am not sure
    what I am doing wrong.
    At first , I did open that " Insert Table" icon, and filled
    out following values( Rows, Columns..),then Navigated to hard drive
    folder and selected a logo picture, but when I
    clicked OK, it gave me mistake message, it said not allowing
    to share files ??? And it closed the table dialog and the programm
    itself. So since then I cant open that " Insert Table" icon. Icon
    is actually active and I am not on Layout view. Does anybody know
    about that" sharing files" problem and how can I fix my problem?
    Thank you very much!

    Dreamweaver MX? Wow - that's old.
    Can you tell us the version #?
    On a PC, go to Program Files/Macromedia/Dreamweaver MX/ and
    find the
    dreamweaver.exe file. Right click, choose Properties, and
    then click on the
    Version tab - the version number is towards the top of that
    tab, like
    On a Mac, get info on the Dreamweaver App, and I believe it's
    right on that
    panel.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "krestik_2" <[email protected]> wrote in
    message
    news:fn9ges$btg$[email protected]..
    >I am actually really new to Dreamweaver MX, so I am not
    sure what I am
    >doing
    > wrong.
    > At first , I did open that " Insert Table" icon, and
    filled out following
    > values( Rows, Columns..),then Navigated to hard drive
    folder and selected
    > a
    > logo picture, but when I
    > clicked OK, it gave me mistake message, it said not
    allowing to share
    > files
    > ??? And it closed the table dialog and the programm
    itself. So since then
    > I
    > cant open that " Insert Table" icon. Icon is actually
    active and I am not
    > on
    > Layout view. Does anybody know about that" sharing
    files" problem and how
    > can I
    > fix my problem?
    > Thank you very much!
    >

  • Insert Bar Problem

    Using DW 8.0.2 on MAC OSX 10.5.4.
    Installed "Insert a QuickTime Movie" extension from Adobe
    Exchange using Ext. Manager. (extension worked)
    Following that my Insert Bar is now labeled 'Common' and has
    only the Common tab with only the first 4-5 icons. Same scenario in
    the 'menu' configuration. Attempts to customize show only the
    common objects available.
    Also can no longer insert layer from main menu.
    Have reinstalled DW 8 and updated to 8.0.2 with no change.
    How can I fix this???

    I'm pretty sure this is part of the preferences file. If you
    go to your Library->Preferences and search for the .plist file
    which has the name Dreamweaver in it you can drag that to the trash
    and then restart DW. It will take longer to restart after doing
    this because OSX will need to create a new preferences file, but
    this should solve problems with the menus.

  • Updating or inserting database problem

    Hi,
    I have a problem when i try to insert or update records within database from java, i m using ms access.
    I can retrive the data from the table but when i insert or update it , the code executes without any error but has no effect on the table.
    I would be thankful if u guyz help me out .
    The code is below :
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");//loading drivers
              Connection conn = DriverManager.getConnection("jdbc:odbc:client");
              Statement s = conn.createStatement();
              ResultSet rs = s.executeQuery("insert into client (name,hours,minutes) values ('ik',2,34)");
         /*     int c = s.executeUpdate("insert into client (name,hours,minutes) values ('ik',2,34)");
              rs.absolute(2);
              rs.updateString("Name","dla");
              rs = s.executeQuery("commit");*/
    rs.close();
    s.close();
    conn.close();

    Thanks for reply, i appreciate the help u guyz hav givin me
    they wer helpful upto some extent but the actual problem with
    my coding was that statment s variable is used with to different
    sql queries ,
    when i used s variable with a single query the base table was affected with the coding changes.
    Thanks once again guyz....!

  • Alignment/image insertion inTextArea  Problem

    can any one tell me how can I set the allignment for TextArea. And how to insert an image in TextArea.

    Can you tell me about Alignment in Simple TextArea not in JTextArea.I tried the Component class field ALIGNMENT_RIGHT LEFT OR CENTER, but can not solve this problem. can u help me.

Maybe you are looking for