-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
InsertResult: "query did not return a unique result: 2" #1167
Comments
You are not doing anything wrong, it seems to be a bug in the SOS which I was able to reproduce.
You can use the identifier of the featureOfInterest in the
|
Dear Carsten, I did as you specified by uniquely using the featureOfInterest identifier in the insertResult request. Here is the process I used :
But I get the same message error. Maybe a research element: the GetResultTemplate request does not work with a template identifier but by using an offering id and an observedProperty id. In this special case, my procedure (included in a unique offering) observes many observedProperty (3) on several featureOfInterests (33). With such a process, is it possible that using several featureOfInterests causes the problem, knowing that a template can be retireved with only an observedProperty and an offering? Thank you very much. |
Hi, we have prepared a new 5.2..x (5.2.11) release which contains a fix for this issue. With the new release you are able to insert results for the same offering/observedProperty and multiple featureOfInterest (more than two). You can download the new release here: https://github.com/52North/SOS/releases/tag/v5.2.11 |
Dear Carsten, I will check with this version. Best regards. |
Dear Carsten, I close this issue. Thanks a lot. |
Hello,
A no "NoApplicableCode" exception arised during an InsertResult request. We use SOS 5.2.6 and I describe below the process we used for data record through the SOS client interface.
In this example there are several FOIs and several observableProperties associated to the sensor. We were able to record two sets of results associated with two different FOIs but it seems that for the other FOIs, the InsertResult request failes. In the client interface, we get this message:
{ "version": "2.0.0", "exceptions": [ { "code": "NoApplicableCode", "text": "[EXCEPTION]: \nquery did not return a unique result: 2\n" } ] }
The logs message is as follow:
We checked the database but the new observations were not recorded.
Is there anything we are doing wrong?
NB: In this process, FOI descriptions are done twice (during the InsertFeatureOfInterest and during the InsertResultTemplate). We do not knwow if there is a way to avoid this double recording.
Thank you very much.
The text was updated successfully, but these errors were encountered: