Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mOFha-00031R-Vy for pgsql-odbc@arkaria.postgresql.org; Thu, 09 Sep 2021 08:46:35 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mOFhZ-0003Y4-Nc for pgsql-odbc@arkaria.postgresql.org; Thu, 09 Sep 2021 08:46:33 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mOFhZ-0003Xt-F7 for pgsql-odbc@lists.postgresql.org; Thu, 09 Sep 2021 08:46:33 +0000 Received: from mail-lf1-x12e.google.com ([2a00:1450:4864:20::12e]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1mOFhW-0007w6-Qg for pgsql-odbc@lists.postgresql.org; Thu, 09 Sep 2021 08:46:33 +0000 Received: by mail-lf1-x12e.google.com with SMTP id e23so2226165lfj.9 for ; Thu, 09 Sep 2021 01:46:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=ZOCSLmvFuTrXv6OgeyiGCuUa+/+znu4EmL0DKRNXEFI=; b=outyoQXb+xSXHLBmSc7z9XgRAYH7ejT69uwj8+SWghG2X2OUrM1TZoLtDxHOiMZbM1 zkqlYyw+on37WgsrT4V1pakt6A1Sh9x+rvhYnjYVmEfX6a7/SfwLKAeDLd10mSlll4Bj 5WVlty7dFhMxuABydspetA/bsq5RZ3FT9BOgmocr0qmRcxRc2LmJ982UW8l8clREDiWl wV/9hZbeqZPbO/yFTQsOfodGoq/BfsLL2yDkSf8/h/cIOhVKqap+nH6WU22EUQdxLpvx P+2IQ81Tb27c8qwCyKjki02k1vc4Ei3L3nGuqfvZyAxb7lcgA8Q6WZs+aUSMI41yIpam RvMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=ZOCSLmvFuTrXv6OgeyiGCuUa+/+znu4EmL0DKRNXEFI=; b=0vyyHmyebajcKskO7qq+LZoEpIA9uwnuRAg4iaptDR4U778+ci5autfQUDtshzrpXT a/MHttY5r+XOveZTSFocRXkwuS7/WHdSVtWvQogCSLQJXdYvq3DxwffumtSV7JRBcnU/ qsoJim9Wac6aOBt7XLuP/QC8BwvqcfNqV4DO3xlG9ywzEEV4kkthR4H2lhNEZIVT94PC M/I7rCyJrokCP6t9Vb03urilYghh5488dR+Xb3NjFuRdjA288XyLyUwWh87jAcZatFH+ mY5ViDbOpacTpbEd+9ALLV4qUs4Wh46qoGgDgFXC7/Cvp+6fPJuMQDSuOQiDBvrg1pdR qnlA== X-Gm-Message-State: AOAM530jlrA2omkEzzyTmpQas85ZaVSzCzDCBsSJiINjEHZjU+ITCc/2 uLL0/YrEMKpF9sO+uCFuCtOg5ykC3EemluXdrR6ItcC9/Po= X-Google-Smtp-Source: ABdhPJyDEz7gMx83888FTt+PRz0BoYENMvgQmHyYvSjeJvY/8YdG5DZUIjzHLALO95M9uFBi6SSFRI4YnAl+zRx5i8w= X-Received: by 2002:a05:6512:2e8:: with SMTP id m8mr1447601lfq.407.1631177188761; Thu, 09 Sep 2021 01:46:28 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Andreas Beier Date: Thu, 9 Sep 2021 10:46:17 +0200 Message-ID: Subject: Re: Excel ODBC query loosing parameter when returning the query result directly to a pivot table. To: pgsql-odbc@lists.postgresql.org Content-Type: multipart/alternative; boundary="000000000000e6e25905cb8c08a3" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000e6e25905cb8c08a3 Content-Type: text/plain; charset="UTF-8" Thank you. It is in fact a very long and well known excel problem, not specificly connected to postgres-odbc. See: https://stackoverflow.com/questions/44672251/excel-sql-data-query-into-pivot-table-fails-when-parameter-stored https://superuser.com/questions/456242/excel-pivot-table-with-external-data-source-parameter-is-not-saved-with-workbook https://social.technet.microsoft.com/Forums/Lync/en-US/e983efc2-ba95-4bdd-85bc-f5ce2647cbb4/cell-reference-parameters-in-connection-properties-of-excel-are-not-saved-how-do-i-fix-this?forum=excel https://answers.microsoft.com/en-us/msoffice/forum/all/query-parameters-cell-reference-not-saved/85a83bbc-545c-4572-b39b-f296b3415efb ... Thx for your help anyway! Andreas Am Mi., 8. Sept. 2021 um 17:42 Uhr schrieb Danny Severns : > Have you tried looking at the Excel.dmp file that should have been created > by the crash. You might also want to look at the windows event log to see > if it is any help. It sounds like a data type mismatch, but that is just a > guess. > "It's so simple to be wise. Just think of something stupid to say and then > don't say it." -Sam Levenson > On 9/8/2021 7:34 AM, Andreas Beier wrote: > > Hi everyone, > > I am using postgres odbc for quite a while within within excel using > parameters (i.e. using ?s within the query). > > When defining odbc queries in Excel I select "PivotTable Report" instead > of "Table", thus creating a pivot table directly without having the raw > data in an extra sheet. > > Once created, I can alter the query and define parameter (s)linking to an > excel cell. > > Everything works well until I (save and) reopen the file and try to > update: Than my excel crashs. :( > > I did find out, that the parameter definition I defined before is empty > when opening the file. When I do redefine it, everthing works well again > until I (save and) reopen the file and try to update: Than my excel crashs. > :( > > So it's very reproduceable. > > I am using the 32bit driver, latest version and I am running Excel 2010 > and 2016. > > Any idea whats wrong here? > > Thanks > Andreas > > --000000000000e6e25905cb8c08a3 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Andreas

= Am Mi., 8. Sept. 2021 um 17:42=C2=A0Uhr schrieb Danny Severns <djoesev@gmail.com>:
=20 =20 =20

Have you tried looking at the Excel.dmp file that should have been created by the crash.=C2=A0 You might also want to look at the windows event log to see if it is any help.=C2=A0 It sounds like a data type mismatch, but th= at is just a guess.

"It's so simple to be wise. Just think of something stupid to say and then don't say it." -Sam Levenson
On 9/8/2021 7:34 AM, Andreas Beier wrote:
=20
Hi everyone,

I am using postgres odbc for quite a while within within excel using parameters (i.e. using ?s within the query).

When defining odbc queries in Excel I select "PivotTable Report" instead of "Table", thus creating a pivot = table directly without having the raw data in an extra sheet.

Once created, I can alter the query and define parameter (s)linking to an excel cell.

Everything works well until I (save and) reopen the file and try to update: Than my excel crashs. :(

I did find out, that the parameter definition I defined before is empty when opening the file. When I do redefine it, everthing works well again until I (save and) reopen the file and try to update: Than my excel crashs. :(

So it's very reproduceable.

I am using the 32bit driver, latest version and I am running Excel 2010 and 2016.

Any idea whats wrong here?

Thanks
Andreas

--000000000000e6e25905cb8c08a3--