.CSV import into class

Author Message

Benjamin Litsani

Tuesday 14 December 2010 7:35:04 am

Hello, I'm starting with ez publish. I developed a website: http://www.cd.auf.org/cadastre/schoolbook/index.php/ (not yet finished)

But I am stubborn to a problem of importing data into a class already defined. I created a class in EZ Publish is called "establishment", I have a. csv file that data with the structure according to the class.

When I try to import this file using data_import, I get this error message: "EZ Attribute deosn't exit skipped. I searched the problem, but I have not found a solution.

So if you can help me by explaining how to make it work.

There is my .csv structure:

'nom_etablissement', 'nom_etablissement', 'description_etablissement', 'code_province', 'province', 'code_district', 'district', 'code_territoire', 'territoire', 'code_division', 'division_etablissement', 'code_sous_division', 'sous_division_etablissement', 'n_secope', 'regime_de_gestion', 'secteurs_enseignement', 'statut_d_occupation', 'milieu','date_de_creation'

the same with my custom class establishment

my class info:

Name:
Establishment
Id:
establishment
Description:
Model Object Name:
<nom_etablissement>

Name:
Establishment
Username:
establishment
Description:
Model Object Name:
<nom_etablissement>

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 02:16:53
Script start
Timing: Jan 18 2025 02:16:53
Module start 'layout'
Timing: Jan 18 2025 02:16:53
Module start 'content'
Timing: Jan 18 2025 02:16:54
Module end 'content'
Timing: Jan 18 2025 02:16:54
Script end

Main resources:

Total runtime0.7018 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0050 587.9063152.6250
Module start 'layout' 0.00500.0029 740.531339.4375
Module start 'content' 0.00780.6927 779.9688409.3828
Module end 'content' 0.70050.0012 1,189.35168.1875
Script end 0.7018  1,197.5391 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.4394160.0002
Check MTime0.00130.1896160.0001
Mysql Total
Database connection0.00080.115310.0008
Mysqli_queries0.531375.7064460.0115
Looping result0.00050.0650440.0000
Template Total0.544077.520.2720
Template load0.00240.345020.0012
Template processing0.541677.176620.2708
Template load and register function0.00030.038910.0003
states
state_id_array0.00090.130210.0009
state_identifier_array0.00070.106120.0004
Override
Cache load0.00200.2909250.0001
Sytem overhead
Fetch class attribute can translate value0.00100.136910.0010
Fetch class attribute name0.00090.131810.0009
XML
Image XML parsing0.00020.022910.0002
class_abstraction
Instantiating content class attribute0.00000.000710.0000
General
dbfile0.00150.2102100.0001
String conversion0.00000.001040.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/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 8
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs