ODM2 / ODM2DataSharingPortal

A Python-Django web application enabling users to upload, share, and display data from their environmental monitoring sites via the app's ODM2 database. Data can either be automatically streamed from Internet of Things (IoT) devices, manually uploaded via CSV files, or manually entered into forms.
BSD 3-Clause "New" or "Revised" License
31 stars 8 forks source link

Error inputting macroinvertebrate data #714

Open HeatherBrooks opened 5 months ago

HeatherBrooks commented 5 months ago

Reported through the WikiWatershed contact form by an individual from the NatureBridge Yosemite organization. Background info, in case it's relevant: The NatureBridge Yosemite organization was created recently (Jan. 2024), and Paul had to work through some table issues in order to get their existing sites to be associated with the new organization.

I am having trouble with submitting my community science macroinvertebrate data into my experiments page. After I insert all of the data needed, I go to click submit, and I am taken to a page on my browser that says "SERVER ERROR 404". Any tips on what I can do?

@ptomasula and I were not able to replicate the issue using our accounts.

The individual then conferred with another user in her organization and reported this:

My colleague submitted a data form without inputting any actual data (only the required things like date and # of bags) and it worked. So then I thought I would try the same on my end. Instead of inputting the actual species and numbers of macros, I also only input the bare minimum like my colleague did and sure enough, it went through. I'm assuming it is some sort of entry glitch when I enter the number of species.

Anyway, in the process of investigating all of this, I deleted one of our sites (called: Fen) and all of its data by total accident! I tried looking around to figure out if there was a way to "undelete" it but alas. Do you know of any way I can revive it?

ScottEnsign commented 5 months ago

Unfortunately, we are not able to easily recover deleted data at this time. A data recovery process is being considered for a future release.

ScottEnsign commented 5 months ago

Reopening this issue recognizing that there may be some deeper problem with this particular site setup.

HeatherBrooks commented 5 months ago

I was able to pinpoint the source of the error. The user sent me the data she tried to enter for the YOSE_Backpack site:

Placement date: 2/1/24 No. of packs placed: 4 Habitat: pool Leaf pack: Oak, Maple, Pine, add: dogwood, alder Retrieval date: 2/21/24 No. of packs retrieved: 2 Stoneflies (Plecoptera): 1 Mayflies (Ephemeroptera): 74 Aquatic worms (Oligochaeta): 12

All other fields were left empty/default.

I logged into the NatureBridgeYOSE account and entered the data exactly as above and received a 500 error after submitting the leaf pack data entry form.

I tried again, entering data as above except I didn't add dogwood and alder to the "Other" leaf species field. The data was successfully submitted with no errors.

I suspect there are issues with the leaf pack data tables. Clearly, the other leaf species field isn't working properly, but there may be others we haven't used yet, so don't know if they are malfunctioning. Is there any way to test all of them?

Additionally, the work Paul did in January (see private email on 1/31/2024) to assign the YOSE_Backpack site to the NatureBridge Yosemite organization doesn't seem to have held. It appears in the user's My Registered Sites section but not in the NatureBridge Yosemite Sites section (screenshot attached).

Also, NatureBridge Yosemite doesn't appear in the Organizations search on the Browse Sites page, I guess because no sites have been connected to it.

Appreciate any help you can give to get this long-time Leaf Pack Network user back on track. They accidentally deleted their second site and were told it's not recoverable, so they are eager to see the data entry system functioning properly so they can start over. Thanks! no-naturebridge-sites