简体   繁体   中英

How to get continous number from number squence when import BOM via AIF web service - AX 2012

I would like to import BOM over the standard BOM AIF Web Service in AX 2012.

In my XML-File I don't define any BOMId, because the system should take the next possible BOMId from the existing number sequence.

XML的文件

When I start the import of my XML-File I get the following error message.

例外

This is the setting of my number sequence.

编号顺序

What do I have to do to automatically get the next available number from the number sequence (Continous), when importing BOMs via the standard AX AIF Web Service?

I followed the cross references of the exception message (label id @SYS96663, btw) to method checkNumber of class AxInternalBase , which calls method numAllowEdit of table NumberSequenceTable . From the logic of that method it seems that one of the checkboxes "Manual", "To a lower number" or "To a higher number" needs to be set for this to work. Not sure why, though or which of the checkboxes is the right one or makes the most sense. My gut tells me to go with "To a higher number", but ymmv .

Also take a look at the related question Dynamics AX 2012 R3 - Record Creation through AIF web service and method setBOMId of class AxBOMTable .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM