Page 1 of 1

Error "Too many Contexts of Relation/Procedures/Views" in IBDAC 8.0.2

Posted: Fri 28 Jan 2022 15:09
by Rastislav
Hello,
I have this code, where error occured with IBDAC 8.0.2 version.
I must downgraded to IBDAC 7.4.4 where all is OK.
Can you please check it and fix it ?
Thanks

Code: Select all

    qKI.SQL.Text:='SELECT pcI, SUM(CENAO), SUM(CENAS), SUM(HM), SUM(HMBAL), SUM(CELKPOCET), SUM(VYRPOC), SUM(NAKO*ICELKKS), SUM(NAKS*ICELKKS), SUM(CENAO*ICELKKS), SUM(CENAS*ICELKKS), SUM(NAKO), SUM(NAKS)' 
                +' FROM BWIO'
                +' WHERE PCI=10001562 AND NOT INULY'
                +' GROUP BY PCI';
    qKI.Open;

    Pocet:=qKI.RecordCount;
    if Pocet>0 then begin
       qKU.SQL.Text:='UPDATE I SET CENA=:0, HM=:1, HMBAL=:2, OPEALL=:3, OPEVYR=:4, NAKL=:5 WHERE PC=:6';
       qKU.Params[0].DataType:=ftCurrency;
       qKU.Params[1].DataType:=ftCurrency;
       qKU.Params[2].DataType:=ftCurrency;
       qKU.Params[3].DataType:=ftInteger;
       qKU.Params[4].DataType:=ftInteger;
       qKU.Params[5].DataType:=ftCurrency;
       qKU.Params[6].DataType:=ftInteger;
       qKU.Params.ValueCount:=Pocet; // specify the array dimension:

       qKI.First; i:=0;
       while not qKI.Eof do begin
         Inc(i);
         qKU.Params[0][i-1].AsCurrency:=qKI.Fields[1].AsCurrency+qKI.Fields[2].AsCurrency;
         qKU.Params[1][i-1].AsCurrency:=qKI.Fields[3].AsCurrency;
         qKU.Params[2][i-1].AsCurrency:=qKI.Fields[4].AsCurrency;
         qKU.Params[3][i-1].AsInteger:=qKI.Fields[5].AsInteger;
         qKU.Params[4][i-1].AsInteger:=qKI.Fields[6].AsInteger;
         qKU.Params[5][i-1].AsCurrency:=qKI.Fields[11].AsCurrency+qKI.Fields[12].AsCurrency;
         qKU.Params[6][i-1].AsInteger:=qKI.Fields[0].AsInteger;

         qKI.Next;
       end;
       qKU.Execute(Pocet);
    end;
    qKU.Params.Clear;
    qKI.Close;

Re: Error "Too many Contexts of Relation/Procedures/Views" in IBDAC 8.0.2

Posted: Thu 03 Feb 2022 10:36
by pavelpd
Hi there!

We did some research on the code snippet you sent, using IBDAC 8.0.2, and were unable to reproduce the error you mentioned.
Please create a sample demonstrating the error you indicated, including all the necessary scripts for creating and populating database objects, and send it to us via the e-support form https://www.devart.com/company/contactform.htm
Also, what database are you using FireBird or Interbase, and what version?

Re: Error "Too many Contexts of Relation/Procedures/Views" in IBDAC 8.0.2

Posted: Wed 09 Feb 2022 15:39
by Rastislav
I am using Firebird 3.0.7. I am sorry but it is part of my bigger application and I have not enought time for creating test application. Menwhile I "solved" it by downgrading to 7.4.4 where all is working ...

Re: Error "Too many Contexts of Relation/Procedures/Views" in IBDAC 8.0.2

Posted: Thu 10 Feb 2022 10:52
by pavelpd
Hi all,

Thank you for the info provided!
We have reproduced the issue and we are currently investigating its origin.
We will inform you about the results shortly.

Re: Error "Too many Contexts of Relation/Procedures/Views" in IBDAC 8.0.2

Posted: Fri 11 Feb 2022 15:07
by pavelpd
Hi,
We've reproduced the issue and fixed it. The fix will be included in the next build of our product.
As a workaround, we can send you a nightly IBDAC build including the required changes.
Please specify your license number, IDE version and send us via this contact form: https://www.devart.com/company/contactform.html

Re: Error "Too many Contexts of Relation/Procedures/Views" in IBDAC 8.0.2

Posted: Mon 14 Feb 2022 09:10
by Rastislav
Hello Pavel,
thank you for fix, I can wait to final version ...
Best wishes

Re: Error "Too many Contexts of Relation/Procedures/Views" in IBDAC 8.0.2

Posted: Fri 18 Feb 2022 12:59
by pavelpd
Hi there!
You are always welcome.

Should you have any product related questions, do not hesitate to ask!

Re: Error "Too many Contexts of Relation/Procedures/Views" in IBDAC 8.0.2

Posted: Wed 30 Mar 2022 07:44
by Alfonso Presa
Hi, same problem here. Can you please send me the workaround too?
BTW it should be nice to hear a first answer that wouldn't be "we can reproduce the issue, we need a demo code and db script". I have reported a bug that remains intact since version 7.5 and I have not been able to use any new version on android because of that.

Thansk in advance,

Re: Error "Too many Contexts of Relation/Procedures/Views" in IBDAC 8.0.2

Posted: Thu 07 Apr 2022 09:15
by pavelpd
Hi Alfonso!
To receive a nightly IBDAC build, please specify your license number,
IDE version and send us via this contact form:
https://www.devart.com/company/contactform.html

Also during the week we expect the IBDAC release with this fix included.