ssossossossosso

Forums

Covering OroCRM topics, including community updates and company announcements.  Subscribe

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 2 months ago.

  • Creator
    Topic
  • #29810

    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
  • #29811

    Orban Florin
    Participant

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

    #29813

    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”

    #29814

    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.

    #29815

    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.

    #29816

    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.

    #29817

    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)

You must be logged in to reply to this topic.