MonarcAppFO icon indicating copy to clipboard operation
MonarcAppFO copied to clipboard

Issue when importing risk analysis

Open hericius opened this issue 6 years ago • 1 comments

Hi,

When trying to import risk analysis exported from an other instance of Monarc, the following error message appears and the import failed:

Une erreur est survenue sur api/client-anr/2/instances/import : Entity of type MonarcFO\Model\Entity\Threat is missing an assigned ID for field 'uuid'. The identifier generation strategy for this entity requires the ID field to be populated before EntityManager#persist() is called. If you want automatically generated identifiers instead you need to adjust the metadata mapping accordingly. (500)

I'm using the latest version of Monarc.

Import failed with JSON not with BIN format.

hericius avatar Jun 06 '19 06:06 hericius

I'm wondering if the two issues are linked... (https://github.com/monarc-project/MonarcAppFO/issues/163) Seems the missing uuid field in Threats table is the common point. uuid field exist for Threat table in _cli database but not in _common database.

DR59 avatar Jun 07 '19 11:06 DR59

Should be corrected for a long time.

ruslanbaidan avatar Jul 28 '23 13:07 ruslanbaidan