DMXzone Data Importer Support Product Page

Can´t import

Reported 07 Sep 2016 00:59:09
2
have this problem
07 Sep 2016 00:59:09 Andres Gonzalez Michaca posted:
Hello I've tried to import but I can't.
I followed the example in the video.

I got this error all the time, and I have verified the numbers of fields and the name of the headers and nothing:

Internal Server Error 500

{code: 0, file: "/Users/agmichaca/Developments/admin.darraz/dmxConnectLib/modules/import.php",…}
code
:
0
file
:
"/Users/agmichaca/Developments/admin.darraz/dmxConnectLib/modules/import.php"
line
:
38
message
:
"array_combine(): Both parameters should have an equal number of elements"
trace
:
"#0 [internal function]: exception_error_handler(2, 'array_combine()...', '/Users/agmichac...', 38, Array)↵#1 /Users/agmichaca/Developments/admin.darraz/dmxConnectLib/modules/import.php(38): array_combine(Array, Array)↵#2 /Users/agmichaca/Developments/admin.darraz/dmxConnectLib/lib/App.php(159): modules\import->csv(Object(stdClass), 'csvImport1')↵#3 /Users/agmichaca/Developments/admin.darraz/dmxConnectLib/lib/App.php(128): lib\App->execSteps(Object(stdClass))↵#4 /Users/agmichaca/Developments/admin.darraz/dmxConnectLib/lib/App.php(98): lib\App->execSteps(Array)↵#5 /Users/agmichaca/Developments/admin.darraz/dmxConnectLib/lib/App.php(71): lib\App->exec(Object(stdClass))↵#6 /Users/agmichaca/Developments/admin.darraz/dmxConnect/api/Categories/importCSV.php(214): lib\App->define('{\n "meta": {\n ...')↵#7 {main}"

Replies

Replied 07 Sep 2016 06:19:05
07 Sep 2016 06:19:05 Teodor Kuduschiev replied:
What type of file are you importing and are you sure its fields are the same number as the ones in the Database?
Replied 07 Sep 2016 14:13:00
07 Sep 2016 14:13:00 Andres Gonzalez Michaca replied:
It's a CSV and the fields are the same that the DB.

Response:
{"code":0,"file":"\/Users\/agmichaca\/Developments\/admin.darraz\/dmxConnectLib\/modules\/import.php","line":38,"message":"array_combine(): Both parameters should have an equal number of elements","trace":"#0 [internal function]: exception_error_handler(2, 'array_combine()...', '\/Users\/agmichac...', 38, Array)\n#1 \/Users\/agmichaca\/Developments\/admin.darraz\/dmxConnectLib\/modules\/import.php(38): array_combine(Array, Array)\n#2 \/Users\/agmichaca\/Developments\/admin.darraz\/dmxConnectLib\/lib\/App.php(159): modules\\import->csv(Object(stdClass), 'csvImport1')\n#3 \/Users\/agmichaca\/Developments\/admin.darraz\/dmxConnectLib\/lib\/App.php(128): lib\\App->execSteps(Object(stdClass))\n#4 \/Users\/agmichaca\/Developments\/admin.darraz\/dmxConnectLib\/lib\/App.php(98): lib\\App->execSteps(Array)\n#5 \/Users\/agmichaca\/Developments\/admin.darraz\/dmxConnectLib\/lib\/App.php(71): lib\\App->exec(Object(stdClass))\n#6 \/Users\/agmichaca\/Developments\/admin.darraz\/dmxConnect\/api\/Categories\/importCSV.php(279): lib\\App->define('{\\n  \"meta\": {\\n ...')\n#7 {main}"}



Replied 07 Sep 2016 14:21:03
07 Sep 2016 14:21:03 Teodor Kuduschiev replied:
The error says they are not equal.
Can you please check of your csv contains header information?
Replied 07 Sep 2016 14:22:50
07 Sep 2016 14:22:50 Andres Gonzalez Michaca replied:
The CSV has no header
Replied 07 Sep 2016 14:24:09
07 Sep 2016 14:24:09 Teodor Kuduschiev replied:
Please send me a screenshot of your database structure as well as please send me your csv file to:
Replied 09 Sep 2016 01:59:47
09 Sep 2016 01:59:47 Andres Gonzalez Michaca replied:
Send it yesterday!

Reply to this topic