Receiving 'Invalid Criteria Setup' error messages for certain Fees in RecTrac 3.1.
Problem
Sometimes when processing a transaction, we see the following message:
'Invalid Criteria Setup for Activity Advanced Swim Lessons I (110100-01), Fee: Swim Lesson Fee'.
What does this mean and what can we do about it?
Solution
This is likely the result a Fee with Criteria where one (or more) of the Criteria has a <blank> Record Type. If a fee with a <blank> Record Type Criteria is used in a calculation during a RecTrac GUI or WebTrac sale, an error such as the one described above will display.
The following message template is used: 'Invalid Criteria SetUp for ' + Item Description + ', Fee: ' + Fee Description. For Example: 'Invalid Criteria Setup for Activity Advanced Swim Lessons I (110100-01), Fee: Swim Lesson Fee'
To resolve this error, you need fix the criteria record for the item's fee. VSI recommends deleting the criteria record and re-adding it.
If a criteria record for a fee has a record type and that fee record is used in a calculation during a RecTrac GUI or WebTrac sale, an error will now display showing the following: 'Invalid Criteria SetUp for ' + Item Description + ', Fee: ' + Fee Description
Additionally: If an AppServer process (i.e. Search Index Builder) attempts to calculate the fee for the same criteria record with a record type, rather than repeatedly throwing an error in the Notification center every minute, the system will enter a note, such as the following, in the AppServer log file. This example assumes the same Fee as the one in the example above:
AS -- (Procedure: 'Business/CalcFees.p' Line:1399) Invalid Criteria SetUp for Module: AR Table: ARSection ID: 4096396 SACriteria ID: 4549334, Fee: Swim Lesson Fee.
Again: to resolve this issue, you need to fix the criteria record for the item's fee by deleting the criteria record and re-adding it.