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

Notification

Icon
Error

dm_fan
#1 Posted : Thursday, November 20, 2008 2:55:37 PM(UTC)
dm_fan

Rank: Member

Joined: 11/20/2008(UTC)
Posts: 4

Hi
I was hoping to get some help on a problem that just cropped up. I am currently setting up a new BVC5 website so it's not public yet. I've been testing the order process all along and haven't had a problem until now. But just yesterday, all of the orders I place are given the order number of 0 (it seems to be ignoring the OrderNumberSeed settings all of a sudden). I now have a dozen Orders with an order number of 0. I'm not sure what I would have done to cause this to happen however I have been importing sales order from our accounting software so customers can look at their previous orders and get tracking info. But I made sure none of the order numbers would overlap.



I'm really scratching my head on this.

Any insight into what might be happening, would be appreciated.



Steve
birdsafe
#2 Posted : Saturday, November 22, 2008 9:36:55 AM(UTC)
birdsafe

Rank: Member

Joined: 2/21/2007(UTC)
Posts: 1,113

Steve -- does anything show up in your event log when you generate one of those orders?

Is the "Assign Order Number" in place in your Process New Order workflow? Perhaps that got taken out somehow.
[email protected]
#3 Posted : Saturday, November 22, 2008 10:00:17 AM(UTC)
bobn@laurastamm.net

Rank: Member

Joined: 6/6/2005(UTC)
Posts: 483

Also make sure your settings are correct under Options --> Site Settings --> Orders.

Bob Noble
dm_fan
#4 Posted : Saturday, November 22, 2008 4:33:24 PM(UTC)
dm_fan

Rank: Member

Joined: 11/20/2008(UTC)
Posts: 4

I didn't even think to check the event log. Thanks


This is the error that I get:



Conversion from string "R9999 " to type 'Integer' is not valid.[ at Microsoft.VisualBasic.CompilerServices.Conversions.ToInteger(String Value) at Microsoft.VisualBasic.CompilerServices.Conversions.ToInteger(Object Value) at BVSoftware.Bvc5.Core.Orders.Order.Mapper.FindMaxOrderNumber() at BVSoftware.Bvc5.Core.Orders.OrderNumberGenerator.GenerateNewOrderNumber() ]



I know that our accounting software creates return orders with an order number of R#### and that I have been importing those return orders into the BV website. So I'm guessing that because these order numbers have a char in them, the FindMaxOrderNumber function is returning an error and all the new order numbers are coming up 0.



Am I correct in assuming that I need to either:

* modify the FindMaxOrderNumber function so that it ignores the orders with an R in them or

* Remove all of the return orders from the database



Is there a third option?



Thanks for the help.

Steve
Andy Miller
#5 Posted : Saturday, November 22, 2008 5:06:39 PM(UTC)
Andy Miller

Rank: Member

Joined: 11/5/2003(UTC)
Posts: 2,136

Was thanked: 1 time(s) in 1 post(s)
A third option is to edit the bvc_Order_MaxOrderNumber_s stored procedure in the database to strip off the "R". I think that is the way I would go because stored procedure changes are pretty easy to re-apply after installing a service pack.
Andy Miller
Structured Solutions

Shipper 3 - High Velocity Shipment Processing
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.

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