Data import extension and data null

Author Message

SEBBANE Alexandre

Thursday 06 November 2008 8:03:21 pm

How to import a content where sometime data dont exist

to expose my problèm, let's try a little explanation :

here is a article ( title, text , date1 , date2)
the data to import are

title1;bla bla bla; 12/12/206;13/12/2007 
title2;bla bla bla2;;1/12/2007 
title3;bla bla bla3; 2/12/206;10/12/2007 
title4;bla bla bla4; 1/12/206;3/12/2007 
title5;bla bla bla5; 7/12/206;22/12/2007 

how can i do to import the content n°2.

up to now, a data which is null is inserted with a value of 0 ( for a string ), 01/01/1970 for a date etc...

thanks for your answers

Paris, France

Grégory BECUE

Thursday 20 November 2008 9:44:05 am

Hi Alexandre,

What do you use to make your data importation ? You have a script or you use an extension import ?

Because i use a specific script and if i don't have a value for a birthday, the field will be empty ! i don't have this problem.

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 10:53:19
Script start
Timing: Jan 18 2025 10:53:19
Module start 'layout'
Timing: Jan 18 2025 10:53:19
Module start 'content'
Timing: Jan 18 2025 10:53:20
Module end 'content'
Timing: Jan 18 2025 10:53:20
Script end

Main resources:

Total runtime0.9642 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0061 589.0547152.6250
Module start 'layout' 0.00610.0045 741.679739.4453
Module start 'content' 0.01060.9519 781.1250523.9219
Module end 'content' 0.96260.0016 1,305.04698.1563
Script end 0.9642  1,313.2031 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.3600160.0002
Check MTime0.00140.1473160.0001
Mysql Total
Database connection0.00060.062310.0006
Mysqli_queries0.910994.4705540.0169
Looping result0.00060.0603520.0000
Template Total0.922295.620.4611
Template load0.00230.242120.0012
Template processing0.919995.400520.4599
Template load and register function0.00010.015610.0001
states
state_id_array0.00190.193610.0019
state_identifier_array0.00160.168620.0008
Override
Cache load0.00190.1993160.0001
Sytem overhead
Fetch class attribute can translate value0.00080.085920.0004
Fetch class attribute name0.00170.175030.0006
XML
Image XML parsing0.00370.387320.0019
class_abstraction
Instantiating content class attribute0.00000.000930.0000
General
dbfile0.00630.6508160.0004
String conversion0.00000.001240.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 11
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs