HydrologicEngineeringCenter / HEC-FDA

Hydrologic Engineering Center - Flood Damage Analysis
MIT License
11 stars 2 forks source link

Occupancy descriptions are limited to 32 characters #1138

Open BrittCorley opened 2 months ago

BrittCorley commented 2 months ago

The name fields in 1.4.3 allowed 32 characters and the description fields in 1.4.3 allowed 64. Currently, 2.0 is failing to import occupancies when the file has a description more than 32 characters. Sometimes nothing imports and sometimes it's a partial import. The import screen stays blank instead of showing what was brought in.

If we aren't able to change the importer to allow for 64 characters, can we please make the whole import fail and throw an error letting the user know what the issue is?

Attaching URS curves. both are exactly the same but with different max characters in the description. length maybe max 37.txt length maybe max 32.txt

rnugent3 commented 2 months ago

@Brennan1994 this is a problem with the importer project.

Of course we can have very many characters in the description. It is just that Bob's code is choking on the description length.

rnugent3 commented 2 months ago

Example of long description successfully saved to the HEC-FDA Version 2.0 study database: image

rnugent3 commented 2 months ago

@BrittCorley can you please confirm that the files you provided import and export into and out of 1.4.3 successfully?

BrittCorley commented 2 months ago

yep they work image image