ssossossosso

Forums

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

This topic contains 1 reply, has 1 voice, and was last updated by  lapino 1 year, 9 months ago.

  • Creator
    Topic
  • #13290

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

    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)

You must be logged in to reply to this topic.