ImportController Remove Column Mapping

Hello,

I have the following importer.

I would like to disable this feature as i am processing it via model in the “importData” method.

the customer wants to have this feature. It make sence becasue sometimes the customer will map wrong columns. in this case the database is in english while the CSV is in German.

Any help will be appreciated and many thanks in advance.

You want to disable the feature or you want it ? What is the question?

I want to disable this mapping feature so i can import the file as normal and map the columns in controller method.

@daft is there any possibility to do it?

Hi @ibrarartisan

It is possible with JSON… take a look at this option in the YAML configuration:

defaultFormatOptions:
    customJson: true

import:
    # ...

export:
    # ...

CSV would be very strict. It would have to meet an exact structure otherwise, it will import a bunch of junk data in the wrong places. JSON doesn’t have this problem since field names are included.

Thanks alot. It helps. I already implemented as json.