Failed to import models

Created on 3 February 2024, 11 months ago

Thank you for the great efforts on this project.
I've just tried ECA module and it's wonderful.
I downloaded some examples from https://ecaguide.org/library/ ,but when importing got this message:

Error message
The import failed due to the following reason: There were errors validating the config synchronization. Configuration <em class="placeholder">workflow.state.dummy_action_creation</em> depends on the <em class="placeholder">workflow.workflow.dummy_action</em> configuration that will not exist after import. Configuration <em class="placeholder">workflow.state.dummy_action_creation</em> depends on the <em class="placeholder">workflow.workflow.dummy_action</em> configuration that will not exist after import. 

I tried serveral of them but all failed and I don't have any site config synchronization.
Env: Drupal 10.1 PHP 8.2 , ECA 1.1.4 Modellers:BPMN.iO

Any suggestions? Thanks!

💬 Support request
Status

Active

Version

1.1

Component

User interface

Created by

🇨🇳China marcolam

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @marcolam
  • 🇩🇪Germany jurgenhaas Gottmadingen

    That model has some dependencies, that are not available on the site. Can you provide a link from where you downloaded that? The page should provide a list of those dependencies.

  • 🇨🇳China marcolam

    They are bpmn_io-eca_lib_0005.tar, and lib_0008,lib_0009,lib_0015,lib_0026, all showed the above message.

    I checked the xml files,but didn't find any "workflow.workflow.dummy_action" contexts, but I do have core workflows module and contrib module workflow installed.

    I also have one suggestion,would it possible to provide some preinstalled examples for ECA module. (like Rules Essentials module does)
    An example tells everything, it's much easier for user to learn and start building from it.

    I started building some tasks with ECA,some succeded and some didn't.
    The ecaguide.org docs don't tell you how to do a task(correction:the library does but failed to import), and finding useful infors from videos is too hard and time-consuming,an example would save a lot of time for the users and the module authors (making videos).

    Thanks again.

  • 🇩🇪Germany jurgenhaas Gottmadingen

    I'd like to reproduce this, but as stated in #2 I'd like a link to that download page where you found the model that outputs the error message in your original post.

  • 🇨🇳China marcolam

    I tried severals of them, all with errors,even the simplest one like this:

    https://ecaguide.org/library/simple/display_message_to_specific_user_rol...

  • 🇩🇪Germany jurgenhaas Gottmadingen

    Thanks for the link. And what exactly is the error message you're getting for this specific model import? Look, I can only help, if I have specific information.

  • 🇨🇳China marcolam

    Thank you,they are all with the same error like #1 post.

  • 🇩🇪Germany jurgenhaas Gottmadingen

    In that case, this is not an issue of the import of a new config entity, then the config of the Drupal site is invalid in the first place. I can't tell, how to repair that site, as that can be anything.

    I suggest you start with a fresh install of a Drupal site, then the import of ECA models will certainly work without any issues.

  • 🇩🇪Germany jurgenhaas Gottmadingen

    Looked into the error message again, and the fix may be as simple as using this command at the console: drush config:delete workflow.state.dummy_action_creation

  • 🇨🇳China marcolam

    Many thanks! I used the above command and imported all the models sucessfully.

  • Status changed to Fixed 10 months ago
  • 🇩🇪Germany jurgenhaas Gottmadingen

    Thanks for your feedback.

  • Automatically closed - issue fixed for 2 weeks with no activity.

  • 🇭🇺Hungary atomi

    Nem segített, sőt, le se tudott futni a javasolt Drush parancs:

    drush config:delete workflow.state.dummy_action_creation

    A teljes Drupal újratelepítés nem opció, ilyen javaslatot nem is kéne adni.

    Azzal sikerült megoldani, hogy az összes ECA modult kikapcsoltam a Drupal-ban, töröltem a Drupal cache-t, lefuttattam a cron-t, majd ismét bekapcsoltam az ECA modulokat. Ezután sikerültek az elmentett ECA model importálások.

Production build 0.71.5 2024