From dev-return-19181-archive-asf-public=cust-asf.ponee.io@manifoldcf.apache.org Tue Feb 5 14:18:05 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 04DFF180608 for ; Tue, 5 Feb 2019 15:18:04 +0100 (CET) Received: (qmail 51734 invoked by uid 500); 5 Feb 2019 14:18:04 -0000 Mailing-List: contact dev-help@manifoldcf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@manifoldcf.apache.org Delivered-To: mailing list dev@manifoldcf.apache.org Received: (qmail 51722 invoked by uid 99); 5 Feb 2019 14:18:04 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Feb 2019 14:18:04 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 92E2FC307F for ; Tue, 5 Feb 2019 14:18:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -110.301 X-Spam-Level: X-Spam-Status: No, score=-110.301 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id MBB5I1KzNpvt for ; Tue, 5 Feb 2019 14:18:02 +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 60B2B62440 for ; Tue, 5 Feb 2019 14:18:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id A7276E26EF for ; Tue, 5 Feb 2019 14:18:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 4C37424417 for ; Tue, 5 Feb 2019 14:18:00 +0000 (UTC) Date: Tue, 5 Feb 2019 14:18:00 +0000 (UTC) From: "Donald Van den Driessche (JIRA)" To: dev@manifoldcf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CONNECTORS-1579) Error when crawling a MSSQL table MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CONNECTORS-1579?page=3Dcom.atla= ssian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId= =3D16760852#comment-16760852 ]=20 Donald Van den Driessche commented on CONNECTORS-1579: ------------------------------------------------------ Thanks for clearing this out. > Error when crawling a MSSQL table > --------------------------------- > > Key: CONNECTORS-1579 > URL: https://issues.apache.org/jira/browse/CONNECTORS-157= 9 > Project: ManifoldCF > Issue Type: Bug > Components: JDBC connector > Affects Versions: ManifoldCF 2.12 > Reporter: Donald Van den Driessche > Assignee: Karl Wright > Priority: Major > Attachments: 636_bb2.csv > > > When I'm crawling a MSSQL table through the JDBC connector I get followin= g error on multiple lines: > =C2=A0 > {noformat} > FATAL 2019-02-05T13:21:58,929 (Worker thread '40') - Error tossed: Multip= le document primary component dispositions not allowed: document '636' > java.lang.IllegalStateException: Multiple document primary component disp= ositions not allowed: document '636' > at org.apache.manifoldcf.crawler.system.WorkerThread$ProcessActivity.chec= kMultipleDispositions(WorkerThread.java:2125) ~[mcf-pull-agent.jar:?] > at org.apache.manifoldcf.crawler.system.WorkerThread$ProcessActivity.noDo= cument(WorkerThread.java:1624) ~[mcf-pull-agent.jar:?] > at org.apache.manifoldcf.crawler.system.WorkerThread$ProcessActivity.noDo= cument(WorkerThread.java:1605) ~[mcf-pull-agent.jar:?] > at org.apache.manifoldcf.crawler.connectors.jdbc.JDBCConnector.processDoc= uments(JDBCConnector.java:944) ~[?:?] > at org.apache.manifoldcf.crawler.system.WorkerThread.run(WorkerThread.jav= a:399) [mcf-pull-agent.jar:?]{noformat} > I looked this error up on the internet and it said that it might have som= ething to do with using the same key for different lines. > I checked, but I couldn't find any duplicates that match any of the sele= cted fields in the JDBC. > Hereby my queries: > Seeding query > {code:java} > SELECT pk1 as $(IDCOLUMN) > FROM dbo.bb2 > WHERE search_url IS NOT NULL > AND mimetype IS NOT NULL AND mimetype NOT IN ('unknown/unknown', 'applica= tion/xml', 'application/zip'); > {code} > Version check query: none > Access token query: none > Data query:=C2=A0 > =C2=A0 > =C2=A0 > {code:java} > SELECT=20 > pk1 AS $(IDCOLUMN),=20 > search_url AS $(URLCOLUMN),=20 > ISNULL(content, '') AS $(DATACOLUMN), > doc_id,=20 > search_url AS url,=20 > ISNULL(title, '') as title,=20 > ISNULL(groups,'') as groups,=20 > ISNULL(type,'') as document_type,=20 > ISNULL(users, '') as users > FROM dbo.bb2 > WHERE pk1 IN $(IDLIST); > {code} > The hereby added csv is the corresponding line from the table. > [^636_bb2.csv] > =C2=A0 > Due to this problem, the whole crawling pipeline is being held up. It kee= ps on retrying this line. > Could you help me understand this error? > =C2=A0 > =C2=A0 -- This message was sent by Atlassian JIRA (v7.6.3#76005)