Error on Import

Permalink Browser Info Environment
Receiving this message upon import. Odd thing is, some products import and they look fine. When I go back it wants to continue the import, and it imports a few more, then stops.

mysqli error: [1054: Unknown column 'Array' in 'field list'] in EXECUTE("insert into CoreCommerceProducts (prName, prDescription, prRequiresShipping, prPhysicalGood, prQuantity, prMinimumPurchaseQuantity, prQuantityUnlimited, prQuantityAllowNegative, prStatus, prPrice, prSpecialPrice, prWeight, prWeightUnits, prDimL, prDimW, prDimH, prDimUnits, prRequiresTax, prUseTieredPricing, prRequiresLoginToPurchase, prShippingModifier, prLanguage, prDateAdded) values ( Array, '', 0, 1, 0, 1, '1', 0, 1, '0', 0, NULL, NULL, 0, 0, 0, NULL, 1, 0, 0, NULL, NULL, '2016-08-26 16:22:15')")

Type: Discussion
Status: In Progress
TeKnoZiz
View Replies:
tbcrowe replied on at Permalink Reply
tbcrowe
It looks to me like some of the products in your XML file have multiple "name" tags. There should only be one name per product.
TeKnoZiz replied on at Permalink Reply 1 Attachment
TeKnoZiz
Looked through the file and I can't find any instances of that. Can you take a quick peek at my import file and see if there is anything obviously wrong?
tbcrowe replied on at Permalink Reply
tbcrowe
Ah. I reviewed the XML file. The problem is that some of the products have an empty name tag. For example, search for the product with the product_number HMHMUM674. You'll need to add a name for those products.
TeKnoZiz replied on at Permalink Reply
TeKnoZiz
Well, THAT could be an issue. Seems as though some of the products have numbers and latin names and descriptions but no names. Can't use a placeholder either. If we are importing based on product number do we HAVE to have a name? If so, is there any way to bypass? I will check with the client to see if there is a work around. Thanks!
tbcrowe replied on at Permalink Reply
tbcrowe
You could also remove the empty "name" tags. The problem is that the tag is present but empty.
TeKnoZiz replied on at Permalink Reply
TeKnoZiz
Ohh, I can do that! Thanks!
TeKnoZiz replied on at Permalink Reply
TeKnoZiz
Well that did the trick, and the client is filtering out the records with no names, so it's a win-win. Thanks!
tbcrowe replied on at Permalink Reply
tbcrowe
You're welcome. I'm glad we were able to sort this out.

concrete5 Environment Information

# concrete5 Version
5.6.3.4

# concrete5 Packages
Accordion Menu (2.0), Advanced Forms (1.13.2), Dashboard Maximizer (2.0.4), Data Display (2.7.1.4), eCommerce (2.8.17), eCommerce Import (2.4.11), Flowplayer Free (1.2.1), Foundation 5 (1.6.0), List files from set (1.0.4), Magic Data (2.10.7), Magic Data Commerce (1.4.7), Magic Data Symbols1 (2.7.15), Magic Data Templates1 (2.3.1), Page Auto Redirect (2.0), Pro Blog (12.4.4), Register User Pro (1.3.13), tnSpacer (1.3).

# concrete5 Overrides
blocks/autonav, blocks/content, blocks/ff_login, blocks/formidable, blocks/jb_register, blocks/list_files_from_set, blocks/orbit_image_slider, blocks/orbit_slider, blocks/page_list, blocks/problog_list, blocks/product, blocks/product_list, blocks/search, elements/orders, elements/product, js/formatter.js, js/formatter.min.js, js/jquery.formatter.js, js/jquery.formatter.min.js, js/scale.fix.js, languages/ar, languages/cs_CZ, languages/da_DK, languages/de_DE, languages/el_GR, languages/es_AR, languages/es_ES, languages/es_MX, languages/es_PE, languages/fa_IR, languages/fi_FI, languages/fr_FR, languages/it_IT, languages/ja_JP, languages/nb_NO, languages/nl_NL, languages/pt_PT, languages/ro_RO, languages/ru_RU, languages/sk_SK, languages/sl_SI, languages/sv_SE, languages/tr_TR, languages/vi_VN, languages/zh_TW, single_pages/blogsearch.php, themes/foundation_5

# concrete5 Cache Settings
Block Cache - Off
Overrides Cache - Off
Full Page Caching - Off

# Server Software
Apache

# Server API
apache2handler

# PHP Version
5.6.10

# PHP Extensions
apache2handler, bcmath, bz2, calendar, Core, ctype, curl, date, dom, ereg, exif, fileinfo, filter, ftp, gd, gettext, hash, iconv, imagick, imap, intl, json, ldap, libxml, mbstring, mcrypt, mysql, mysqli, mysqlnd, openssl, pcre, PDO, pdo_mysql, pdo_pgsql, pdo_sqlite, pgsql, Phar, posix, Reflection, session, SimpleXML, soap, sockets, SPL, sqlite3, standard, tokenizer, wddx, xml, xmlreader, xmlwriter, xsl, yaz, zip, zlib.

# PHP Settings
max_execution_time - 30
log_errors_max_len - 1024
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - 60
max_input_vars - 1000
memory_limit - 128M
post_max_size - 32M
sql.safe_mode - Off
upload_max_filesize - 32M
ldap.max_links - Unlimited
mysql.max_links - Unlimited
mysql.max_persistent - Unlimited
mysqli.max_links - Unlimited
mysqli.max_persistent - Unlimited
pcre.backtrack_limit - 1000000
pcre.recursion_limit - 100000
pgsql.max_links - Unlimited
pgsql.max_persistent - Unlimited
session.cache_limiter - nocache
session.gc_maxlifetime - 7200
soap.wsdl_cache_limit - 5

Browser User-Agent String

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You may not request a refund that is not currently owned by you.