Ticket #317 (closed: repoened)

Opened 11 years ago

Last modified 11 years ago

Application crashed when converting 2 models consecutively

Reported by: joeh Owned by: administrator
Priority: normal Milestone: Ecopath 6: build 6.0.7
Component: Database / Import Version:
Severity: minor Keywords:
Cc:

Description

How to reproduce:

  1. Select Georgia Strait model to convert
  2. After the conversion, click Back button in the Conversion Wizard
  3. Select Tampa Bay model to convert

Observed:
Application crashed (See exception detail below)

System.Data.ConstraintException? was unhandled

Message=Column 'ScenarioID, EcopathGroupID' is constrained to be unique. Value '1, 1' is already present.
Source=System.Data
StackTrace?:

at System.Data.UniqueConstraint?.CheckConstraint?(DataRow? row, DataRowAction? action)
at System.Data.DataTable?.RaiseRowChanging?(DataRowChangeEventArgs? args, DataRow? eRow, DataRowAction? eAction, Boolean fireEvent)
at System.Data.DataTable?.SetNewRecordWorker?(DataRow? row, Int32 proposedRecord, DataRowAction? action, Boolean isInMerge, Int32 position, Boolean fireEvent, Exception& deferredException)

...

Change History

comment:1 Changed 11 years ago by jeroens

Sorry Sherman that I grabbed this one. This bug was too easy to fix.

Fixed after build 6.0.3.3

comment:2 Changed 11 years ago by carieh

Hey, this one is fixed, I just wanted to confirm that if you click back and select another model BOTH will get imported/transfered to version 6. I just tried it with 3 models and I got them all to load by doing this way. They were all imported correctly. Just wanted you to know this. You can close this bug once you read this....After you are finished reading this message, it will self destruct (just kidding)

comment:3 Changed 11 years ago by jeroens

Yes, this is as intended. The user can keep converting until happy. Only the model converted last will get opened when the dialog is closed.

Note: See TracTickets for help on using tickets.