Book a Demo

Author Topic: CSV Import  (Read 4363 times)

Dorian Workman

  • EA User
  • **
  • Posts: 194
  • Karma: +0/-0
    • View Profile
CSV Import
« on: May 07, 2008, 09:28:58 am »
Has anyone had success importing a CSV file into EA?  I'm trying to import a list of requirements from Excel, without success.  These were my steps:

1. Format excel file into 3 columns, with columns headings of Name, Type, Notes.
2. Save as .csv file
3. In EA, right-click on the Requirements package and select CSV Import/Export
4. Create a new specification, with elements of Name, Type, Notes
5. Select my .csv file, hit Run

It fails, with error of Bad object type when creating record of type "   :(

Can anyone help please?

Thanks.
<a href="http://www.linkedin.com/in/dorianworkman" ><img src="http://www.linkedin.com/img/webpromo/btn_liprofile_blue_80x15.gif" width="80" height="15" border="0" alt="View Dorian Workman

mrf

  • EA User
  • **
  • Posts: 311
  • Karma: +0/-0
    • View Profile
Re: CSV Import
« Reply #1 on: May 07, 2008, 09:39:09 am »
I've found the best thing to do when learning CSV import is to

1. Create a mock set of elements in EA
2. Create a CSV specification with the fields you require
3. Export the mock package to CSV using the specification created in step 2 and inspect it to see what sort of values EA is expecting.
4. Modify your original CSV file to conform with the output generated in step 3.

PS: Try stripping your CSV of quotes (") and see if that makes a difference.
« Last Edit: May 07, 2008, 09:40:33 am by mfraser »
Best Regards,

Michael

[email protected]
"It is more complicated than you think." - RFC 1925, Section 2.8

Dorian Workman

  • EA User
  • **
  • Posts: 194
  • Karma: +0/-0
    • View Profile
Re: CSV Import
« Reply #2 on: May 07, 2008, 10:41:26 am »
Your advice to export first worked!  I was setting the 'Type' value incorrectly in my .csv file.  I was setting it to 'Functional', it needed to be set to 'Requirement' (i.e. the element type, duh!).

Thanks!   :D
<a href="http://www.linkedin.com/in/dorianworkman" ><img src="http://www.linkedin.com/img/webpromo/btn_liprofile_blue_80x15.gif" width="80" height="15" border="0" alt="View Dorian Workman