Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Illegal recursion in rule evaluation
Message
De
03/01/2005 11:28:05
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Illegal recursion in rule evaluation
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
00973840
Message ID:
00973840
Vues:
120
HI,

I've got a field rule on Items.iQtyOnHand:
iqtyonhand=>0
I've also got a trigger on SalesDetails:
vmp_ri("INSERT").AND.adjustqtyonhand(iitemid,iqty*-1)
My trigger procedure is:
PROCEDURE AdjustQtyOnHand
LPARAMETERS tiItemId, tiQty

UPDATE Items;
	SET iQtyOnHand = iQtyOnHand + m.tiQty ;
	WHERE iItemId = m.tiItemId ;
		AND cType # "Service"
If I enter a sale of an item that results in a negative stock value, when running the exe in runtime, I get an error: "Illegal recursion in rule evaluation" (after I get my "Not enough stock available" MsgSvc message).

The error is #1887 and the help suggests checking my rule and trigger code.

Can anybody see what's wrong?
Frank.

Frank Cazabon
Samaan Systems Ltd.
www.samaansystems.com
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform