Import requirements from CSV file

ぃ、小莉子 提交于 2019-12-07 15:02:02

问题


During import requirements from csv file I have a message:

Bad object type when creating new record of type ''

File I was trying to import:

GUID$Name$Notes$Scope
{BF467CF6-FF97-4dd4-894C-3F09E713678C}$NameOfReq$description$Public
{71B26F9A-5418-499e-B635-F2DB158D3FF1}$Requirement1$$Public
{0}$Requir1$blah$Public

First 2 (+header) lines becomes from existing requirements and there is no problem with import.
Last line should create a new object of requirement in enterprise architect, but there is a message mentioned above.

Any solution? How should proper file to create (import from csv file) a new requirements look like?


回答1:


As "Type" you must enter "Requirement" ... nothing else! And ensure that your separator is a comma ... otherwise the import also will not work.




回答2:


Sorry for reviving this old thread, but I lately had the same problem and google found me this topic. I would have been happy about more infos though, which I will therefor add now.

Solution:

  • Option 1: In your CSV, add a field "Type" with the value "requirement" for each entry
  • Option 2: In EA in your import-export-specification leave the type-filter empty

Reasons / understanding:

In your Import/Export-Specification there is the field "Types", which represents a type-filter. So only entries in the CSV that have the specified type will be imported, all others will be ignored. The import log will show "Bad object type when creating new record of type 'FOOBAR'" for the ignored record. If there is no type-field specified in the import-export-specification, EA will show the empty type '' in the import log (instead of 'FOOBAR').

I guess the same goes for exports, but I didn't try that.




回答3:


Indeed, including field "Type" in the CVS file does the job



来源:https://stackoverflow.com/questions/3021506/import-requirements-from-csv-file

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!