pophealth/popHealth — Issue #13: OperationFailure in PatientsController#show
Author: kclaes
Created: 2012-03-06 08:04:12+00:00
State: open

When clicking on a patient in the measure details, the following error occurs:
```
Mongo::OperationFailure in PatientsController#show

Database command 'mapreduce' failed: {"assertion"=>"Invalid BSONObj size: 998050363 (0x3B0A7D3B) first element: : null", "assertionCode"=>10334, "errmsg"=>"db assertion failure", "ok"=>0.0}
Rails.root: C:/_work/pophealth/popHealth

Application Trace | Framework Trace | Full Trace
app/controllers/patients_controller.rb:38:in 'block in show'
app/controllers/patients_controller.rb:36:in 'show'
Request

Parameters:

{"id"=>"4f54b94da4f3d31cc4000004"}
Show session dump

_csrf_token: "46A5q6UNOFUK4SLqffeZsscMQrpA7G7VSNTmuyWSmAo="
session_id: "f7d916bb595db4043b1c5ac6e1487ce5"
warden.user.user.key: ["User", [BSON::ObjectId('4f4e2eb5a4f3d31f88000036')], "$2a$10$WP9SV8UHs9zL/f.52Nh0se"]
Show env dump

GATEWAY_INTERFACE: "CGI/1.1"
HTTP_ACCEPT: "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"
HTTP_ACCEPT_CHARSET: "ISO-8859-1,utf-8;q=0.7,*;q=0.3"
HTTP_ACCEPT_ENCODING: "gzip,deflate,sdch"
HTTP_ACCEPT_LANGUAGE: "en-US,en;q=0.8"
REMOTE_ADDR: "127.0.0.1"
REMOTE_HOST: "localhost"
SERVER_NAME: "localhost"
SERVER_PROTOCOL: "HTTP/1.1"
Response

Headers:

None
```