• Toll-free  888-665-8637
  • International  +1 717-220-0012
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

ChristianMoments
#1 Posted : Monday, December 4, 2006 9:32:04 PM(UTC)
ChristianMoments

Rank: Member

Joined: 1/23/2006(UTC)
Posts: 103

I'm using the tutorial from:

http://www.bvsoftware.co...;s/HandlingDeclines.aspx

When I open the "recieve credit cards" task, enable the checkbox "Throw Errors on Failure", and press save, it does not save the status of the checkbox. If I re-open the task, the checkbox will be unchecked. Also, an error message will not display during the order process if a card is declined.
ChristianMoments
#2 Posted : Monday, December 4, 2006 9:36:51 PM(UTC)
ChristianMoments

Rank: Member

Joined: 1/23/2006(UTC)
Posts: 103

Also, I can get the order process to not proceed further if a card is declined but it just refreshes the page and doesn't display an error message.
jetheredge
#3 Posted : Tuesday, December 5, 2006 12:01:14 PM(UTC)
jetheredge

Rank: Member

Joined: 3/1/2006(UTC)
Posts: 1,142

You should try removing the receive credit cards task and re-adding it to the workflow. It looks like something may have gotten out of sync.
Justin Etheredge
Senior Software Engineer
BVSoftware
ChristianMoments
#4 Posted : Wednesday, December 6, 2006 5:50:23 AM(UTC)
ChristianMoments

Rank: Member

Joined: 1/23/2006(UTC)
Posts: 103

I remove the "Receive Credit cards" task and then re-added it. The checkbox for "Throw Error" still won't work.
ChristianMoments
#5 Posted : Wednesday, December 6, 2006 5:54:51 AM(UTC)
ChristianMoments

Rank: Member

Joined: 1/23/2006(UTC)
Posts: 103

I tried editing some of the other editable workflow tasks and I'm not able to enable the "throw error" option on any of them. I'm using BVC5 sp1
ChristianMoments
#6 Posted : Thursday, December 7, 2006 8:51:31 AM(UTC)
ChristianMoments

Rank: Member

Joined: 1/23/2006(UTC)
Posts: 103

I found the problem and implemented a temporary solution. When the button is clicked to place the order and the credit card does not go through, the following code is run:

For Each item As BusinessRules.WorkflowMessage In c.GetCustomerVisibleErrors
MessageBox.ShowError(item.Description)
Next

For the BVSoftware.Bvc5.Core.BusinessRules.TaskContext.Errors collection, the CustomerVisible() property of the error with the name "Receive Card Failed" is set to false.

I can't find a collection of errors in your database so I figure they are hard coded and I don't have the developer edition so I can't find where the error lists are located at. The code below is a temporary workaround.

'For Each item As BusinessRules.WorkflowMessage In c.GetCustomerVisibleErrors
For Each item As BusinessRules.WorkflowMessage In c.Errors
If item.Name = "Receive Card Failed" Then
MessageBox.ShowError(item.Description)
End If
Next
jetheredge
#7 Posted : Thursday, December 7, 2006 10:27:35 AM(UTC)
jetheredge

Rank: Member

Joined: 3/1/2006(UTC)
Posts: 1,142

Are you seeing any errors in the event log? All of these settings should be saved in the component settings table with the id of the task. Are you seeing any errors involving component settings?

Also, the error message coming from the ReceiveCreditCard task was inadvertently not marked as "display to customer." This will be fixed in the future.
Justin Etheredge
Senior Software Engineer
BVSoftware
ChristianMoments
#8 Posted : Friday, December 8, 2006 8:26:00 AM(UTC)
ChristianMoments

Rank: Member

Joined: 1/23/2006(UTC)
Posts: 103

This error shows up twice when then the place order button is pushed whether the credit card fails or not:

Input string was not in a correct format.[ at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) at BVSoftware.Bvc5.Core.BusinessRules.OrderTasks.ChangeOrderStatusWhenPaymentRemoved.Execute(OrderTaskContext context) at BVSoftware.Bvc5.Core.BusinessRules.OrderTask.Execute(TaskContext context) at BVSoftware.Bvc5.Core.BusinessRules.Workflow.Run(TaskContext c) ]

source is mscorlib
jorgem
#9 Posted : Friday, December 29, 2006 2:35:44 PM(UTC)
jorgem

Rank: Member

Joined: 10/17/2006(UTC)
Posts: 66

Hi Christian:

I am seeing the same problems that you are (the "throw errors" checkbox doesn't stick).

I tried the fix you suggestion.

However, I then have this problem...

The "Payment Complete" workflow runs, even though there is a credit card error during the "Process New Order" workflow. I can tell, because mails go to customer, even though the credit card failed.

Does this happen to you, too?

Any idea how can I prevent the "payment complete" workflow from running, since the credit card failed?

-- Jorge.
jorgem
#10 Posted : Saturday, January 6, 2007 5:53:11 PM(UTC)
jorgem

Rank: Member

Joined: 10/17/2006(UTC)
Posts: 66

The reason the throw errors checkbox doesn't stick is because of a typo in the file:


See below: "ThrowErrors" was mispelled at line 32 of: c:\inetpub\wwwroot\srt\BVModules\OrderTasks\Receive Credit Cards\edit.ascx.vb

Code:

Me.chkThrowErrors.Checked = Me.SettingsManager.GetBooleanSetting("ThrowErrors")
ChristianMoments
#11 Posted : Thursday, January 18, 2007 10:45:22 PM(UTC)
ChristianMoments

Rank: Member

Joined: 1/23/2006(UTC)
Posts: 103

Great work!
ChristianMoments
#12 Posted : Friday, January 26, 2007 5:30:04 PM(UTC)
ChristianMoments

Rank: Member

Joined: 1/23/2006(UTC)
Posts: 103

I fixed the error as per jorje. If the error is marked visible to customer then everything will work perfectly
kliu
#13 Posted : Thursday, April 5, 2007 2:02:38 PM(UTC)
kliu

Rank: Member

Joined: 4/5/2007(UTC)
Posts: 22

Hi! Everybody,

I fixed the error as jorgem's saying. But the checkout page keeps to block all order through and doesn't show any error messages still. I mean, even input correct credit card info, the checkout page also can't to the thankyou/recipt page and no error message showing. So, Christian Moments, how do you get everything work perfectly? Please give some suggestion. Thanks lot.
ChristianMoments
#14 Posted : Sunday, April 15, 2007 1:04:12 PM(UTC)
ChristianMoments

Rank: Member

Joined: 1/23/2006(UTC)
Posts: 103

Hi Kliu, SP2 should correct the error so I'd wait for that to fix it but the problem is that "received cards failed" is not a customer visible error. This code fixes it.

'For Each item As BusinessRules.WorkflowMessage In c.GetCustomerVisibleErrors
For Each item As BusinessRules.WorkflowMessage In c.Errors
If item.Name = "Receive Card Failed" Then
MessageBox.ShowError(item.Description)
End If
Next

Just look for the line "For Each item As BusinessRules.WorkflowMessage In c.GetCustomerVisibleErrors" and replace it with all the above. Once "Recieve cards failed" is marked customer visible in the core software, then the problem will be fixed. Email me if you need some help david [at] libertytec.com.
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

©2025 Develisys. All rights reserved.
  • Toll-free  888-665-8637
  • International  +1 717-220-0012