Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

1

500: Internal Server Error when clicking VIEW RESULTS from survey

By
August Doo
on 6/25/15, 4:48 PM 819 views

Hi, the survey function is fantastic and I can see Odoo uses it even for the online test. One of my surveys worked well previously but yesterday when I tried to click the button View Results, it returned 500: Internal Server Error:


Traceback (most recent call last):

File "/opt/odoo/odoo-server/addons/website/models/ir_http.py", line 160, in _handle_exception

response = super(ir_http, self)._handle_exception(exception)

File "/opt/odoo/odoo-server/openerp/addons/base/ir/ir_http.py", line 95, in _handle_exception

return request._handle_exception(exception)

File "/opt/odoo/odoo-server/openerp/http.py", line 544, in _handle_exception

return super(HttpRequest, self)._handle_exception(exception)

File "/opt/odoo/odoo-server/openerp/addons/base/ir/ir_http.py", line 121, in _dispatch

result = request.dispatch()

File "/opt/odoo/odoo-server/openerp/http.py", line 562, in dispatch

r = self._call_function(**self.params)

File "/opt/odoo/odoo-server/openerp/http.py", line 297, in _call_function

return checked_call(self.db, *args, **kwargs)

File "/opt/odoo/odoo-server/openerp/service/model.py", line 113, in wrapper

return f(dbname, *args, **kwargs)

File "/opt/odoo/odoo-server/openerp/http.py", line 294, in checked_call

return self.endpoint(*a, **kw)

File "/opt/odoo/odoo-server/openerp/http.py", line 677, in __call__

return self.method(*args, **kw)

File "/opt/odoo/odoo-server/openerp/http.py", line 346, in response_wrap

response = f(*args, **kw)

File "/opt/odoo/odoo-server/addons/survey/controllers/main.py", line 318, in survey_reporting

'survey_dict': self.prepare_result_dict(survey, current_filters),

File "/opt/odoo/odoo-server/addons/survey/controllers/main.py", line 369, in prepare_result_dict

question_dict = {'question':question, 'input_summary':survey_obj.get_input_summary(request.cr, request.uid, question, current_filters, context=request.context), 'prepare_result':survey_obj.prepare_result(request.cr, request.uid, question, current_filters, context=request.context), 'graph_data': self.get_graph_data(question, current_filters)}

File "/opt/odoo/odoo-server/addons/survey/survey.py", line 368, in prepare_result

res[(input_line.value_suggested_row.id, input_line.value_suggested.id)] += 1

KeyError: (False, 44)



What are these codes indicating? How to fix it?

I'm looking for quick replies.

Cheers,

August

I consider this to be helpful for other users, would you mind to convert your comment to an answer?

Ermin Trevisan
on 6/28/15, 5:14 AM

Sorry Ermin I don't have enough karmma to do that.

August Doo
on 6/28/15, 10:27 PM
0
August Doo
On 9/5/15, 6:20 PM

The reason for this issue is that after created the survey and got response from test users, some of the questions have been changed. Normally a survey won't be changed after it publishes, so it won't bring any further issue. But I would rather leave this here for anyone who can perfect the mechanism inside Odoo.

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 6/25/15, 4:48 PM
Seen: 819 times
Last updated: 9/5/15, 6:20 PM