Return-Path: X-Original-To: apmail-couchdb-user-archive@www.apache.org Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5BC7211CBC for ; Mon, 11 Aug 2014 07:17:57 +0000 (UTC) Received: (qmail 30209 invoked by uid 500); 11 Aug 2014 07:17:56 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 30143 invoked by uid 500); 11 Aug 2014 07:17:56 -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 30132 invoked by uid 99); 11 Aug 2014 07:17:56 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Aug 2014 07:17:56 +0000 X-ASF-Spam-Status: No, hits=1.8 required=5.0 tests=FSL_HELO_BARE_IP_2,RCVD_IN_DNSWL_LOW,RCVD_NUMERIC_HELO,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of gcdcu-couchdb-user@m.gmane.org designates 80.91.229.3 as permitted sender) Received: from [80.91.229.3] (HELO plane.gmane.org) (80.91.229.3) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Aug 2014 07:17:28 +0000 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XGjrD-0001qk-L2 for user@couchdb.apache.org; Mon, 11 Aug 2014 09:17:27 +0200 Received: from 128.250.7.123 ([128.250.7.123]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 11 Aug 2014 09:17:27 +0200 Received: from lmorandini by 128.250.7.123 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 11 Aug 2014 09:17:27 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: user@couchdb.apache.org From: Luca Morandini Subject: [SOLVED] Re: Missing function error Date: Mon, 11 Aug 2014 17:17:16 +1000 Lines: 24 Message-ID: References: Reply-To: lmorandini@ieee.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 128.250.7.123 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.0 In-Reply-To: X-Virus-Checked: Checked by ClamAV on apache.org On 11/08/14 11:18, Luca Morandini wrote: It turned out that this error is triggered when the string declaring the function does not contain a function, like in: "by_type": { "map": "function (doc) {\n if (doc.type) {\n emit(doc.org, doc);\n }\n}", "reduce": "" } (note the empty reduce function) We are glad the issue turned out to be easily solved, but a more descriptive error message would have helped us. Regards, Luca Morandini Data Architect - AURIN project Melbourne eResearch Group Department of Computing and Information Systems University of Melbourne Tel. +61 03 903 58 380 Skype: lmorandini