OroPlatform Forums

Covering OroPlatform topics, including community updates and company announcements.

Forums Forums OroPlatform OroPlatform – Installation/Technical Issues or Problems CSV import/export JobConfiguration

This topic contains 6 replies, has 3 voices, and was last updated by  Dima Makaruk 6 years, 5 months ago.

Starting from March 1, 2020 the forum has been switched to the read-only mode. Please head to StackOverflow for support.

  • Creator
    Topic
  • #35416

    Dima Makaruk
    Participant

    How is it possible to set csv delimiter to ; for an import job ?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Author
    Replies
  • #35417

    Orban Florin
    Participant

    Hello Dima
    I think you setup a custom delimiter in the batch_jobs.yml

    #35418

    Dima Makaruk
    Participant

    Hi Orban,

    i’ve tried this already.
    Unfortunately this does not work.

    [Symfony\Component\Config\Definition\Exception\InvalidConfigurationException]
    Unrecognized option “configuration” under “connector.jobs.my.job”

    #35419

    ishirko
    Participant

    Hi Dima,
    Looks like it’s not possible to change delimiter via configuration for now.
    You can try to override delimiter in your Context
    https://github.com/oroinc/platform/blob/master/src/Oro/Bundle/ImportExportBundle/Reader/CsvFileReader.php#L127

    Also, as I know, options for context can be passed via request:
    https://github.com/oroinc/platform/blob/master/src/Oro/Bundle/ImportExportBundle/Controller/ImportExportController.php#L205

    Hope that this information will help.

    #35420

    Dima Makaruk
    Participant

    Hi ishirko

    thank you for your answer.
    i’ve it a similar way.
    I thought there is more convenient way to configure the import/export.

    #35421

    Dima Makaruk
    Participant

    I’m importing via cli. The Context gets options from the message body. I haven’t found a clean way to set options in the message body.
    The PRE_CLI_IMPORT is produced in the command oro:import:file , whereby no options are set in the message body.

    #35422

    Dima Makaruk
    Participant

    Another problem is , that the writer in which is used in the PreImportMessageProcessorAbstract cann’t be configured at all.

    https://github.com/oroinc/platform/blob/7d8d9e5adaf1ecfbf6bd9877f03849875b095459/src/Oro/Bundle/ImportExportBundle/Async/Import/PreImportMessageProcessorAbstract.php#L135

Viewing 6 replies - 1 through 6 (of 6 total)

The forum ‘OroPlatform – Installation/Technical Issues or Problems’ is closed to new topics and replies.

Back to top