OroCRM Forums

Covering OroCRM topics, including community updates and company announcements.

Forums Forums OroCRM OroCRM – Programming Questions Export template error

This topic contains 1 reply, has 1 voice, and was last updated by  lapino 8 years, 6 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
  • #25053

    lapino
    Participant

    Hi,

    i’m trying to add import/export functionality to an entity, crm-application (v1.8).

    When I try to export template I have this error :
    “Processor with type “export_template” and alias “bga_sales_simplis_form” is not exist”
    “in vendor/oro/platform/src/Oro/Bundle/ImportExportBundle/Processor/ProcessorRegistry.php at line 168”

    Processor is configured in importexport.yml :

    bga_sales.importexport.processor.export_template.simplis_form:
    parent: oro_importexport.processor.export_abstract
    calls:
    - [setDataConverter, [@bga_sales.importexport.template_fixture.data_converter.simplis_form]]
    tags:
    - { name: oro_importexport.processor, type: export_template, entity: %bga_sales.simplis_form.entity.class%, alias: bga_sales_simplis_form }

    Button in Template :

    {% include 'OroImportExportBundle:ImportExport:buttons.html.twig' with {
    entity_class: entity_class,
    exportProcessor: 'bga_sales_simplis_form',
    exportTemplateProcessor: 'bga_sales_simplis_form',
    importProcessor: 'bga_sales_simplis_form.add_or_replace',
    importTitle: 'oro.importexport.import.entity'|trans({'%entityName%': 'bga.sales.simplis_form.entity_plural_label'|trans}),
    dataGridName: gridName
    } %}

    Something is missing ?

    When I var_dump $this->processorsByEntity in ProcessorRegistry class near line 168 (exception thrown) my entity is not registered. Action is required to register a processor ?

Viewing 1 replies (of 1 total)
  • Author
    Replies
  • #25054

    lapino
    Participant

    I’ve found the solution :
    “importexport.yml” was not loaded at all.

    File must be loaded like in AccountBundle :


    public function load(array $configs, ContainerBuilder $container)
    {
    $configuration = new Configuration();
    $this->processConfiguration($configuration, $configs);

    $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
    $loader->load('services.yml');
    <b>$loader->load('importexport.yml');</b>
    }

Viewing 1 replies (of 1 total)

The forum ‘OroCRM – Programming Questions’ is closed to new topics and replies.

Back to top