Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 89334 invoked from network); 23 Feb 2011 12:37:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 23 Feb 2011 12:37:08 -0000 Received: (qmail 96184 invoked by uid 500); 23 Feb 2011 12:37:06 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 95595 invoked by uid 500); 23 Feb 2011 12:37:02 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 95570 invoked by uid 99); 23 Feb 2011 12:37:01 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Feb 2011 12:37:01 +0000 X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests=NORMAL_HTTP_TO_IP,SPF_PASS,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [109.169.49.54] (HELO zoe.mltserver-three.co.uk) (109.169.49.54) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Feb 2011 12:36:53 +0000 Received: from 94-116-116-182.dynamic.thecloud.net ([94.116.116.182] helo=182-dynamic.2019423.venues.thecloud.net) by zoe.mltserver-three.co.uk with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.69) (envelope-from ) id 1PsDxG-0003kL-7y for user@couchdb.apache.org; Wed, 23 Feb 2011 12:36:30 +0000 From: Martin Hewitt Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Subject: View error: "Document is missing attachment" Date: Wed, 23 Feb 2011 12:36:32 +0000 Message-Id: <9049EE9C-487E-40D0-AFE1-AB1BC81336B3@thenoi.se> To: user@couchdb.apache.org Mime-Version: 1.0 (Apple Message framework v1082) X-Mailer: Apple Mail (2.1082) X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - zoe.mltserver-three.co.uk X-AntiAbuse: Original Domain - couchdb.apache.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - thenoi.se X-Source: X-Source-Args: X-Source-Dir: Hi all, I'm having issues with the above error message on an empty database. My View is: { "_id": "_design/blah", "_rev": "2-0f45e5f3daa692c830fe40b609568356", "views": { "enabled": { "map": "function(doc) { if (doc.enabled =3D=3D true) = emit(doc.id, doc.id) }" } } } When I load the view from: http://127.0.0.1:5984/test-site_list/_design/blah/enabled I get the error:=20 {"error":"not_found","reason":"Document is missing attachment"} Even if I add a sample document: { "_id": "24f48089f196be70266b54edc0004104", "_rev": "1-94d2179287be1b04d301d6a63bace879", "value": "one", "enabled": true } I get the error. My CouchDB version is: 1> Apache CouchDB 1.0.2 (LogLevel=3Dinfo) is starting. 1> Apache CouchDB has started. Time to relax. Any help would be hugely appreciated. Thanks, Martin=