BAQ calculated field limitation?

I would be happy if I could return even a fraction of the help I've received from the group! I really wish I could attend Epicor's convention sometime, I'd LOVE to meet some of the people in this group. Too bad the company I work has so many policies from the dark ages, they refuse to see any value in something like that. However, I'm very grateful I have this user group and it doesn't cost the company a penny!!!

Sue

--- In vantage@yahoogroups.com, "jplehr" <jlehr@...> wrote:
>
> Sue,
>
> First, great to hear you have this working.
>
> Second, I think your follow-up is great for the group. We need more of this type of communication. So many times I see an answer that sounds promising, but you never hear how it worked out or if it had to be tweaked. Or, you never see a solid answer and you always wonder if the issue was resolved by another avenue. I am guilty of this myself.
>
> Thanks for sharing.
>
> Jeff
>
> --- In vantage@yahoogroups.com, "snielsen28" <snielsen.hipco@> wrote:
> >
> > I found a way to get my BAQ to work in Epicor 9. I found an entry in the server log that said "More than 4000 items in a single statement. Use the -tok parameter." I found an answerbook on EpicWeb for the same error message when running a BPM. It was AnswerBook# 12542MPS and said:
> >
> > PROBLEM RESOLUTION:
> > 1. Navigate to epicor904 or epicor905\server\config depending on your version and open the mfgsys.pf file in notepad
> > 2. Locate the -tok parameter and double the current value (ex if it is set to 3000 increase it to 6000) - there isn't a maximum value that can be set, the limitation is with the amount of RAM on the server
> > 3. You will need to restart your appservers before the new setting takes affect
> > 4. Try to create your new BPM after logging back into the database
> >
> > I played around with that parameter. If I set it too high, I got the message "REPLACE/CONCAT may not result in data > 32000 bytes." I searched around and found out the -tok parameter is the number of tokens per statement and each word or special character (such as parenthesis, plus sign, and minus sign) counts as one token. I trimmed all excess from my BAQ (got rid of parenthesis for documentation purposes only, etc.) and was able to get it to run by setting the -tok parameter at 7000 (the default was 4000). I'm not sure why the same BAQ didn't exceed the token limit of 4000 in Vantage, apparently Epicor 9 is "wordier"? I also don't know if increasing the tok parameter will cause any degraded performance issues when all users are on Epicor 9, now it's just me on the test server.
> >
> > Thought I'd report my findings in the hopes that it will help someone else out :)
> >
> > Sue
> > --- In vantage@yahoogroups.com, "snielsen28" <snielsen.hipco@> wrote:
> > >
> > > We're Progress. I may toss this over to support and see what they make of it. I appreciate the verification that there do appear to be some limitations working with BAQs.
> > >
> > > --- In vantage@yahoogroups.com, "Vic Drecchio" <vic.drecchio@> wrote:
> > > >
> > > > Sue, I’ve hit the virtual ceiling on BAQs in the past. Although I have no confirmation, I’ve “heard” there are query-length limitations...... so an “If-Then-Else” limitation wouldn’t surprise me either.
> > > >
> > > > Any chance you’re a SQL customer (vs Progress db)? If so, let me know.
> > > >
> > > > From: snielsen28
> > > > Sent: Tuesday, April 17, 2012 4:10 PM
> > > > To: vantage@yahoogroups.com
> > > > Subject: [Vantage] BAQ calculated field limitation?
> > > >
> > > >
> > > > I'm testing BAQs in Epicor 9.05.607B. I'm having trouble with a couple of calculated fields in BAQs that are working fine in Vantage 8.03.409A. The BAQs are used in a dashboard to tell HR when an employee may be reaching his PTO max or needs to have his PTO accrual rate changed. A version of the 1st problem BAQ that works in Epicor 9 reads:
> > > >
> > > > If CalcWorkYears > 23 Then 6.16 Else If CalcWorkYears > 20 Then 5.85 Else If CalcWorkYears > 17 Then 5.54 Else If CalcWorkYears > 14 Then 5.24 Else If CalcWorkYears > 11 Then 4.93 Else If CalcWorkYears > 8 Then 4.62 Else 2
> > > >
> > > > However, if I add one more else-if-then so it reads:
> > > >
> > > > If CalcWorkYears > 23 Then 6.16 Else If CalcWorkYears > 20 Then 5.85 Else If CalcWorkYears > 17 Then 5.54 Else If CalcWorkYears > 14 Then 5.24 Else If CalcWorkYears > 11 Then 4.93 Else If CalcWorkYears > 8 Then 4.62 Else If CalcWorkYears > 0 THEN 3.08 Else 2
> > > >
> > > > I receive the informative message "Text Business Execution error. Please contact your System Administrator." No problems with syntax.
> > > >
> > > > The same thing happens if I use parenthesis:
> > > > (If (CalcWorkYears > 23) Then 6.16 Else (If (CalcWorkYears > 20) Then 5.85 Else (If (CalcWorkYears > 17) Then 5.54 Else (If (CalcWorkYears > 14) Then 5.24 Else (If (CalcWorkYears > 11) Then 4.93 Else (If(CalcWorkYears > 8) Then 4.62 Else (If (CalcWorkYears > 0) Then 3.08 Else 2)))))))
> > > >
> > > > The 2nd problem calculated field stops working even sooner:
> > > > (If (CalcWorkYears > 24) Then 320 else (If (CalcWorkYears > 23) Then 312 Else (If (CalcWorkYears > 21) Then 304 Else (If (CalcWorkYears > 20) Then 296 Else (If (CalcWorkYears > 18) Then 288 Else (If (CalcWorkYears > 17) Then 280 Else (If (CalcWorkYears > 15) Then 272 Else (IF (CalcWorkYears > 14) Then 264 Else (If (CalcWorkYears > 12) then 256 Else (IF (CalcWorkYears > 11) Then 248 Else (If (CalcWorkYears > 9) Then 240 Else (If (CalcWorkYears > 8) Then 200 Else (If (CalcWorkYears > 1) Then 160 Else (If (CalcWorkYears > 0) Then 120 Else 40))))))))))))))
> > > >
> > > > That one won't go past the 3rd If-Then-Else. It seems to be related to comparison to another calculated field. I can substitute a value or a field for the calculated field (CalcWorkYears) and don't receive the error. Does anyone know if there's some kind of limitation on using calculated fields in IF-THEN-ELSE statements? The calculated fields are defined as signed decimal fields that are larger than any of the values. The CalcWorkYears field is a signed integer field that is larger than any of the values. It seems from searching the user group that E9 BAQs are pickier than Vantage BAQs which may explain why the same BAQs work fine there. I've tried everything I can think of...I'm hoping someone will point me in the right direction. Maybe I need to put the values in a UD table instead of hardcoding them into the BAQ. Any ideas?
> > > >
> > > > Sue
> > > >
> > > >
> > > >
> > > >
> > > > No virus found in this message.
> > > > Checked by AVG - www.avg.com
> > > > Version: 2012.0.1913 / Virus Database: 2411/4942 - Release Date: 04/17/12
> > > >
> > > >
> > > > [Non-text portions of this message have been removed]
> > > >
> > >
> >
>
I'm testing BAQs in Epicor 9.05.607B. I'm having trouble with a couple of calculated fields in BAQs that are working fine in Vantage 8.03.409A. The BAQs are used in a dashboard to tell HR when an employee may be reaching his PTO max or needs to have his PTO accrual rate changed. A version of the 1st problem BAQ that works in Epicor 9 reads:

If CalcWorkYears > 23 Then 6.16 Else If CalcWorkYears > 20 Then 5.85 Else If CalcWorkYears > 17 Then 5.54 Else If CalcWorkYears > 14 Then 5.24 Else If CalcWorkYears > 11 Then 4.93 Else If CalcWorkYears > 8 Then 4.62 Else 2

However, if I add one more else-if-then so it reads:

If CalcWorkYears > 23 Then 6.16 Else If CalcWorkYears > 20 Then 5.85 Else If CalcWorkYears > 17 Then 5.54 Else If CalcWorkYears > 14 Then 5.24 Else If CalcWorkYears > 11 Then 4.93 Else If CalcWorkYears > 8 Then 4.62 Else If CalcWorkYears > 0 THEN 3.08 Else 2

I receive the informative message "Text Business Execution error. Please contact your System Administrator." No problems with syntax.

The same thing happens if I use parenthesis:
(If (CalcWorkYears > 23) Then 6.16 Else (If (CalcWorkYears > 20) Then 5.85 Else (If (CalcWorkYears > 17) Then 5.54 Else (If (CalcWorkYears > 14) Then 5.24 Else (If (CalcWorkYears > 11) Then 4.93 Else (If(CalcWorkYears > 8) Then 4.62 Else (If (CalcWorkYears > 0) Then 3.08 Else 2)))))))

The 2nd problem calculated field stops working even sooner:
(If (CalcWorkYears > 24) Then 320 else (If (CalcWorkYears > 23) Then 312 Else (If (CalcWorkYears > 21) Then 304 Else (If (CalcWorkYears > 20) Then 296 Else (If (CalcWorkYears > 18) Then 288 Else (If (CalcWorkYears > 17) Then 280 Else (If (CalcWorkYears > 15) Then 272 Else (IF (CalcWorkYears > 14) Then 264 Else (If (CalcWorkYears > 12) then 256 Else (IF (CalcWorkYears > 11) Then 248 Else (If (CalcWorkYears > 9) Then 240 Else (If (CalcWorkYears > 8) Then 200 Else (If (CalcWorkYears > 1) Then 160 Else (If (CalcWorkYears > 0) Then 120 Else 40))))))))))))))

That one won't go past the 3rd If-Then-Else. It seems to be related to comparison to another calculated field. I can substitute a value or a field for the calculated field (CalcWorkYears) and don't receive the error. Does anyone know if there's some kind of limitation on using calculated fields in IF-THEN-ELSE statements? The calculated fields are defined as signed decimal fields that are larger than any of the values. The CalcWorkYears field is a signed integer field that is larger than any of the values. It seems from searching the user group that E9 BAQs are pickier than Vantage BAQs which may explain why the same BAQs work fine there. I've tried everything I can think of...I'm hoping someone will point me in the right direction. Maybe I need to put the values in a UD table instead of hardcoding them into the BAQ. Any ideas?

Sue
Sue, I’ve hit the virtual ceiling on BAQs in the past. Although I have no confirmation, I’ve “heard” there are query-length limitations...... so an “If-Then-Else” limitation wouldn’t surprise me either.

Any chance you’re a SQL customer (vs Progress db)? If so, let me know.

From: snielsen28
Sent: Tuesday, April 17, 2012 4:10 PM
To: vantage@yahoogroups.com
Subject: [Vantage] BAQ calculated field limitation?


I'm testing BAQs in Epicor 9.05.607B. I'm having trouble with a couple of calculated fields in BAQs that are working fine in Vantage 8.03.409A. The BAQs are used in a dashboard to tell HR when an employee may be reaching his PTO max or needs to have his PTO accrual rate changed. A version of the 1st problem BAQ that works in Epicor 9 reads:

If CalcWorkYears > 23 Then 6.16 Else If CalcWorkYears > 20 Then 5.85 Else If CalcWorkYears > 17 Then 5.54 Else If CalcWorkYears > 14 Then 5.24 Else If CalcWorkYears > 11 Then 4.93 Else If CalcWorkYears > 8 Then 4.62 Else 2

However, if I add one more else-if-then so it reads:

If CalcWorkYears > 23 Then 6.16 Else If CalcWorkYears > 20 Then 5.85 Else If CalcWorkYears > 17 Then 5.54 Else If CalcWorkYears > 14 Then 5.24 Else If CalcWorkYears > 11 Then 4.93 Else If CalcWorkYears > 8 Then 4.62 Else If CalcWorkYears > 0 THEN 3.08 Else 2

I receive the informative message "Text Business Execution error. Please contact your System Administrator." No problems with syntax.

The same thing happens if I use parenthesis:
(If (CalcWorkYears > 23) Then 6.16 Else (If (CalcWorkYears > 20) Then 5.85 Else (If (CalcWorkYears > 17) Then 5.54 Else (If (CalcWorkYears > 14) Then 5.24 Else (If (CalcWorkYears > 11) Then 4.93 Else (If(CalcWorkYears > 8) Then 4.62 Else (If (CalcWorkYears > 0) Then 3.08 Else 2)))))))

The 2nd problem calculated field stops working even sooner:
(If (CalcWorkYears > 24) Then 320 else (If (CalcWorkYears > 23) Then 312 Else (If (CalcWorkYears > 21) Then 304 Else (If (CalcWorkYears > 20) Then 296 Else (If (CalcWorkYears > 18) Then 288 Else (If (CalcWorkYears > 17) Then 280 Else (If (CalcWorkYears > 15) Then 272 Else (IF (CalcWorkYears > 14) Then 264 Else (If (CalcWorkYears > 12) then 256 Else (IF (CalcWorkYears > 11) Then 248 Else (If (CalcWorkYears > 9) Then 240 Else (If (CalcWorkYears > 8) Then 200 Else (If (CalcWorkYears > 1) Then 160 Else (If (CalcWorkYears > 0) Then 120 Else 40))))))))))))))

That one won't go past the 3rd If-Then-Else. It seems to be related to comparison to another calculated field. I can substitute a value or a field for the calculated field (CalcWorkYears) and don't receive the error. Does anyone know if there's some kind of limitation on using calculated fields in IF-THEN-ELSE statements? The calculated fields are defined as signed decimal fields that are larger than any of the values. The CalcWorkYears field is a signed integer field that is larger than any of the values. It seems from searching the user group that E9 BAQs are pickier than Vantage BAQs which may explain why the same BAQs work fine there. I've tried everything I can think of...I'm hoping someone will point me in the right direction. Maybe I need to put the values in a UD table instead of hardcoding them into the BAQ. Any ideas?

Sue




No virus found in this message.
Checked by AVG - www.avg.com
Version: 2012.0.1913 / Virus Database: 2411/4942 - Release Date: 04/17/12


[Non-text portions of this message have been removed]
Vic,

If you write the words on here, ‘Progress is the new cool!’ I’ll buy you 3 shots Sunday night @ margaritaville…


Rob Bucek
Production Control Manager
PH: (715) 284-5376 ext 311
Mobile: (715)896-0590
FAX: (715)284-4084
[Description: cid:1.234354861@...]<http://www.dsmfg.com/>
(Click the logo to view our site)<http://www.dsmfg.com/>

From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of Vic Drecchio
Sent: Tuesday, April 17, 2012 3:19 PM
To: vantage@yahoogroups.com
Subject: Re: [Vantage] BAQ calculated field limitation?



Sue, I’ve hit the virtual ceiling on BAQs in the past. Although I have no confirmation, I’ve “heard” there are query-length limitations...... so an “If-Then-Else” limitation wouldn’t surprise me either.

Any chance you’re a SQL customer (vs Progress db)? If so, let me know.

From: snielsen28
Sent: Tuesday, April 17, 2012 4:10 PM
To: vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com>
Subject: [Vantage] BAQ calculated field limitation?

I'm testing BAQs in Epicor 9.05.607B. I'm having trouble with a couple of calculated fields in BAQs that are working fine in Vantage 8.03.409A. The BAQs are used in a dashboard to tell HR when an employee may be reaching his PTO max or needs to have his PTO accrual rate changed. A version of the 1st problem BAQ that works in Epicor 9 reads:

If CalcWorkYears > 23 Then 6.16 Else If CalcWorkYears > 20 Then 5.85 Else If CalcWorkYears > 17 Then 5.54 Else If CalcWorkYears > 14 Then 5.24 Else If CalcWorkYears > 11 Then 4.93 Else If CalcWorkYears > 8 Then 4.62 Else 2

However, if I add one more else-if-then so it reads:

If CalcWorkYears > 23 Then 6.16 Else If CalcWorkYears > 20 Then 5.85 Else If CalcWorkYears > 17 Then 5.54 Else If CalcWorkYears > 14 Then 5.24 Else If CalcWorkYears > 11 Then 4.93 Else If CalcWorkYears > 8 Then 4.62 Else If CalcWorkYears > 0 THEN 3.08 Else 2

I receive the informative message "Text Business Execution error. Please contact your System Administrator." No problems with syntax.

The same thing happens if I use parenthesis:
(If (CalcWorkYears > 23) Then 6.16 Else (If (CalcWorkYears > 20) Then 5.85 Else (If (CalcWorkYears > 17) Then 5.54 Else (If (CalcWorkYears > 14) Then 5.24 Else (If (CalcWorkYears > 11) Then 4.93 Else (If(CalcWorkYears > 8) Then 4.62 Else (If (CalcWorkYears > 0) Then 3.08 Else 2)))))))

The 2nd problem calculated field stops working even sooner:
(If (CalcWorkYears > 24) Then 320 else (If (CalcWorkYears > 23) Then 312 Else (If (CalcWorkYears > 21) Then 304 Else (If (CalcWorkYears > 20) Then 296 Else (If (CalcWorkYears > 18) Then 288 Else (If (CalcWorkYears > 17) Then 280 Else (If (CalcWorkYears > 15) Then 272 Else (IF (CalcWorkYears > 14) Then 264 Else (If (CalcWorkYears > 12) then 256 Else (IF (CalcWorkYears > 11) Then 248 Else (If (CalcWorkYears > 9) Then 240 Else (If (CalcWorkYears > 8) Then 200 Else (If (CalcWorkYears > 1) Then 160 Else (If (CalcWorkYears > 0) Then 120 Else 40))))))))))))))

That one won't go past the 3rd If-Then-Else. It seems to be related to comparison to another calculated field. I can substitute a value or a field for the calculated field (CalcWorkYears) and don't receive the error. Does anyone know if there's some kind of limitation on using calculated fields in IF-THEN-ELSE statements? The calculated fields are defined as signed decimal fields that are larger than any of the values. The CalcWorkYears field is a signed integer field that is larger than any of the values. It seems from searching the user group that E9 BAQs are pickier than Vantage BAQs which may explain why the same BAQs work fine there. I've tried everything I can think of...I'm hoping someone will point me in the right direction. Maybe I need to put the values in a UD table instead of hardcoding them into the BAQ. Any ideas?

Sue

No virus found in this message.
Checked by AVG - www.avg.com
Version: 2012.0.1913 / Virus Database: 2411/4942 - Release Date: 04/17/12

[Non-text portions of this message have been removed]



[Non-text portions of this message have been removed]
We're Progress. I may toss this over to support and see what they make of it. I appreciate the verification that there do appear to be some limitations working with BAQs.

--- In vantage@yahoogroups.com, "Vic Drecchio" <vic.drecchio@...> wrote:
>
> Sue, I’ve hit the virtual ceiling on BAQs in the past. Although I have no confirmation, I’ve “heard” there are query-length limitations...... so an “If-Then-Else” limitation wouldn’t surprise me either.
>
> Any chance you’re a SQL customer (vs Progress db)? If so, let me know.
>
> From: snielsen28
> Sent: Tuesday, April 17, 2012 4:10 PM
> To: vantage@yahoogroups.com
> Subject: [Vantage] BAQ calculated field limitation?
>
>
> I'm testing BAQs in Epicor 9.05.607B. I'm having trouble with a couple of calculated fields in BAQs that are working fine in Vantage 8.03.409A. The BAQs are used in a dashboard to tell HR when an employee may be reaching his PTO max or needs to have his PTO accrual rate changed. A version of the 1st problem BAQ that works in Epicor 9 reads:
>
> If CalcWorkYears > 23 Then 6.16 Else If CalcWorkYears > 20 Then 5.85 Else If CalcWorkYears > 17 Then 5.54 Else If CalcWorkYears > 14 Then 5.24 Else If CalcWorkYears > 11 Then 4.93 Else If CalcWorkYears > 8 Then 4.62 Else 2
>
> However, if I add one more else-if-then so it reads:
>
> If CalcWorkYears > 23 Then 6.16 Else If CalcWorkYears > 20 Then 5.85 Else If CalcWorkYears > 17 Then 5.54 Else If CalcWorkYears > 14 Then 5.24 Else If CalcWorkYears > 11 Then 4.93 Else If CalcWorkYears > 8 Then 4.62 Else If CalcWorkYears > 0 THEN 3.08 Else 2
>
> I receive the informative message "Text Business Execution error. Please contact your System Administrator." No problems with syntax.
>
> The same thing happens if I use parenthesis:
> (If (CalcWorkYears > 23) Then 6.16 Else (If (CalcWorkYears > 20) Then 5.85 Else (If (CalcWorkYears > 17) Then 5.54 Else (If (CalcWorkYears > 14) Then 5.24 Else (If (CalcWorkYears > 11) Then 4.93 Else (If(CalcWorkYears > 8) Then 4.62 Else (If (CalcWorkYears > 0) Then 3.08 Else 2)))))))
>
> The 2nd problem calculated field stops working even sooner:
> (If (CalcWorkYears > 24) Then 320 else (If (CalcWorkYears > 23) Then 312 Else (If (CalcWorkYears > 21) Then 304 Else (If (CalcWorkYears > 20) Then 296 Else (If (CalcWorkYears > 18) Then 288 Else (If (CalcWorkYears > 17) Then 280 Else (If (CalcWorkYears > 15) Then 272 Else (IF (CalcWorkYears > 14) Then 264 Else (If (CalcWorkYears > 12) then 256 Else (IF (CalcWorkYears > 11) Then 248 Else (If (CalcWorkYears > 9) Then 240 Else (If (CalcWorkYears > 8) Then 200 Else (If (CalcWorkYears > 1) Then 160 Else (If (CalcWorkYears > 0) Then 120 Else 40))))))))))))))
>
> That one won't go past the 3rd If-Then-Else. It seems to be related to comparison to another calculated field. I can substitute a value or a field for the calculated field (CalcWorkYears) and don't receive the error. Does anyone know if there's some kind of limitation on using calculated fields in IF-THEN-ELSE statements? The calculated fields are defined as signed decimal fields that are larger than any of the values. The CalcWorkYears field is a signed integer field that is larger than any of the values. It seems from searching the user group that E9 BAQs are pickier than Vantage BAQs which may explain why the same BAQs work fine there. I've tried everything I can think of...I'm hoping someone will point me in the right direction. Maybe I need to put the values in a UD table instead of hardcoding them into the BAQ. Any ideas?
>
> Sue
>
>
>
>
> No virus found in this message.
> Checked by AVG - www.avg.com
> Version: 2012.0.1913 / Virus Database: 2411/4942 - Release Date: 04/17/12
>
>
> [Non-text portions of this message have been removed]
>
No can do. Not even for free booze. :-)



From: Rob Bucek
Sent: Tuesday, April 17, 2012 4:23 PM
To: vantage@yahoogroups.com
Subject: RE: [Vantage] BAQ calculated field limitation?


Vic,

If you write the words on here, ‘Progress is the new cool!’ I’ll buy you 3 shots Sunday night @ margaritaville…


Rob Bucek
Production Control Manager
PH: (715) 284-5376 ext 311
Mobile: (715)896-0590
FAX: (715)284-4084
[Description: cid:mailto:1.234354861%40web65412.mail.ac4.yahoo.com]<http://www.dsmfg.com/>
(Click the logo to view our site)<http://www.dsmfg.com/>

From: mailto:vantage%40yahoogroups.com [mailto:mailto:vantage%40yahoogroups.com] On Behalf Of Vic Drecchio
Sent: Tuesday, April 17, 2012 3:19 PM
To: mailto:vantage%40yahoogroups.com
Subject: Re: [Vantage] BAQ calculated field limitation?



Sue, I’ve hit the virtual ceiling on BAQs in the past. Although I have no confirmation, I’ve “heard” there are query-length limitations...... so an “If-Then-Else” limitation wouldn’t surprise me either.

Any chance you’re a SQL customer (vs Progress db)? If so, let me know.

From: snielsen28
Sent: Tuesday, April 17, 2012 4:10 PM
To: mailto:vantage%40yahoogroups.com<mailto:vantage%40yahoogroups.com>
Subject: [Vantage] BAQ calculated field limitation?

I'm testing BAQs in Epicor 9.05.607B. I'm having trouble with a couple of calculated fields in BAQs that are working fine in Vantage 8.03.409A. The BAQs are used in a dashboard to tell HR when an employee may be reaching his PTO max or needs to have his PTO accrual rate changed. A version of the 1st problem BAQ that works in Epicor 9 reads:

If CalcWorkYears > 23 Then 6.16 Else If CalcWorkYears > 20 Then 5.85 Else If CalcWorkYears > 17 Then 5.54 Else If CalcWorkYears > 14 Then 5.24 Else If CalcWorkYears > 11 Then 4.93 Else If CalcWorkYears > 8 Then 4.62 Else 2

However, if I add one more else-if-then so it reads:

If CalcWorkYears > 23 Then 6.16 Else If CalcWorkYears > 20 Then 5.85 Else If CalcWorkYears > 17 Then 5.54 Else If CalcWorkYears > 14 Then 5.24 Else If CalcWorkYears > 11 Then 4.93 Else If CalcWorkYears > 8 Then 4.62 Else If CalcWorkYears > 0 THEN 3.08 Else 2

I receive the informative message "Text Business Execution error. Please contact your System Administrator." No problems with syntax.

The same thing happens if I use parenthesis:
(If (CalcWorkYears > 23) Then 6.16 Else (If (CalcWorkYears > 20) Then 5.85 Else (If (CalcWorkYears > 17) Then 5.54 Else (If (CalcWorkYears > 14) Then 5.24 Else (If (CalcWorkYears > 11) Then 4.93 Else (If(CalcWorkYears > 8) Then 4.62 Else (If (CalcWorkYears > 0) Then 3.08 Else 2)))))))

The 2nd problem calculated field stops working even sooner:
(If (CalcWorkYears > 24) Then 320 else (If (CalcWorkYears > 23) Then 312 Else (If (CalcWorkYears > 21) Then 304 Else (If (CalcWorkYears > 20) Then 296 Else (If (CalcWorkYears > 18) Then 288 Else (If (CalcWorkYears > 17) Then 280 Else (If (CalcWorkYears > 15) Then 272 Else (IF (CalcWorkYears > 14) Then 264 Else (If (CalcWorkYears > 12) then 256 Else (IF (CalcWorkYears > 11) Then 248 Else (If (CalcWorkYears > 9) Then 240 Else (If (CalcWorkYears > 8) Then 200 Else (If (CalcWorkYears > 1) Then 160 Else (If (CalcWorkYears > 0) Then 120 Else 40))))))))))))))

That one won't go past the 3rd If-Then-Else. It seems to be related to comparison to another calculated field. I can substitute a value or a field for the calculated field (CalcWorkYears) and don't receive the error. Does anyone know if there's some kind of limitation on using calculated fields in IF-THEN-ELSE statements? The calculated fields are defined as signed decimal fields that are larger than any of the values. The CalcWorkYears field is a signed integer field that is larger than any of the values. It seems from searching the user group that E9 BAQs are pickier than Vantage BAQs which may explain why the same BAQs work fine there. I've tried everything I can think of...I'm hoping someone will point me in the right direction. Maybe I need to put the values in a UD table instead of hardcoding them into the BAQ. Any ideas?

Sue

No virus found in this message.
Checked by AVG - www.avg.com
Version: 2012.0.1913 / Virus Database: 2411/4942 - Release Date: 04/17/12

[Non-text portions of this message have been removed]


[Non-text portions of this message have been removed]




No virus found in this message.
Checked by AVG - www.avg.com
Version: 2012.0.1913 / Virus Database: 2411/4942 - Release Date: 04/17/12


[Non-text portions of this message have been removed]
Can I get in on this?

Progress Is The COOOL!!!


*Jose C Gomez*
*Software Engineer*
*
*
*checkout my new blog <http://www.usdoingstuff.com> *
*
*T: 904.469.1524 mobile
E: jose@...
http://www.josecgomez.com
<http://www.linkedin.com/in/josecgomez> <http://www.facebook.com/josegomez>
<http://www.google.com/profiles/jose.gomez> <http://www.twitter.com/joc85>
<http://www.josecgomez.com/professional-resume/>
<http://www.josecgomez.com/feed/>
<http://www.usdoingstuff.com>

*Quis custodiet ipsos custodes?*



On Tue, Apr 17, 2012 at 4:36 PM, Vic Drecchio
<vic.drecchio@...>wrote:

> **
>
>
> No can do. Not even for free booze. :-)
>
> From: Rob Bucek
> Sent: Tuesday, April 17, 2012 4:23 PM
> To: vantage@yahoogroups.com
> Subject: RE: [Vantage] BAQ calculated field limitation?
>
>
> Vic,
>
> If you write the words on here, �Progress is the new cool!� I�ll buy you 3
> shots Sunday night @ margaritaville�
>
> Rob Bucek
> Production Control Manager
> PH: (715) 284-5376 ext 311
> Mobile: (715)896-0590
> FAX: (715)284-4084
> [Description: cid:mailto:1.234354861%40web65412.mail.ac4.yahoo.com]<
> http://www.dsmfg.com/>
> (Click the logo to view our site)<http://www.dsmfg.com/>
>
> From: mailto:vantage%40yahoogroups.com [mailto:mailto:vantage%
> 40yahoogroups.com] On Behalf Of Vic Drecchio
> Sent: Tuesday, April 17, 2012 3:19 PM
> To: mailto:vantage%40yahoogroups.com
> Subject: Re: [Vantage] BAQ calculated field limitation?
>
> Sue, I�ve hit the virtual ceiling on BAQs in the past. Although I have no
> confirmation, I�ve �heard� there are query-length limitations...... so an
> �If-Then-Else� limitation wouldn�t surprise me either.
>
> Any chance you�re a SQL customer (vs Progress db)? If so, let me know.
>
> From: snielsen28
> Sent: Tuesday, April 17, 2012 4:10 PM
> To: mailto:vantage%40yahoogroups.com<mailto:vantage%40yahoogroups.com>
> Subject: [Vantage] BAQ calculated field limitation?
>
> I'm testing BAQs in Epicor 9.05.607B. I'm having trouble with a couple of
> calculated fields in BAQs that are working fine in Vantage 8.03.409A. The
> BAQs are used in a dashboard to tell HR when an employee may be reaching
> his PTO max or needs to have his PTO accrual rate changed. A version of the
> 1st problem BAQ that works in Epicor 9 reads:
>
> If CalcWorkYears > 23 Then 6.16 Else If CalcWorkYears > 20 Then 5.85 Else
> If CalcWorkYears > 17 Then 5.54 Else If CalcWorkYears > 14 Then 5.24 Else
> If CalcWorkYears > 11 Then 4.93 Else If CalcWorkYears > 8 Then 4.62 Else 2
>
> However, if I add one more else-if-then so it reads:
>
> If CalcWorkYears > 23 Then 6.16 Else If CalcWorkYears > 20 Then 5.85 Else
> If CalcWorkYears > 17 Then 5.54 Else If CalcWorkYears > 14 Then 5.24 Else
> If CalcWorkYears > 11 Then 4.93 Else If CalcWorkYears > 8 Then 4.62 Else If
> CalcWorkYears > 0 THEN 3.08 Else 2
>
> I receive the informative message "Text Business Execution error. Please
> contact your System Administrator." No problems with syntax.
>
> The same thing happens if I use parenthesis:
> (If (CalcWorkYears > 23) Then 6.16 Else (If (CalcWorkYears > 20) Then 5.85
> Else (If (CalcWorkYears > 17) Then 5.54 Else (If (CalcWorkYears > 14) Then
> 5.24 Else (If (CalcWorkYears > 11) Then 4.93 Else (If(CalcWorkYears > 8)
> Then 4.62 Else (If (CalcWorkYears > 0) Then 3.08 Else 2)))))))
>
> The 2nd problem calculated field stops working even sooner:
> (If (CalcWorkYears > 24) Then 320 else (If (CalcWorkYears > 23) Then 312
> Else (If (CalcWorkYears > 21) Then 304 Else (If (CalcWorkYears > 20) Then
> 296 Else (If (CalcWorkYears > 18) Then 288 Else (If (CalcWorkYears > 17)
> Then 280 Else (If (CalcWorkYears > 15) Then 272 Else (IF (CalcWorkYears >
> 14) Then 264 Else (If (CalcWorkYears > 12) then 256 Else (IF (CalcWorkYears
> > 11) Then 248 Else (If (CalcWorkYears > 9) Then 240 Else (If
> (CalcWorkYears > 8) Then 200 Else (If (CalcWorkYears > 1) Then 160 Else (If
> (CalcWorkYears > 0) Then 120 Else 40))))))))))))))
>
> That one won't go past the 3rd If-Then-Else. It seems to be related to
> comparison to another calculated field. I can substitute a value or a field
> for the calculated field (CalcWorkYears) and don't receive the error. Does
> anyone know if there's some kind of limitation on using calculated fields
> in IF-THEN-ELSE statements? The calculated fields are defined as signed
> decimal fields that are larger than any of the values. The CalcWorkYears
> field is a signed integer field that is larger than any of the values. It
> seems from searching the user group that E9 BAQs are pickier than Vantage
> BAQs which may explain why the same BAQs work fine there. I've tried
> everything I can think of...I'm hoping someone will point me in the right
> direction. Maybe I need to put the values in a UD table instead of
> hardcoding them into the BAQ. Any ideas?
>
> Sue
>
> No virus found in this message.
> Checked by AVG - www.avg.com
> Version: 2012.0.1913 / Virus Database: 2411/4942 - Release Date: 04/17/12
>
> [Non-text portions of this message have been removed]
>
> [Non-text portions of this message have been removed]
>
> No virus found in this message.
> Checked by AVG - www.avg.com
> Version: 2012.0.1913 / Virus Database: 2411/4942 - Release Date: 04/17/12
>
> [Non-text portions of this message have been removed]
>
>
>


[Non-text portions of this message have been removed]
See you there man!

Rob Bucek
Production Control Manager
PH: (715) 284-5376 ext 311
Mobile: (715)896-0590
FAX: (715)284-4084

(Click the logo to view our site)


-----Original Message-----
From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of Jose Gomez
Sent: Tuesday, April 17, 2012 3:50 PM
To: vantage@yahoogroups.com
Subject: Re: [Vantage] BAQ calculated field limitation?

Can I get in on this?

Progress Is The COOOL!!!


*Jose C Gomez*
*Software Engineer*
*
*
*checkout my new blog <http://www.usdoingstuff.com> *
*
*T: 904.469.1524 mobile
E: jose@...
http://www.josecgomez.com
<http://www.linkedin.com/in/josecgomez> <http://www.facebook.com/josegomez>
<http://www.google.com/profiles/jose.gomez> <http://www.twitter.com/joc85>
<http://www.josecgomez.com/professional-resume/>
<http://www.josecgomez.com/feed/>
<http://www.usdoingstuff.com>

*Quis custodiet ipsos custodes?*



On Tue, Apr 17, 2012 at 4:36 PM, Vic Drecchio
<vic.drecchio@...>wrote:

> **
>
>
> No can do. Not even for free booze. :-)
>
> From: Rob Bucek
> Sent: Tuesday, April 17, 2012 4:23 PM
> To: vantage@yahoogroups.com
> Subject: RE: [Vantage] BAQ calculated field limitation?
>
>
> Vic,
>
> If you write the words on here, 'Progress is the new cool!' I'll buy
> you 3 shots Sunday night @ margaritaville...
>
> Rob Bucek
> Production Control Manager
> PH: (715) 284-5376 ext 311
> Mobile: (715)896-0590
> FAX: (715)284-4084
> [Description: cid:mailto:1.234354861%40web65412.mail.ac4.yahoo.com]<
> http://www.dsmfg.com/>
> (Click the logo to view our site)<http://www.dsmfg.com/>
>
> From: mailto:vantage%40yahoogroups.com [mailto:mailto:vantage%
> 40yahoogroups.com] On Behalf Of Vic Drecchio
> Sent: Tuesday, April 17, 2012 3:19 PM
> To: mailto:vantage%40yahoogroups.com
> Subject: Re: [Vantage] BAQ calculated field limitation?
>
> Sue, I've hit the virtual ceiling on BAQs in the past. Although I have
> no confirmation, I've "heard" there are query-length limitations......
> so an "If-Then-Else" limitation wouldn't surprise me either.
>
> Any chance you're a SQL customer (vs Progress db)? If so, let me know.
>
> From: snielsen28
> Sent: Tuesday, April 17, 2012 4:10 PM
> To: mailto:vantage%40yahoogroups.com<mailto:vantage%40yahoogroups.com>
> Subject: [Vantage] BAQ calculated field limitation?
>
> I'm testing BAQs in Epicor 9.05.607B. I'm having trouble with a couple
> of calculated fields in BAQs that are working fine in Vantage
> 8.03.409A. The BAQs are used in a dashboard to tell HR when an
> employee may be reaching his PTO max or needs to have his PTO accrual
> rate changed. A version of the 1st problem BAQ that works in Epicor 9 reads:
>
> If CalcWorkYears > 23 Then 6.16 Else If CalcWorkYears > 20 Then 5.85
> Else If CalcWorkYears > 17 Then 5.54 Else If CalcWorkYears > 14 Then
> 5.24 Else If CalcWorkYears > 11 Then 4.93 Else If CalcWorkYears > 8
> Then 4.62 Else 2
>
> However, if I add one more else-if-then so it reads:
>
> If CalcWorkYears > 23 Then 6.16 Else If CalcWorkYears > 20 Then 5.85
> Else If CalcWorkYears > 17 Then 5.54 Else If CalcWorkYears > 14 Then
> 5.24 Else If CalcWorkYears > 11 Then 4.93 Else If CalcWorkYears > 8
> Then 4.62 Else If CalcWorkYears > 0 THEN 3.08 Else 2
>
> I receive the informative message "Text Business Execution error.
> Please contact your System Administrator." No problems with syntax.
>
> The same thing happens if I use parenthesis:
> (If (CalcWorkYears > 23) Then 6.16 Else (If (CalcWorkYears > 20) Then
> 5.85 Else (If (CalcWorkYears > 17) Then 5.54 Else (If (CalcWorkYears >
> 14) Then
> 5.24 Else (If (CalcWorkYears > 11) Then 4.93 Else (If(CalcWorkYears >
> 8) Then 4.62 Else (If (CalcWorkYears > 0) Then 3.08 Else 2)))))))
>
> The 2nd problem calculated field stops working even sooner:
> (If (CalcWorkYears > 24) Then 320 else (If (CalcWorkYears > 23) Then
> 312 Else (If (CalcWorkYears > 21) Then 304 Else (If (CalcWorkYears >
> 20) Then
> 296 Else (If (CalcWorkYears > 18) Then 288 Else (If (CalcWorkYears >
> 17) Then 280 Else (If (CalcWorkYears > 15) Then 272 Else (IF
> (CalcWorkYears >
> 14) Then 264 Else (If (CalcWorkYears > 12) then 256 Else (IF
> (CalcWorkYears
> > 11) Then 248 Else (If (CalcWorkYears > 9) Then 240 Else (If
> (CalcWorkYears > 8) Then 200 Else (If (CalcWorkYears > 1) Then 160
> Else (If (CalcWorkYears > 0) Then 120 Else 40))))))))))))))
>
> That one won't go past the 3rd If-Then-Else. It seems to be related to
> comparison to another calculated field. I can substitute a value or a
> field for the calculated field (CalcWorkYears) and don't receive the
> error. Does anyone know if there's some kind of limitation on using
> calculated fields in IF-THEN-ELSE statements? The calculated fields
> are defined as signed decimal fields that are larger than any of the
> values. The CalcWorkYears field is a signed integer field that is
> larger than any of the values. It seems from searching the user group
> that E9 BAQs are pickier than Vantage BAQs which may explain why the
> same BAQs work fine there. I've tried everything I can think of...I'm
> hoping someone will point me in the right direction. Maybe I need to
> put the values in a UD table instead of hardcoding them into the BAQ. Any ideas?
>
> Sue
>
> No virus found in this message.
> Checked by AVG - www.avg.com
> Version: 2012.0.1913 / Virus Database: 2411/4942 - Release Date:
> 04/17/12
>
> [Non-text portions of this message have been removed]
>
> [Non-text portions of this message have been removed]
>
> No virus found in this message.
> Checked by AVG - www.avg.com
> Version: 2012.0.1913 / Virus Database: 2411/4942 - Release Date:
> 04/17/12
>
> [Non-text portions of this message have been removed]
>
>
>


[Non-text portions of this message have been removed]



------------------------------------

Useful links for the Yahoo!Groups Vantage Board are: ( Note: You must have already linked your email address to a yahoo id to enable access. )
(1) To access the Files Section of our Yahoo!Group for Report Builder and Crystal Reports and other 'goodies', please goto: http://groups.yahoo.com/group/vantage/files/.
(2) To search through old msg's goto: http://groups.yahoo.com/group/vantage/messages
(3) To view links to Vendors that provide Vantage services goto: http://groups.yahoo.com/group/vantage/linksYahoo! Groups Links
I'm in too! Progress is the new cool! See you at margaritaville!!! Rob, make sure they're BIG shots like a couple years ago at Shadow bar...

Virginia Joseph
Deep Hole Specialists, LLC
440-708-5239
vjoseph@...

--- In vantage@yahoogroups.com, Rob Bucek <rbucek@...> wrote:
>
> Vic,
>
> If you write the words on here, ‘Progress is the new cool!’ I’ll buy you 3 shots Sunday night @ margaritaville…
>
>
> Rob Bucek
> Production Control Manager
> PH: (715) 284-5376 ext 311
> Mobile: (715)896-0590
> FAX: (715)284-4084
> [Description: cid:1.234354861@...]<http://www.dsmfg.com/>
> (Click the logo to view our site)<http://www.dsmfg.com/>
>
Ok, I'm in.

Progress Is The COOOL!!!

When are we meeting?!? LOL


--- In vantage@yahoogroups.com, "snielsen28" <snielsen.hipco@...> wrote:
>
> I'm testing BAQs in Epicor 9.05.607B. I'm having trouble with a couple of calculated fields in BAQs that are working fine in Vantage 8.03.409A. The BAQs are used in a dashboard to tell HR when an employee may be reaching his PTO max or needs to have his PTO accrual rate changed. A version of the 1st problem BAQ that works in Epicor 9 reads:
>
> If CalcWorkYears > 23 Then 6.16 Else If CalcWorkYears > 20 Then 5.85 Else If CalcWorkYears > 17 Then 5.54 Else If CalcWorkYears > 14 Then 5.24 Else If CalcWorkYears > 11 Then 4.93 Else If CalcWorkYears > 8 Then 4.62 Else 2
>
> However, if I add one more else-if-then so it reads:
>
> If CalcWorkYears > 23 Then 6.16 Else If CalcWorkYears > 20 Then 5.85 Else If CalcWorkYears > 17 Then 5.54 Else If CalcWorkYears > 14 Then 5.24 Else If CalcWorkYears > 11 Then 4.93 Else If CalcWorkYears > 8 Then 4.62 Else If CalcWorkYears > 0 THEN 3.08 Else 2
>
> I receive the informative message "Text Business Execution error. Please contact your System Administrator." No problems with syntax.
>
> The same thing happens if I use parenthesis:
> (If (CalcWorkYears > 23) Then 6.16 Else (If (CalcWorkYears > 20) Then 5.85 Else (If (CalcWorkYears > 17) Then 5.54 Else (If (CalcWorkYears > 14) Then 5.24 Else (If (CalcWorkYears > 11) Then 4.93 Else (If(CalcWorkYears > 8) Then 4.62 Else (If (CalcWorkYears > 0) Then 3.08 Else 2)))))))
>
> The 2nd problem calculated field stops working even sooner:
> (If (CalcWorkYears > 24) Then 320 else (If (CalcWorkYears > 23) Then 312 Else (If (CalcWorkYears > 21) Then 304 Else (If (CalcWorkYears > 20) Then 296 Else (If (CalcWorkYears > 18) Then 288 Else (If (CalcWorkYears > 17) Then 280 Else (If (CalcWorkYears > 15) Then 272 Else (IF (CalcWorkYears > 14) Then 264 Else (If (CalcWorkYears > 12) then 256 Else (IF (CalcWorkYears > 11) Then 248 Else (If (CalcWorkYears > 9) Then 240 Else (If (CalcWorkYears > 8) Then 200 Else (If (CalcWorkYears > 1) Then 160 Else (If (CalcWorkYears > 0) Then 120 Else 40))))))))))))))
>
> That one won't go past the 3rd If-Then-Else. It seems to be related to comparison to another calculated field. I can substitute a value or a field for the calculated field (CalcWorkYears) and don't receive the error. Does anyone know if there's some kind of limitation on using calculated fields in IF-THEN-ELSE statements? The calculated fields are defined as signed decimal fields that are larger than any of the values. The CalcWorkYears field is a signed integer field that is larger than any of the values. It seems from searching the user group that E9 BAQs are pickier than Vantage BAQs which may explain why the same BAQs work fine there. I've tried everything I can think of...I'm hoping someone will point me in the right direction. Maybe I need to put the values in a UD table instead of hardcoding them into the BAQ. Any ideas?
>
> Sue
>
Omg…so I guess I’m the baby sitter then huh? They weren’t too kind to me if you remember lol

Rob Bucek
Production Control Manager
PH: (715) 284-5376 ext 311
Mobile: (715)896-0590
FAX: (715)284-4084
[Description: cid:1.234354861@...]<http://www.dsmfg.com/>
(Click the logo to view our site)<http://www.dsmfg.com/>

From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of Virginia Joseph
Sent: Wednesday, April 18, 2012 8:21 AM
To: vantage@yahoogroups.com
Subject: [Vantage] Re: BAQ calculated field limitation?



I'm in too! Progress is the new cool! See you at margaritaville!!! Rob, make sure they're BIG shots like a couple years ago at Shadow bar...

Virginia Joseph
Deep Hole Specialists, LLC
440-708-5239
vjoseph@...<mailto:vjoseph%40deephole.com>

--- In vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com>, Rob Bucek <rbucek@...> wrote:
>
> Vic,
>
> If you write the words on here, ‘Progress is the new cool!’ I’ll buy you 3 shots Sunday night @ margaritaville…
>
>
> Rob Bucek
> Production Control Manager
> PH: (715) 284-5376 ext 311
> Mobile: (715)896-0590
> FAX: (715)284-4084
> [Description: cid:1.234354861@...]<http://www.dsmfg.com/>
> (Click the logo to view our site)<http://www.dsmfg.com/>
>



[Non-text portions of this message have been removed]
I found a way to get my BAQ to work in Epicor 9. I found an entry in the server log that said "More than 4000 items in a single statement. Use the -tok parameter." I found an answerbook on EpicWeb for the same error message when running a BPM. It was AnswerBook# 12542MPS and said:

PROBLEM RESOLUTION:
1. Navigate to epicor904 or epicor905\server\config depending on your version and open the mfgsys.pf file in notepad
2. Locate the -tok parameter and double the current value (ex if it is set to 3000 increase it to 6000) - there isn't a maximum value that can be set, the limitation is with the amount of RAM on the server
3. You will need to restart your appservers before the new setting takes affect
4. Try to create your new BPM after logging back into the database

I played around with that parameter. If I set it too high, I got the message "REPLACE/CONCAT may not result in data > 32000 bytes." I searched around and found out the -tok parameter is the number of tokens per statement and each word or special character (such as parenthesis, plus sign, and minus sign) counts as one token. I trimmed all excess from my BAQ (got rid of parenthesis for documentation purposes only, etc.) and was able to get it to run by setting the -tok parameter at 7000 (the default was 4000). I'm not sure why the same BAQ didn't exceed the token limit of 4000 in Vantage, apparently Epicor 9 is "wordier"? I also don't know if increasing the tok parameter will cause any degraded performance issues when all users are on Epicor 9, now it's just me on the test server.

Thought I'd report my findings in the hopes that it will help someone else out :)

Sue
--- In vantage@yahoogroups.com, "snielsen28" <snielsen.hipco@...> wrote:
>
> We're Progress. I may toss this over to support and see what they make of it. I appreciate the verification that there do appear to be some limitations working with BAQs.
>
> --- In vantage@yahoogroups.com, "Vic Drecchio" <vic.drecchio@> wrote:
> >
> > Sue, I’ve hit the virtual ceiling on BAQs in the past. Although I have no confirmation, I’ve “heard” there are query-length limitations...... so an “If-Then-Else” limitation wouldn’t surprise me either.
> >
> > Any chance you’re a SQL customer (vs Progress db)? If so, let me know.
> >
> > From: snielsen28
> > Sent: Tuesday, April 17, 2012 4:10 PM
> > To: vantage@yahoogroups.com
> > Subject: [Vantage] BAQ calculated field limitation?
> >
> >
> > I'm testing BAQs in Epicor 9.05.607B. I'm having trouble with a couple of calculated fields in BAQs that are working fine in Vantage 8.03.409A. The BAQs are used in a dashboard to tell HR when an employee may be reaching his PTO max or needs to have his PTO accrual rate changed. A version of the 1st problem BAQ that works in Epicor 9 reads:
> >
> > If CalcWorkYears > 23 Then 6.16 Else If CalcWorkYears > 20 Then 5.85 Else If CalcWorkYears > 17 Then 5.54 Else If CalcWorkYears > 14 Then 5.24 Else If CalcWorkYears > 11 Then 4.93 Else If CalcWorkYears > 8 Then 4.62 Else 2
> >
> > However, if I add one more else-if-then so it reads:
> >
> > If CalcWorkYears > 23 Then 6.16 Else If CalcWorkYears > 20 Then 5.85 Else If CalcWorkYears > 17 Then 5.54 Else If CalcWorkYears > 14 Then 5.24 Else If CalcWorkYears > 11 Then 4.93 Else If CalcWorkYears > 8 Then 4.62 Else If CalcWorkYears > 0 THEN 3.08 Else 2
> >
> > I receive the informative message "Text Business Execution error. Please contact your System Administrator." No problems with syntax.
> >
> > The same thing happens if I use parenthesis:
> > (If (CalcWorkYears > 23) Then 6.16 Else (If (CalcWorkYears > 20) Then 5.85 Else (If (CalcWorkYears > 17) Then 5.54 Else (If (CalcWorkYears > 14) Then 5.24 Else (If (CalcWorkYears > 11) Then 4.93 Else (If(CalcWorkYears > 8) Then 4.62 Else (If (CalcWorkYears > 0) Then 3.08 Else 2)))))))
> >
> > The 2nd problem calculated field stops working even sooner:
> > (If (CalcWorkYears > 24) Then 320 else (If (CalcWorkYears > 23) Then 312 Else (If (CalcWorkYears > 21) Then 304 Else (If (CalcWorkYears > 20) Then 296 Else (If (CalcWorkYears > 18) Then 288 Else (If (CalcWorkYears > 17) Then 280 Else (If (CalcWorkYears > 15) Then 272 Else (IF (CalcWorkYears > 14) Then 264 Else (If (CalcWorkYears > 12) then 256 Else (IF (CalcWorkYears > 11) Then 248 Else (If (CalcWorkYears > 9) Then 240 Else (If (CalcWorkYears > 8) Then 200 Else (If (CalcWorkYears > 1) Then 160 Else (If (CalcWorkYears > 0) Then 120 Else 40))))))))))))))
> >
> > That one won't go past the 3rd If-Then-Else. It seems to be related to comparison to another calculated field. I can substitute a value or a field for the calculated field (CalcWorkYears) and don't receive the error. Does anyone know if there's some kind of limitation on using calculated fields in IF-THEN-ELSE statements? The calculated fields are defined as signed decimal fields that are larger than any of the values. The CalcWorkYears field is a signed integer field that is larger than any of the values. It seems from searching the user group that E9 BAQs are pickier than Vantage BAQs which may explain why the same BAQs work fine there. I've tried everything I can think of...I'm hoping someone will point me in the right direction. Maybe I need to put the values in a UD table instead of hardcoding them into the BAQ. Any ideas?
> >
> > Sue
> >
> >
> >
> >
> > No virus found in this message.
> > Checked by AVG - www.avg.com
> > Version: 2012.0.1913 / Virus Database: 2411/4942 - Release Date: 04/17/12
> >
> >
> > [Non-text portions of this message have been removed]
> >
>
Sue, great summary and thanks for sharing. That’s incredible, glad you got it working.



_____

From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of snielsen28
Sent: Wednesday, April 18, 2012 2:51 PM
To: vantage@yahoogroups.com
Subject: [Vantage] Re: BAQ calculated field limitation?





I found a way to get my BAQ to work in Epicor 9. I found an entry in the server log that said "More than 4000 items in a single statement. Use the -tok parameter." I found an answerbook on EpicWeb for the same error message when running a BPM. It was AnswerBook# 12542MPS and said:

PROBLEM RESOLUTION:
1. Navigate to epicor904 or epicor905\server\config depending on your version and open the mfgsys.pf file in notepad
2. Locate the -tok parameter and double the current value (ex if it is set to 3000 increase it to 6000) - there isn't a maximum value that can be set, the limitation is with the amount of RAM on the server
3. You will need to restart your appservers before the new setting takes affect
4. Try to create your new BPM after logging back into the database

I played around with that parameter. If I set it too high, I got the message "REPLACE/CONCAT may not result in data > 32000 bytes." I searched around and found out the -tok parameter is the number of tokens per statement and each word or special character (such as parenthesis, plus sign, and minus sign) counts as one token. I trimmed all excess from my BAQ (got rid of parenthesis for documentation purposes only, etc.) and was able to get it to run by setting the -tok parameter at 7000 (the default was 4000). I'm not sure why the same BAQ didn't exceed the token limit of 4000 in Vantage, apparently Epicor 9 is "wordier"? I also don't know if increasing the tok parameter will cause any degraded performance issues when all users are on Epicor 9, now it's just me on the test server.

Thought I'd report my findings in the hopes that it will help someone else out :)

Sue
--- In vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com> , "snielsen28" <snielsen.hipco@...> wrote:
>
> We're Progress. I may toss this over to support and see what they make of it. I appreciate the verification that there do appear to be some limitations working with BAQs.
>
> --- In vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com> , "Vic Drecchio" <vic.drecchio@> wrote:
> >
> > Sue, I’ve hit the virtual ceiling on BAQs in the past. Although I have no confirmation, I’ve “heard” there are query-length limitations...... so an “If-Then-Else” limitation wouldn’t surprise me either.
> >
> > Any chance you’re a SQL customer (vs Progress db)? If so, let me know.
> >
> > From: snielsen28
> > Sent: Tuesday, April 17, 2012 4:10 PM
> > To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
> > Subject: [Vantage] BAQ calculated field limitation?
> >
> >
> > I'm testing BAQs in Epicor 9.05.607B. I'm having trouble with a couple of calculated fields in BAQs that are working fine in Vantage 8.03.409A. The BAQs are used in a dashboard to tell HR when an employee may be reaching his PTO max or needs to have his PTO accrual rate changed. A version of the 1st problem BAQ that works in Epicor 9 reads:
> >
> > If CalcWorkYears > 23 Then 6.16 Else If CalcWorkYears > 20 Then 5.85 Else If CalcWorkYears > 17 Then 5.54 Else If CalcWorkYears > 14 Then 5.24 Else If CalcWorkYears > 11 Then 4.93 Else If CalcWorkYears > 8 Then 4.62 Else 2
> >
> > However, if I add one more else-if-then so it reads:
> >
> > If CalcWorkYears > 23 Then 6.16 Else If CalcWorkYears > 20 Then 5.85 Else If CalcWorkYears > 17 Then 5.54 Else If CalcWorkYears > 14 Then 5.24 Else If CalcWorkYears > 11 Then 4.93 Else If CalcWorkYears > 8 Then 4.62 Else If CalcWorkYears > 0 THEN 3.08 Else 2
> >
> > I receive the informative message "Text Business Execution error. Please contact your System Administrator." No problems with syntax.
> >
> > The same thing happens if I use parenthesis:
> > (If (CalcWorkYears > 23) Then 6.16 Else (If (CalcWorkYears > 20) Then 5.85 Else (If (CalcWorkYears > 17) Then 5.54 Else (If (CalcWorkYears > 14) Then 5.24 Else (If (CalcWorkYears > 11) Then 4.93 Else (If(CalcWorkYears > 8) Then 4.62 Else (If (CalcWorkYears > 0) Then 3.08 Else 2)))))))
> >
> > The 2nd problem calculated field stops working even sooner:
> > (If (CalcWorkYears > 24) Then 320 else (If (CalcWorkYears > 23) Then 312 Else (If (CalcWorkYears > 21) Then 304 Else (If (CalcWorkYears > 20) Then 296 Else (If (CalcWorkYears > 18) Then 288 Else (If (CalcWorkYears > 17) Then 280 Else (If (CalcWorkYears > 15) Then 272 Else (IF (CalcWorkYears > 14) Then 264 Else (If (CalcWorkYears > 12) then 256 Else (IF (CalcWorkYears > 11) Then 248 Else (If (CalcWorkYears > 9) Then 240 Else (If (CalcWorkYears > 8) Then 200 Else (If (CalcWorkYears > 1) Then 160 Else (If (CalcWorkYears > 0) Then 120 Else 40))))))))))))))
> >
> > That one won't go past the 3rd If-Then-Else. It seems to be related to comparison to another calculated field. I can substitute a value or a field for the calculated field (CalcWorkYears) and don't receive the error. Does anyone know if there's some kind of limitation on using calculated fields in IF-THEN-ELSE statements? The calculated fields are defined as signed decimal fields that are larger than any of the values. The CalcWorkYears field is a signed integer field that is larger than any of the values. It seems from searching the user group that E9 BAQs are pickier than Vantage BAQs which may explain why the same BAQs work fine there. I've tried everything I can think of...I'm hoping someone will point me in the right direction. Maybe I need to put the values in a UD table instead of hardcoding them into the BAQ. Any ideas?
> >
> > Sue
> >
> >
> >
> >
> > No virus found in this message.
> > Checked by AVG - www.avg.com
> > Version: 2012.0.1913 / Virus Database: 2411/4942 - Release Date: 04/17/12
> >
> >
> > [Non-text portions of this message have been removed]
> >
>



No virus found in this message.
Checked by AVG - www.avg.com
Version: 2012.0.1913 / Virus Database: 2411/4944 - Release Date: 04/18/12



[Non-text portions of this message have been removed]
You can find me at Margaritaville, directly across from Caesars.... food and beverage prices are much more reasonable and the people watching is fantastic. I actually chose to stay at the Flamingo, this time. Caesars is over-priced. I got the best room at the Flamingo (newly renovated Feb 2012) cheaper than the $150/night rooms in the crappy, old tower of Caesars where the Epicor rooms are located. Plus, a Jimmy Buffett themed casino? Watch out! http://www.margaritavillelasvegas.com/

From: mattcald_73
Sent: Wednesday, April 18, 2012 9:44 AM
To: vantage@yahoogroups.com
Subject: [Vantage] Re: BAQ calculated field limitation?


Ok, I'm in.

Progress Is The COOOL!!!

When are we meeting?!? LOL

--- In mailto:vantage%40yahoogroups.com, "snielsen28" <snielsen.hipco@...> wrote:
>
> I'm testing BAQs in Epicor 9.05.607B. I'm having trouble with a couple of calculated fields in BAQs that are working fine in Vantage 8.03.409A. The BAQs are used in a dashboard to tell HR when an employee may be reaching his PTO max or needs to have his PTO accrual rate changed. A version of the 1st problem BAQ that works in Epicor 9 reads:
>
> If CalcWorkYears > 23 Then 6.16 Else If CalcWorkYears > 20 Then 5.85 Else If CalcWorkYears > 17 Then 5.54 Else If CalcWorkYears > 14 Then 5.24 Else If CalcWorkYears > 11 Then 4.93 Else If CalcWorkYears > 8 Then 4.62 Else 2
>
> However, if I add one more else-if-then so it reads:
>
> If CalcWorkYears > 23 Then 6.16 Else If CalcWorkYears > 20 Then 5.85 Else If CalcWorkYears > 17 Then 5.54 Else If CalcWorkYears > 14 Then 5.24 Else If CalcWorkYears > 11 Then 4.93 Else If CalcWorkYears > 8 Then 4.62 Else If CalcWorkYears > 0 THEN 3.08 Else 2
>
> I receive the informative message "Text Business Execution error. Please contact your System Administrator." No problems with syntax.
>
> The same thing happens if I use parenthesis:
> (If (CalcWorkYears > 23) Then 6.16 Else (If (CalcWorkYears > 20) Then 5.85 Else (If (CalcWorkYears > 17) Then 5.54 Else (If (CalcWorkYears > 14) Then 5.24 Else (If (CalcWorkYears > 11) Then 4.93 Else (If(CalcWorkYears > 8) Then 4.62 Else (If (CalcWorkYears > 0) Then 3.08 Else 2)))))))
>
> The 2nd problem calculated field stops working even sooner:
> (If (CalcWorkYears > 24) Then 320 else (If (CalcWorkYears > 23) Then 312 Else (If (CalcWorkYears > 21) Then 304 Else (If (CalcWorkYears > 20) Then 296 Else (If (CalcWorkYears > 18) Then 288 Else (If (CalcWorkYears > 17) Then 280 Else (If (CalcWorkYears > 15) Then 272 Else (IF (CalcWorkYears > 14) Then 264 Else (If (CalcWorkYears > 12) then 256 Else (IF (CalcWorkYears > 11) Then 248 Else (If (CalcWorkYears > 9) Then 240 Else (If (CalcWorkYears > 8) Then 200 Else (If (CalcWorkYears > 1) Then 160 Else (If (CalcWorkYears > 0) Then 120 Else 40))))))))))))))
>
> That one won't go past the 3rd If-Then-Else. It seems to be related to comparison to another calculated field. I can substitute a value or a field for the calculated field (CalcWorkYears) and don't receive the error. Does anyone know if there's some kind of limitation on using calculated fields in IF-THEN-ELSE statements? The calculated fields are defined as signed decimal fields that are larger than any of the values. The CalcWorkYears field is a signed integer field that is larger than any of the values. It seems from searching the user group that E9 BAQs are pickier than Vantage BAQs which may explain why the same BAQs work fine there. I've tried everything I can think of...I'm hoping someone will point me in the right direction. Maybe I need to put the values in a UD table instead of hardcoding them into the BAQ. Any ideas?
>
> Sue
>




No virus found in this message.
Checked by AVG - www.avg.com
Version: 2012.0.1913 / Virus Database: 2411/4944 - Release Date: 04/18/12


[Non-text portions of this message have been removed]
Sue,

First, great to hear you have this working.

Second, I think your follow-up is great for the group. We need more of this type of communication. So many times I see an answer that sounds promising, but you never hear how it worked out or if it had to be tweaked. Or, you never see a solid answer and you always wonder if the issue was resolved by another avenue. I am guilty of this myself.

Thanks for sharing.

Jeff

--- In vantage@yahoogroups.com, "snielsen28" <snielsen.hipco@...> wrote:
>
> I found a way to get my BAQ to work in Epicor 9. I found an entry in the server log that said "More than 4000 items in a single statement. Use the -tok parameter." I found an answerbook on EpicWeb for the same error message when running a BPM. It was AnswerBook# 12542MPS and said:
>
> PROBLEM RESOLUTION:
> 1. Navigate to epicor904 or epicor905\server\config depending on your version and open the mfgsys.pf file in notepad
> 2. Locate the -tok parameter and double the current value (ex if it is set to 3000 increase it to 6000) - there isn't a maximum value that can be set, the limitation is with the amount of RAM on the server
> 3. You will need to restart your appservers before the new setting takes affect
> 4. Try to create your new BPM after logging back into the database
>
> I played around with that parameter. If I set it too high, I got the message "REPLACE/CONCAT may not result in data > 32000 bytes." I searched around and found out the -tok parameter is the number of tokens per statement and each word or special character (such as parenthesis, plus sign, and minus sign) counts as one token. I trimmed all excess from my BAQ (got rid of parenthesis for documentation purposes only, etc.) and was able to get it to run by setting the -tok parameter at 7000 (the default was 4000). I'm not sure why the same BAQ didn't exceed the token limit of 4000 in Vantage, apparently Epicor 9 is "wordier"? I also don't know if increasing the tok parameter will cause any degraded performance issues when all users are on Epicor 9, now it's just me on the test server.
>
> Thought I'd report my findings in the hopes that it will help someone else out :)
>
> Sue
> --- In vantage@yahoogroups.com, "snielsen28" <snielsen.hipco@> wrote:
> >
> > We're Progress. I may toss this over to support and see what they make of it. I appreciate the verification that there do appear to be some limitations working with BAQs.
> >
> > --- In vantage@yahoogroups.com, "Vic Drecchio" <vic.drecchio@> wrote:
> > >
> > > Sue, I’ve hit the virtual ceiling on BAQs in the past. Although I have no confirmation, I’ve “heard” there are query-length limitations...... so an “If-Then-Else” limitation wouldn’t surprise me either.
> > >
> > > Any chance you’re a SQL customer (vs Progress db)? If so, let me know.
> > >
> > > From: snielsen28
> > > Sent: Tuesday, April 17, 2012 4:10 PM
> > > To: vantage@yahoogroups.com
> > > Subject: [Vantage] BAQ calculated field limitation?
> > >
> > >
> > > I'm testing BAQs in Epicor 9.05.607B. I'm having trouble with a couple of calculated fields in BAQs that are working fine in Vantage 8.03.409A. The BAQs are used in a dashboard to tell HR when an employee may be reaching his PTO max or needs to have his PTO accrual rate changed. A version of the 1st problem BAQ that works in Epicor 9 reads:
> > >
> > > If CalcWorkYears > 23 Then 6.16 Else If CalcWorkYears > 20 Then 5.85 Else If CalcWorkYears > 17 Then 5.54 Else If CalcWorkYears > 14 Then 5.24 Else If CalcWorkYears > 11 Then 4.93 Else If CalcWorkYears > 8 Then 4.62 Else 2
> > >
> > > However, if I add one more else-if-then so it reads:
> > >
> > > If CalcWorkYears > 23 Then 6.16 Else If CalcWorkYears > 20 Then 5.85 Else If CalcWorkYears > 17 Then 5.54 Else If CalcWorkYears > 14 Then 5.24 Else If CalcWorkYears > 11 Then 4.93 Else If CalcWorkYears > 8 Then 4.62 Else If CalcWorkYears > 0 THEN 3.08 Else 2
> > >
> > > I receive the informative message "Text Business Execution error. Please contact your System Administrator." No problems with syntax.
> > >
> > > The same thing happens if I use parenthesis:
> > > (If (CalcWorkYears > 23) Then 6.16 Else (If (CalcWorkYears > 20) Then 5.85 Else (If (CalcWorkYears > 17) Then 5.54 Else (If (CalcWorkYears > 14) Then 5.24 Else (If (CalcWorkYears > 11) Then 4.93 Else (If(CalcWorkYears > 8) Then 4.62 Else (If (CalcWorkYears > 0) Then 3.08 Else 2)))))))
> > >
> > > The 2nd problem calculated field stops working even sooner:
> > > (If (CalcWorkYears > 24) Then 320 else (If (CalcWorkYears > 23) Then 312 Else (If (CalcWorkYears > 21) Then 304 Else (If (CalcWorkYears > 20) Then 296 Else (If (CalcWorkYears > 18) Then 288 Else (If (CalcWorkYears > 17) Then 280 Else (If (CalcWorkYears > 15) Then 272 Else (IF (CalcWorkYears > 14) Then 264 Else (If (CalcWorkYears > 12) then 256 Else (IF (CalcWorkYears > 11) Then 248 Else (If (CalcWorkYears > 9) Then 240 Else (If (CalcWorkYears > 8) Then 200 Else (If (CalcWorkYears > 1) Then 160 Else (If (CalcWorkYears > 0) Then 120 Else 40))))))))))))))
> > >
> > > That one won't go past the 3rd If-Then-Else. It seems to be related to comparison to another calculated field. I can substitute a value or a field for the calculated field (CalcWorkYears) and don't receive the error. Does anyone know if there's some kind of limitation on using calculated fields in IF-THEN-ELSE statements? The calculated fields are defined as signed decimal fields that are larger than any of the values. The CalcWorkYears field is a signed integer field that is larger than any of the values. It seems from searching the user group that E9 BAQs are pickier than Vantage BAQs which may explain why the same BAQs work fine there. I've tried everything I can think of...I'm hoping someone will point me in the right direction. Maybe I need to put the values in a UD table instead of hardcoding them into the BAQ. Any ideas?
> > >
> > > Sue
> > >
> > >
> > >
> > >
> > > No virus found in this message.
> > > Checked by AVG - www.avg.com
> > > Version: 2012.0.1913 / Virus Database: 2411/4942 - Release Date: 04/17/12
> > >
> > >
> > > [Non-text portions of this message have been removed]
> > >
> >
>