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();

}

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: