Business Rules Issue - New

Discussions related to SoftPro Select Server development.

Moderator: Phil Barton

Post Reply
roteague
Posts: 292
Joined: Thu Sep 25, 2008 4:49 pm
Location: Honolulu, Hawaii

Business Rules Issue - New

Post by roteague »

Once again, I'm running into Business Rules issues when opening an order. This started when we upgraded to SoftPro 2.5. I have validated that all the proper .dll's and subfolders exist (this isn't the first time I've run into these issues).

At the moment I'm seeing this issue raised in executing the following business rules:

1.) SoftPro.BusinessRules.Core.SisterHudLine
2.) SoftPro.BusinessRules.Core.PayeeAggregator
3.) SoftPro.BusinessRules.Core.FindPercentBasisCharge
4.) SoftPro.BusinessRules.Core.AdditionalChargeFirstNonEmpty

There may be more, but I've only tested this so far with a limited number of orders. They are repeatable.

The report is as follows:

Code: Select all

Event Type:	Error
Event Source:	TG.SoftPro.EventNotification
Event Category:	None
Event ID:	0
Date:		6/7/2010
Time:		11:33:54 AM
User:		N/A
Computer:	SOFTPRO
Description:
SoftProOrderActivity::Execute - Exception. Error: Error executing business rule 'SoftPro.BusinessRules.Core.SisterHudLine'
Inputs:
	1. 101
	2. 
	3. 
. Stack Trace:    at SoftPro.BusinessRules.Base.BusinessRuleBase.Execute(Object[] inputs, ExecutionInfo ruleInfo)
   at SoftPro.BusinessObjects.Base.Engine.GetRuleDataValue(IBusinessObject businessObject, String ruleInstanceName, Object potentialNewValue)
   at SoftPro.BusinessObjects.Base.BusinessObjectBase.FulfillDataItemNormally(Dependency depItem, DataValue sourceItem)
   at SoftPro.BusinessObjects.Base.BusinessObjectBase.GetDataValue(String dataItemName)
   at SoftPro.BusinessObjects.Base.HUDLineEngine.GetHudItemsFor(IHudLine line, List`1& dependencies)
   at SoftPro.BusinessObjects.Base.Engine.GetRuleDataValue(IBusinessObject businessObject, String ruleInstanceName, Object potentialNewValue)
   at SoftPro.BusinessObjects.Base.BusinessObjectBase.FulfillDataItemNormally(Dependency depItem, DataValue sourceItem)
   at SoftPro.BusinessObjects.Base.BusinessObjectBase.GetDataValue(String dataItemName)
   at SoftPro.BusinessObjects.Base.BusinessObjectBase.GetDataItem(String dataItemName)
   at SoftPro.BusinessObjects.Base.Engine.ReleaseCalculatedChildRequests()
   at SoftPro.BusinessObjects.Core.Order.Load(Guid primaryID, ContextRoot rootContext)
   at SoftPro.BusinessObjects.Base.BusinessObjectCache.GetBusinessObject(String contextName, Guid primaryKey, ContextRoot rootContext, Boolean allowDisambiguation, SqlDataReader openReader, Boolean allowLoad, Boolean loadingAsCopy, Boolean acquiringRoot, Guid idForNewObject)
   at SoftPro.BusinessObjects.Base.BusinessObjectCache.GetRootObject(String contextName, Guid primaryKey, ContextRoot rootContext, Boolean loadingAsCopy)
   at SoftPro.BusinessObjects.Base.BusinessObjectCache.AcquireRootReference(String contextName, Guid primaryKey, Boolean loadAsCopy)
   at SoftPro.BusinessObjects.Base.BusinessObjectCache.AcquireRootReference(String contextName, Guid primaryKey)
   at SoftPro.OrderTracking.Client.OrderTracking.OpenOrderObject(Guid id)
   at SoftPro.OrderTracking.Client.OrderTracking.OpenOrder(Guid id, Boolean readOnly, Boolean isTemplate)
   at SoftPro.OrderTracking.Client.OrderTracking.GetOrderOrTemplate(OrderQuerySpec spec, Boolean readOnly, Boolean isTemplate)
   at SoftPro.OrderTracking.Client.OrderTracking.GetOrder(OrderQuerySpec spec, Boolean readOnly)
   at TG.SoftPro.LoadOrderActivity.SoftProOrderActivity.Execute(ActivityExecutionContext executionContext)

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

Code: Select all

Event Type:	Error
Event Source:	TG.SoftPro.EventNotification
Event Category:	None
Event ID:	0
Date:		6/7/2010
Time:		11:55:18 AM
User:		N/A
Computer:	SOFTPRO
Description:
SoftProOrderActivity::Execute - Exception. Error: Error executing business rule 'SoftPro.BusinessRules.Core.PayeeAggregator'
Inputs:
	1. 
	2. True
. Stack Trace:    at SoftPro.BusinessRules.Base.BusinessRuleBase.Execute(Object[] inputs, ExecutionInfo ruleInfo)
   at SoftPro.BusinessObjects.Base.Engine.GetRuleDataValue(IBusinessObject businessObject, String ruleInstanceName, Object potentialNewValue)
   at SoftPro.BusinessObjects.Base.BusinessObjectBase.FulfillDataItemNormally(Dependency depItem, DataValue sourceItem)
   at SoftPro.BusinessObjects.Base.BusinessObjectBase.GetDataValue(String dataItemName)
   at SoftPro.BusinessObjects.Base.BusinessObjectBase.GetDataItem(String dataItemName)
   at SoftPro.BusinessObjects.Base.Engine.ReleaseCalculatedChildRequests()
   at SoftPro.BusinessObjects.Core.Order.Load(Guid primaryID, ContextRoot rootContext)
   at SoftPro.BusinessObjects.Base.BusinessObjectCache.GetBusinessObject(String contextName, Guid primaryKey, ContextRoot rootContext, Boolean allowDisambiguation, SqlDataReader openReader, Boolean allowLoad, Boolean loadingAsCopy, Boolean acquiringRoot, Guid idForNewObject)
   at SoftPro.BusinessObjects.Base.BusinessObjectCache.GetRootObject(String contextName, Guid primaryKey, ContextRoot rootContext, Boolean loadingAsCopy)
   at SoftPro.BusinessObjects.Base.BusinessObjectCache.AcquireRootReference(String contextName, Guid primaryKey, Boolean loadAsCopy)
   at SoftPro.BusinessObjects.Base.BusinessObjectCache.AcquireRootReference(String contextName, Guid primaryKey)
   at SoftPro.OrderTracking.Client.OrderTracking.OpenOrderObject(Guid id)
   at SoftPro.OrderTracking.Client.OrderTracking.OpenOrder(Guid id, Boolean readOnly, Boolean isTemplate)
   at SoftPro.OrderTracking.Client.OrderTracking.GetOrderOrTemplate(OrderQuerySpec spec, Boolean readOnly, Boolean isTemplate)
   at SoftPro.OrderTracking.Client.OrderTracking.GetOrder(OrderQuerySpec spec, Boolean readOnly)
   at TG.SoftPro.LoadOrderActivity.SoftProOrderActivity.Execute(ActivityExecutionContext executionContext)

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
I really need to resolve this issue, since it's holding us up from testing and further work.

Thanks,
Robert
Mark McKenna

Re: Business Rules Issue - New

Post by Mark McKenna »

Robert, can you provide the event log entry or entries that SoftPro Select would have recorded just prior to your entries?
roteague
Posts: 292
Joined: Thu Sep 25, 2008 4:49 pm
Location: Honolulu, Hawaii

Re: Business Rules Issue - New

Post by roteague »

Sorry Mark, I just solved the issue. It turned out we had two old .dll's from version 2.4 in the directory. We use SyncToy2 to keep all our various directories in synch, but something didn't work here. I only found it by manually copying all the files back into the destination directory.

Thanks for all your help,
Robert
Post Reply