English 中文(简体)
Import requirements from CSV file
原标题:

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?

问题回答

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

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.

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





相关问题
Import requirements from CSV file

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-...

Enterprise Architect Communication Diagrams question

I want to achieve something like this in Enterprise Architect s Communication Diagrams: start() ---------------- 1. create() ------------ ------------> | RGController | ---------------&...

Sparx Enterprise Architect conversion (from source to UML)

I need to make a UML class diagram for a project. I used Sparx Enterprise Architect in the past to generate source code from a diagram so I m using that. The project is complete so all of the code ...

Sparx Enterprise Architect for SQL Server modeling?

I have used MS SQL Server Management Studio for most of my database modeling to this point in my career. I am a database developer (not a DBA), but interested in the benefits with using Sparx systems ...

热门标签