mod_import_csv

28 views
Skip to first unread message

Behrad Zari

unread,
May 18, 2013, 1:57:45 AM5/18/13
to zotoni...@googlegroups.com
I was trying to import CSV's with mod_import_csv, but it says cannot import csv file!

My CSV is as below (which is parsable with ecsv parser)

ATM NAME,ADDRESS,BRANCH  NAME,ATM TYPE,INSTAL DATE,TERMINAL ID
ALB_0054_NW,10.127.Y.Z,ãÑ<98>Òí <98>ÑÌ,NW,2001/12/11,00540054
ALB_0052_NW,10.123.Y.Z,ãÑ<98>Òí <98>ÑÌ,NW,2001/11/11,00540055


mod_import_csv is not verbose enough so that I know what it's complaining about, 
and I want to know if we can map the columns to edges of resources!?

@Marc !?

Behrad Zari

unread,
May 20, 2013, 2:28:13 AM5/20/13
to zotoni...@googlegroups.com
I found that there should be two name and category named columns, but still not successful!
I want to create two resources for each row and define an edge between them with automatic existing resource update.
How can I define this behavior!?

Andreas Stenius

unread,
May 20, 2013, 2:58:43 AM5/20/13
to Zotonic users
Generic tip for trouble shooting erlang code (as I don't know squat about mod_import_csv):

You can try to run it in the debugger (start with im() in the erlang shell ), then you need to load the modules that you want to be able to break/step into.
That usually gives a lot more context to the issue at hand than debug prints (and doesn't need recompilation).

More on the debugger in the Erlang docs here: http://erlang.org/doc/man/i.html#im-0




2013/5/20 Behrad Zari <beh...@gmail.com>
--
 
---
You received this message because you are subscribed to the Google Groups "Zotonic users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to zotonic-user...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

JRad

unread,
May 20, 2013, 12:36:23 PM5/20/13
to zotoni...@googlegroups.com
thanks Andreas


--
 
---
You received this message because you are subscribed to a topic in the Google Groups "Zotonic users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/zotonic-users/SrBLHICX0tU/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to zotonic-user...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages