Hi!
When I'm using IMPORT with INSERT_UPDATE I sometimes get
SQL0100W No row was found for FETCH, UPDATE or DELETE; or the result of a
query is an empty table.
I'm not sure why this happens. The problem is that I get rejected rows
because of this.
Best regards,
Kovi
--
-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-
| In A World Without Fences Who Needs Gates? |
| Experience Linux. |
-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~- 4 4931
This is what I see for the IMPORT output:
SQL3150N The H record in the PC/IXF file has product "DB2 02.00", date
"20061111", and time "121511".
SQL3153N The T record in the PC/IXF file has name
"C:\MBS\HIPER\V ERSION\..\REPLI CATION\OUT\IDNA PLAFAKTURA.I", qualifier "",
and
source " ".
SQL3109N The utility is beginning to load data from file
"D:\MBS\HIPER\V ERSION\SERVER\R EPLIKACIJA\CENT \IDNAPLAFAKTURA .IXF".
SQL0100W No row was found for FETCH, UPDATE or DELETE; or the result of a
query is an empty table. SQLSTATE=02000
SQL3185W The previous error occurred while processing data from row "3" of
the input file.
SQL0100W No row was found for FETCH, UPDATE or DELETE; or the result of a
query is an empty table. SQLSTATE=02000
SQL3185W The previous error occurred while processing data from row "4" of
the input file.
SQL3110N The utility has completed processing. "6" rows were read from
the
input file.
SQL3221W ...Begin COMMIT WORK. Input Record Count = "6".
SQL3222W ...COMMIT of any database changes was successful.
SQL3149N "6" rows were processed from the input file. "0" rows were
successfully inserted into the table. "2" rows were rejected.
Number of rows read = 6
Number of rows skipped = 0
Number of rows inserted = 0
Number of rows updated = 4
Number of rows rejected = 2
Number of rows committed = 6
Strange things are the numbers (6 read, 2 rejected and 6 commited).
I have to say that the table I was importing to was not empty.
Best regards,
Kovi
--
-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-
| In A World Without Fences Who Needs Gates? |
| Experience Linux. |
-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-
Gregor Kovač wrote:
This is what I see for the IMPORT output:
SQL3150N The H record in the PC/IXF file has product "DB2 02.00", date
"20061111", and time "121511".
SQL3153N The T record in the PC/IXF file has name
"C:\MBS\HIPER\V ERSION\..\REPLI CATION\OUT\IDNA PLAFAKTURA.I", qualifier "",
and
source " ".
SQL3109N The utility is beginning to load data from file
"D:\MBS\HIPER\V ERSION\SERVER\R EPLIKACIJA\CENT \IDNAPLAFAKTURA .IXF".
SQL0100W No row was found for FETCH, UPDATE or DELETE; or the result of a
query is an empty table. SQLSTATE=02000
SQL3185W The previous error occurred while processing data from row "3"
of the input file.
SQL0100W No row was found for FETCH, UPDATE or DELETE; or the result of a
query is an empty table. SQLSTATE=02000
SQL3185W The previous error occurred while processing data from row "4"
of the input file.
SQL3110N The utility has completed processing. "6" rows were read from
the
input file.
SQL3221W ...Begin COMMIT WORK. Input Record Count = "6".
SQL3222W ...COMMIT of any database changes was successful.
SQL3149N "6" rows were processed from the input file. "0" rows were
successfully inserted into the table. "2" rows were rejected.
Number of rows read = 6
Number of rows skipped = 0
Number of rows inserted = 0
Number of rows updated = 4
Number of rows rejected = 2
Number of rows committed = 6
Strange things are the numbers (6 read, 2 rejected and 6 commited).
I have to say that the table I was importing to was not empty.
Best regards,
Kovi
I've solved this strange problem.
There was a unique index on the target table that does not exists on source
table and dropping the unique index solved the problem.
Well, the docs say
( http://publib.boulder.ibm.com/infoce...r0008304.htm):
INSERT_UPDATE
Adds rows of imported data to the target table, or updates existing rows
(of the target table) with matching primary keys.
But this is not the case. Is there a bug in DB2 or documentation?
Best regards,
Kovi
--
-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-
| In A World Without Fences Who Needs Gates? |
| Experience Linux. |
-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-
could it be that there is a program at work while your are doing your
load?
eg.
load checks existence of row A
row A exists -load will do an update
program X deletes row A
load performs update -error 100, row rejected www.spaceboot.eu wrote:
>
could it be that there is a program at work while your are doing your
load?
eg.
load checks existence of row A
row A exists -load will do an update
program X deletes row A
load performs update -error 100, row rejected
No, becuase the program doing the IMPORTs is the ony one in out applcation
doing changes to those tables.
--
-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-
| In A World Without Fences Who Needs Gates? |
| Experience Linux. |
-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~- This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Phil |
last post by:
Hi,
I don't understand this strange behaviour:
I compile this code :
#include <Python.h>
#include"Numeric/arrayobject.h"
static PyObject *
|
by: Paul Rubin |
last post by:
That's what the Python style guides advise. They don't seem to like
def frob(x):
import re
if re.search('sdfxyz', x): ...
instead preferring that you pollute your module's global namespace
with the names of all your imports. What's the point of that? It
gets worse when you want to do something like
|
by: Funduk |
last post by:
Hello,
So I've been playing with Python and Pygame for a while and I decided
I wanted to make a real executable so I could send that stuff over to
my friends to show off my <sarcasm>maad skillz</sarcasm>.
Everything was going great I went and got all the newest software
(including Distutils and PY2EXE) and read the docs on making a setup
py.
|
by: Joseph Macari |
last post by:
I recently installed Office2003 on my computer. I had imported (not linked)
a couple of tables from an Access 2000mdb into an Access 2003mdb. I had
composed various queries and forms with these imported tables...saved the
2003mdb numerous times without incident. I was working on a form with this
imported data (not linked) and all of a sudden the data just disapeared
(??)....i.e., the data in the two tables was empty!!! No problem;...
|
by: Henryk |
last post by:
I have some very simple code fragment:
short int n1, n2;
....
n1 += n2;
I get an warning from VS2003 - VS2005: warning C4244: '+=' : conversion
from 'int' to 'short', possible loss of data
n1 = n1 + n2;
| |
by: Robbie Hatley |
last post by:
I'm getting a strange warning at work when I compile any file in our
product that contains a deque of a particular struct. I don't understand
this warning, so I'm not sure if this is a Microsoft Windows issue, or
a C++ issue, so I'm posting it both to a Windows group and to a C++
group.
My OS is Windows 2000, and my compiler is Visual C++ 6.0.
The warning I'm getting is this:
|
by: mdsteele |
last post by:
My understanding of the __future__ statement is that you may say
something like:
from __future__ import foo, bar
to enable more than one feature. However, this does not seem to be
working properly in 2.5; it behaves as expected when typed into the
interactive interpreter, but not when it is in a module. When I try to
import the following module:
|
by: robert |
last post by:
I get python crashes and (in better cases) strange Python exceptions when (in most cases) importing and using cookielib lazy on demand in a thread.
It is mainly with cookielib, but remember the problem also with other imports (e.g. urllib2 etc.).
And again very often in all these cases where I get weired Python exceptions, the problem is around re-functions - usually during re.compile calls during import (see some of the exceptions below). But...
|
by: Chris Peters |
last post by:
Hi,
I'm using some Fortran 77 code together with C, and the compiler is giving
me some strange warnings. Can anyone help explain what's going on? The
code runs just fine.
1)
Fortran code
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, well explore What is ONU, What Is Router, ONU & Routers main usage, and What is the difference between ONU and Router. Lets take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing, and deploymentwithout human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupr who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |