CSV-Import error Required mapping key "item" is missing or contains no array
Forum rules
Always add your TYPO3, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Always add your TYPO3, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
CSV-Import error Required mapping key "item" is missing or contains no array
Hello,
I set up a cronjob in Typo3 for the csv import. If I don't specify an individual mapping, the import works without any problems. However, if I use my own mapping, this error always appears:
Execution of task "Aimeos Shop scheduler (aimeos)" failed with the following message: Required mapping key "item" is missing or contains no array.
I use the standard mapping from the documentation in the typoscript configuration field of the scheduler:
Does anyone have any advice as to what the error is?
Thanks & regards!
I set up a cronjob in Typo3 for the csv import. If I don't specify an individual mapping, the import works without any problems. However, if I use my own mapping, this error always appears:
Execution of task "Aimeos Shop scheduler (aimeos)" failed with the following message: Required mapping key "item" is missing or contains no array.
I use the standard mapping from the documentation in the typoscript configuration field of the scheduler:
Code: Select all
controller.common.product.import.csv.mapping = Array (
[item] => Array
(
[0] => product.code
[1] => product.label
[2] => product.type
[3] => product.status
)
[text] => Array
(
[4] => text.type
[5] => text.content
[6] => text.type
[7] => text.content
)
[media] => Array
(
[8] => media.url
)
[price] => Array
(
[9] => price.currencyid
[10] => price.quantity
[11] => price.value
[12] => price.taxrate
)
[attribute] => Array
(
[13] => attribute.code
[14] => attribute.type
)
[product] => Array
(
[15] => product.code
[16] => product.lists.type
)
[property] => Array
(
[17] => product.property.value
[18] => product.property.type
)
[catalog] => Array
(
[19] => catalog.code
[20] => catalog.lists.type
)
)
Thanks & regards!
Re: CSV-Import error Required mapping key "item" is missing or contains no array
This is not valid TypoScript:
Don't mix PHP examples from the docs with TypoScript configuration from TYPO3. A valid mapping in TypoScript would be:
Code: Select all
controller.common.product.import.csv.mapping = Array (
Code: Select all
controller.common.product.import.csv.mapping {
item {
0 = product.code
1 = product.label
2 = product.type
3 = product.status
}
# more mappings
}
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
Re: CSV-Import error Required mapping key "item" is missing or contains no array
Thank you for your answear - it works now.