Number sequence 0 does not exists while Time sheet posting in Dynamics ax R3

 

After recent upgrade from Dynamics ax 2012 RTM version to R3 I found problem in posting the timesheet and the error was “Number sequence 0 does not exists” This error is not so obvious. After bit of debugging I came to know that Time sheet voucher number sequence is missing. Strange thing is that I am not seeing this Number sequence in Project parameters also. I did check projectTimeSheet configuration key also which needs to be enabled for timesheet. In my cake config key was enabled.

After bit of research I cam to know that Time sheet voucher sequence is new from R2. Previously hour jour was used to post the time sheet.

Untitled

To make this number sequence appear in the project parameters I have to reload it. I created a simple job below to do this work. After running this job the new hidden number sequence start appearing.

Later Number sequence wizard was run to populate the value of sequence.

static void jobName(Args _args)

{

   NumberSeqModuleProject NumberSeqModuleProject = new NumberSeqModuleProject();

   ;

   NumberSeqModuleProject.load();

}

Microsoft Dynamics AX 2012 R3 Training

On Channel 9 two good startup trainings available for Dynamics ax R3

1. Microsoft Dynamics AX 2012 R3 Training: (01) Transportation Management

2. Microsoft Dynamics AX 2012 R3 Training: (02) Warehouse Management