Applies to: V2.1.x,V2.2.x,V3.0.x,V3.1.x,V3.2.x,V3.3.x,V4.0.x,V4.1.x,V4.2.x,V4.3.x
Applicable versions
All versions of the data import and export tools.
Problem description
Table data exported with OBDUMPER cannot be imported again:
-
Create
testand insert data.
-
Export the data with OBDUMPER.

-
Inspect the exported data. The
birthdayfield is empty.
-
Create
test2with the same schema.
-
Import the data with OBLOADER.

-
The import fails.

-
The error log shows that a null value cannot be inserted into a non-nullable column.


Cause
The date value in test is 0000-00-00 00:00:00, which is not a valid date. Export therefore converts it to null by default.
Solution
Use a control file to resolve the issue.
-
Define the following control file to fill an empty value in this column with '0000-00-00 00:00:00'.

-
Specify the control file during import. For details, see Define a control file.
