NCEAS / morpho

Morpho metadata editor
GNU General Public License v2.0
3 stars 1 forks source link

Open incomplete package doesn't work when user import a large data file #891

Closed mbjones closed 6 years ago

mbjones commented 6 years ago

Author Name: Jing Tao (Jing Tao) Original Redmine Issue: 4817, https://projects.ecoinformatics.org/ecoinfo/issues/4817 Original Date: 2010-02-19 Original Assignee: Jing Tao


Leslie Hook saved a data package when she imported a large size data file. Morpho failed to reopen it. After I used a small size data file to replace the original data file, i can open the same incomplete document which she sent to me.

When morpho loads a large size data file, it will show up a warning message that only part of data file will be shown, but no data will lose. I guess that the warning box messes up the process and cause some funny result.

mbjones commented 6 years ago

Original Redmine Comment Author Name: Jing Tao (Jing Tao) Original Date: 2010-02-22T17:56:44Z


I just copied the first 100 lines the data file into a new file. Now, the warning message for file size has gone. But still get the same error. So the reason is not the size of the file. I need to take a close look.

mbjones commented 6 years ago

Original Redmine Comment Author Name: Jing Tao (Jing Tao) Original Date: 2010-02-22T23:02:05Z


The problems is:

the number of data start line was not passed to next page on the method setPageData of TextImportEntity class. Since the number is not correct, morpho couldn't parse the data file and get the column number correctly.

After modifying the code, the bug was fixed.

mbjones commented 6 years ago

Original Redmine Comment Author Name: Redmine Admin (Redmine Admin) Original Date: 2013-03-27T21:28:13Z


Original Bugzilla ID was 4817