Skip to content
This repository was archived by the owner on Jun 5, 2024. It is now read-only.
This repository was archived by the owner on Jun 5, 2024. It is now read-only.

illegal_argument_exception when importing multiselect attribute #87

@haelbichalex

Description

@haelbichalex

I have a Magento 2 store connected to the vue-storefront-api.
I created two products and created a multiselect attribute for testing purposes.

On one product I selected one option for the attribute and on the other one I selected multiple options.
Then I get this error when running yarn mage2vs import:

"statusCode":400,"response":"{\"error\":{\"root_cause\":[{\"type\":\"remote_transport_exception\",\"reason\":\"[hja_gcm][172.21.0.3:9300][indices:data/write/update[s]]\"}],\"type\":\"illegal_argument_exception\",\"reason\":\"mapper [color] of different type, current_type [long], merged_type [text]\"},\"status\":400}"},     
at /var/www/node_modules/mage2vuestorefront/src/adapters/nosql/elasticsearch.js:80:15,     
at respond (/var/www/node_modules/elasticsearch/src/lib/transport.js:327:9),     
at checkRespForFailure (/var/www/node_modules/elasticsearch/src/lib/transport.js:267:7),     
at HttpConnector.<anonymous> (/var/www/node_modules/elasticsearch/src/lib/connectors/http.js:165:7),     
at IncomingMessage.wrapper (/var/www/node_modules/lodash/lodash.js:4935:19),     
at IncomingMessage.emit (events.js:194:15),     
at endReadableNT (_stream_readable.js:1125:12),     
at process._tickCallback (internal/process/next_tick.js:63:19)]

When selection only one attribute option on both products or selecting multiple options on both, the error is not appearing.

Any hints would be appreciated! 👍

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions