Skip to Content
0
Former Member
Aug 26, 2015 at 03:36 PM

AOM - Error while Resetting the Start Value of the Key Generator

352 Views

Hi Experts,

I dont see the bean - orderCodeGenerator present in saporderexchange-spring.xml, Do I have to add this in my saporderexchange extension spring.xml file?

Or please let me know what configurations need to be done to get this.

I am getting error while running spring.getBean("orderCodeGenerator").reset(); from HAC. Can you please help?

I am following wiki page - https://wiki.hybris.com/display/release5/Defining+Sales+Order+Numbers.

Below is the error -

Script execution has failed [reason: Sourced file: inline evaluation of: ``spring.getBean("orderCodeGenerator").reset();'' : Method Invocation reset : at Line: 1 : in file: inline evaluation of: ``spring.getBean("orderCodeGenerator").reset();'' : .reset ( ) Target exception: de.hybris.platform.jalo.JaloInvalidParameterException: did not find number series order_code - cannot reset to [order_code,1,5000000][HY-0] in inline evaluation of: ``spring.getBean("orderCodeGenerator").reset();'' at line number 1]