AXForum  
Вернуться   AXForum > Microsoft Dynamics AX > DAX Blogs
All
Забыли пароль?
Зарегистрироваться Правила Справка Пользователи Сообщения за день Поиск

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 08.01.2013, 19:11   #1  
Blog bot is offline
Blog bot
Участник
 
25,643 / 848 (80) +++++++
Регистрация: 28.10.2006
emeadaxsupport: A simple explanation of duplicate number sequences in AX 2012
Источник: http://blogs.msdn.com/b/axsupport/ar...n-ax-2012.aspx
==============

Ever run into an issue where you get duplicate number sequence errors in AX 2012 but you know you are using a different number sequence reference for the transaction? Below is a simple walkthrough explaining why you get theses types of errors.



Let's use the AP Invoice voucher and AP Payment voucher as examples. Below are 2 new number sequences that are setup under Accounts Payable > Setup > Accounts Payable Parameters > Number Sequences.









Notice that the format of the 2 number sequences is the same and the starting number for these 2 number sequences are both CEU-000001.

Let's move forward and enter a new Invoice Journal which is populated with number CEU-000001. Posting this Invoice Journal is fine.





Now move forward with creating a new Payment Journal. As you can see below this is also populated with CEU-000001. At this point we assume that this is not an issue as the number sequences are not named the same and are created for different reference.





However this will also attempt to write a record into the SUBLEDGERVOUCHERGENERALJOURNALENTRY table upon posting. A check is done to see if the voucher exists, and in this case it does, so we get the error below. Even though the voucher number is associated to a different reference via a different number sequence code you cannot post as it already exists as we only validate the voucher number and not the voucher number/reference combination.







In closing it is always best to use a unique format for transactional related number sequences. In this case it may have been best to use a format of CEU-APIJ000001 as seen below for the Invoice Journal number sequence, and CEU-APPJ000001 for the Payment Journal.





I hope this is helpful information to resolve some of the Number Sequence issues that you are encountering.



Dave B.
Sr. Support Engineer
Dynamics AX




Источник: http://blogs.msdn.com/b/axsupport/ar...n-ax-2012.aspx
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
amer-ax: It was a great day! Blog bot DAX Blogs 3 29.12.2012 01:02
emeadaxsupport: Final Microsoft Dynamics AX 2012 R2 Content Available! Blog bot DAX Blogs 0 04.12.2012 06:12
DAX: Official Dynamics AX 2012 R2 Content (update) - Where is it, and how can you find out about updates? Blog bot DAX Blogs 0 03.12.2012 11:11
emeadaxsupport: New Content for Microsoft Dynamics AX 2012 : October 2011 Blog bot DAX Blogs 0 27.10.2011 17:11
daxdilip: Whats New in Dynamics AX 2012 (A brief extract from the recently held Tech Conf.) Blog bot DAX Blogs 7 31.01.2011 12:35

Ваши права в разделе
Вы не можете создавать новые темы
Вы не можете отвечать в темах
Вы не можете прикреплять вложения
Вы не можете редактировать свои сообщения

BB коды Вкл.
Смайлы Вкл.
[IMG] код Вкл.
HTML код Выкл.
Быстрый переход

Рейтинг@Mail.ru
Часовой пояс GMT +3, время: 23:20.