View Issue Details

IDProjectCategoryView StatusLast Update
0000757HeurekaGeneralpublic2025-05-02 09:59
Reporteradmin Assigned Toadmin  
PrioritynormalSeverityminorReproducibilityN/A
Status resolvedResolutionfixed 
Fixed in Version2.23.1 
Summary0000757: User Submitted Report
DescriptionEmail from: Bugtracker Heureka <bugtracker.heureka@slu.se>

Originally sent by: Benjamin Forsmark<benjamin.forsmar@sodra.com>

Error during import of stand register created from automatisk skogsöversikt based on remote sensing data.

--- Exception ---
System.InvalidOperationException: The given value of type String from the data source cannot be converted to type nvarchar of the specified target column.

--- Stack Trace ---
   at Slu.Heureka.DomainLayer.TreeListSimulation.TreeSimulatorForStandRegister.Simulate(Int32 standRegisterId, String areaDescription, Double plotArea, Int32 numberOfPlots, Int32 maxNbTypeTrees, Double corrFactorWeight, String& infoMessage, Boolean ignoreImportedHeightsForYoungStands)
   at Slu.Heureka.DomainLayer.Import.StandRegister.UI.SimulateTreeDialog._okButton_Click(Object sender, EventArgs e)
TagsNo tags attached.
ProductGeneral

Activities

osskyn

2025-05-02 09:59

administrator   ~0000644

This error is caused by invalid string length and the only string input is the areaDescription. More detailed error messages when attempting to use invalid names have already been implemented, the user now receives an error like:

Inner Exception:
Cannot set column 'Description'. The value violates the MaxLength limit of this column.

Issue History

Date Modified Username Field Change
2025-02-27 18:30 admin New Issue
2025-05-02 09:57 osskyn Assigned To => osskyn
2025-05-02 09:57 osskyn Status new => assigned
2025-05-02 09:57 osskyn Assigned To osskyn => admin
2025-05-02 09:59 osskyn Status assigned => resolved
2025-05-02 09:59 osskyn Resolution open => fixed
2025-05-02 09:59 osskyn Fixed in Version => 2.23.1
2025-05-02 09:59 osskyn Note Added: 0000644