Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 62BE5200C44 for ; Mon, 27 Mar 2017 19:24:32 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 616BF160B85; Mon, 27 Mar 2017 17:24:32 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id A74E0160B7B for ; Mon, 27 Mar 2017 19:24:31 +0200 (CEST) Received: (qmail 93647 invoked by uid 500); 27 Mar 2017 17:24:30 -0000 Mailing-List: contact dev-help@poi.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "POI Developers List" Delivered-To: mailing list dev@poi.apache.org Received: (qmail 93636 invoked by uid 99); 27 Mar 2017 17:24:30 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Mar 2017 17:24:30 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 6CD7E183A68 for ; Mon, 27 Mar 2017 17:24:30 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.002 X-Spam-Level: X-Spam-Status: No, score=-0.002 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id b2G6DXJ4FIix for ; Mon, 27 Mar 2017 17:24:29 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id A2B415F341 for ; Mon, 27 Mar 2017 17:24:28 +0000 (UTC) Received: from asf-bz1-us-mid.priv.apache.org (nat1-us-mid.apache.org [23.253.172.122]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTPS id B75CEE002F for ; Mon, 27 Mar 2017 17:24:27 +0000 (UTC) Received: by asf-bz1-us-mid.priv.apache.org (ASF Mail Server at asf-bz1-us-mid.priv.apache.org, from userid 33) id DB7FA609A8; Mon, 27 Mar 2017 17:24:26 +0000 (UTC) From: bugzilla@apache.org To: dev@poi.apache.org Subject: [Bug 60924] New: Excel 2016 SWITCH Statement Not Supported Date: Mon, 27 Mar 2017 17:24:26 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: POI X-Bugzilla-Component: SS Common X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: barnes41@llnl.gov X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: dev@poi.apache.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bz.apache.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 archived-at: Mon, 27 Mar 2017 17:24:32 -0000 https://bz.apache.org/bugzilla/show_bug.cgi?id=3D60924 Bug ID: 60924 Summary: Excel 2016 SWITCH Statement Not Supported Product: POI Version: unspecified Hardware: PC Status: NEW Severity: enhancement Priority: P2 Component: SS Common Assignee: dev@poi.apache.org Reporter: barnes41@llnl.gov Target Milestone: --- Version: First seen with 3.10-FINAL, however skimming the code it appears to still be a problem in 3.15-FINAL. Excel 2016 added a new SWITCH statement, and likely others. Running evaluateAll() on the workbook results in the following stack trace. org.apache.poi.ss.formula.FormulaParseException: Name '_xlfn.SWITCH' is completely unknown in the current workbook at org.apache.poi.ss.formula.FormulaParser.function(FormulaParser.java:920) at org.apache.poi.ss.formula.FormulaParser.parseNonRange(FormulaParser.java:55= 8) at org.apache.poi.ss.formula.FormulaParser.parseRangeable(FormulaParser.java:4= 29) at org.apache.poi.ss.formula.FormulaParser.parseRangeExpression(FormulaParser.= java:268) at org.apache.poi.ss.formula.FormulaParser.parseSimpleFactor(FormulaParser.jav= a:1119) at org.apache.poi.ss.formula.FormulaParser.percentFactor(FormulaParser.java:10= 79) at org.apache.poi.ss.formula.FormulaParser.powerFactor(FormulaParser.java:1066) at org.apache.poi.ss.formula.FormulaParser.Term(FormulaParser.java:1426) at org.apache.poi.ss.formula.FormulaParser.additiveExpression(FormulaParser.ja= va:1526) at org.apache.poi.ss.formula.FormulaParser.concatExpression(FormulaParser.java= :1510) at org.apache.poi.ss.formula.FormulaParser.comparisonExpression(FormulaParser.= java:1467) at org.apache.poi.ss.formula.FormulaParser.unionExpression(FormulaParser.java:= 1447) at org.apache.poi.ss.formula.FormulaParser.parse(FormulaParser.java:1568) at org.apache.poi.ss.formula.FormulaParser.parse(FormulaParser.java:176) at org.apache.poi.xssf.usermodel.XSSFEvaluationWorkbook.getFormulaTokens(XSSFE= valuationWorkbook.java:148) at org.apache.poi.ss.formula.WorkbookEvaluator.evaluateAny(WorkbookEvaluator.j= ava:286) at org.apache.poi.ss.formula.WorkbookEvaluator.evaluate(WorkbookEvaluator.java= :230) at org.apache.poi.xssf.usermodel.XSSFFormulaEvaluator.evaluateFormulaCellValue= (XSSFFormulaEvaluator.java:264) at org.apache.poi.xssf.usermodel.XSSFFormulaEvaluator.evaluateFormulaCell(XSSF= FormulaEvaluator.java:151) at org.apache.poi.hssf.usermodel.HSSFFormulaEvaluator.evaluateAllFormulaCells(= HSSFFormulaEvaluator.java:324) at org.apache.poi.hssf.usermodel.HSSFFormulaEvaluator.evaluateAllFormulaCells(= HSSFFormulaEvaluator.java:315) at org.apache.poi.xssf.usermodel.XSSFFormulaEvaluator.evaluateAll(XSSFFormulaE= valuator.java:252) For anyone seeing this bug and looking for a workaround, follow the instructions at http://poi.apache.org/spreadsheet/user-defined-functions.ht= ml to implement a custom function with the name '_xlfn.SWITCH'. --=20 You are receiving this mail because: You are the assignee for the bug.= --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org For additional commands, e-mail: dev-help@poi.apache.org