Book a Demo

Author Topic: CSV import fails for Flowchart symbols  (Read 5645 times)

Gomathi

  • EA User
  • **
  • Posts: 28
  • Karma: +0/-0
    • View Profile
CSV import fails for Flowchart symbols
« on: December 26, 2018, 09:15:58 pm »
I tried to import some flowchart element information in csv file to EA.

Code: [Select]
Name,Type
aaaaaa,FC_Process
bbbbbb,FC_Process
decision?,FC_Decision
cccccc,FC_Process
dddddd,FC_Process
eeeeee,FC_Process
ffffff,FC_Process

It is throwing the error - 'Bad object type or Profile metatype when creating new record of type " '
If I change the type to 'Requirement' instead of Flowchart elements, the import is happening without any issue.
Is CSV import not possible with FC elements?
Thanks in advance.

Arshad

  • EA User
  • **
  • Posts: 290
  • Karma: +21/-1
    • View Profile
Re: CSV import fails for Flowchart symbols
« Reply #1 on: December 26, 2018, 09:30:33 pm »
« Last Edit: December 26, 2018, 09:35:06 pm by Arshad »

Gomathi

  • EA User
  • **
  • Posts: 28
  • Karma: +0/-0
    • View Profile
Re: CSV import fails for Flowchart symbols
« Reply #2 on: December 26, 2018, 09:35:30 pm »
Hi Arshad,

I'm using CSV import - https://sparxsystems.com/enterprise_architect_user_guide/14.0/model_publishing/csvimport.html

I tried MDG plug-in. I'm able to import FC elements from excel file. But, the order of the elements is not preserved while importing.
So, I thought of experimenting with CSV.

Arshad

  • EA User
  • **
  • Posts: 290
  • Karma: +21/-1
    • View Profile
Re: CSV import fails for Flowchart symbols
« Reply #3 on: December 26, 2018, 10:35:28 pm »
Gomathi

In that case Map Tpye = Activity and Stereotype = StrategyMap::FC_Process 



It will work :)


Arshad
« Last Edit: December 26, 2018, 10:37:16 pm by Arshad »

Gomathi

  • EA User
  • **
  • Posts: 28
  • Karma: +0/-0
    • View Profile
Re: CSV import fails for Flowchart symbols
« Reply #4 on: December 26, 2018, 11:31:03 pm »
Thanks, Arshad!

Now, using CSV import, I'm able to import FC symbols.
But, when I tried StrategyMap::FC_Decision, it couldn't identify.
Where can I get similar information for the flow chart symbols? (I checked online, but couldn't find anything in the sparx website)

Also, the order of importing is again not in the way spreadsheet has. :(

steen.jensen

  • EA User
  • **
  • Posts: 181
  • Karma: +8/-1
    • View Profile
Re: CSV import fails for Flowchart symbols
« Reply #5 on: December 27, 2018, 11:07:04 am »
make a simple model with your elements and export it as csv with all columns, then you can see what stereotype and other things you need for import.
Often there is not so logical names and underscore and mix of uppercase & lowercase in those stereotypes names.

Arshad

  • EA User
  • **
  • Posts: 290
  • Karma: +21/-1
    • View Profile
Re: CSV import fails for Flowchart symbols
« Reply #6 on: December 27, 2018, 03:33:00 pm »
Hi Gomathi
It should work with StrategyMap::FC_Decision



For getting those information as Steen suggested you can do an CSV export and identifty the information.

  • When exporting  you should've Type , Stereotype and Profile Metatype columns as mandatory
  • Finally in the Stereotype column you should add the prefix from FQ Profile Metatype column as shown below
Before Merging


After Merging



HTH
Arshad

Gomathi

  • EA User
  • **
  • Posts: 28
  • Karma: +0/-0
    • View Profile
Re: CSV import fails for Flowchart symbols
« Reply #7 on: December 27, 2018, 10:01:16 pm »
Hi Arshad,

I had used Type as 'Activity' for decision also. That was the mistake. (Just started learning to use EA  :))
I found a type 'Decision' and when I used it, it is getting imported properly.
Thanks a lot!

Arshad

  • EA User
  • **
  • Posts: 290
  • Karma: +21/-1
    • View Profile
Re: CSV import fails for Flowchart symbols
« Reply #8 on: December 27, 2018, 10:32:45 pm »
Great  !