Roll Back Posting Routines
julkifli33
Member Posts: 1,100
Hi all,
I have created qty assemble to order in Service Order
I follow all the steps and codes from sales order
but the thing is if there is an error, then it will posted half way (there are records in Service Ledger Entry & Item Ledger Entry, but no service shipment and invoice)
Scenario :
Line 1 (no qty assemble to order)
Line 2 (with qty assemble to order)
Line 3 (no qty assemble to order) -> for example here is the error
then Line 1 and 2, already posted to service ledger
I want to follow like sales order.
if there is an error in any line, then it will not create any lines in service ledger
any clue what i miss?
Thanks
I have created qty assemble to order in Service Order
I follow all the steps and codes from sales order
but the thing is if there is an error, then it will posted half way (there are records in Service Ledger Entry & Item Ledger Entry, but no service shipment and invoice)
Scenario :
Line 1 (no qty assemble to order)
Line 2 (with qty assemble to order)
Line 3 (no qty assemble to order) -> for example here is the error
then Line 1 and 2, already posted to service ledger
I want to follow like sales order.
if there is an error in any line, then it will not create any lines in service ledger
any clue what i miss?
Thanks
0
Comments
-
It is not you, it is a COMMIT somewhere in the posting code. If you have development licens you can edit poosting codeunits and comment it out - it is a safe thing to do in almost all cases.
Slawek Guzek - www.yitron.co.uk
Business Central, MS SQL Server, Wherescape RED;0 -
I think it's about InitPostATO function
without this InitPostATO, there is error message
but there is no Service Ledger created
but if with InitPostATO, it will generate Service Ledger
summarize :
1. With InitPostATO, if no error then good. but if has error record then it will create record halfway.
2. Without InitPostATO, if error then it will rollback the whole thing, but there is another error code in item jnl post , said document cannot be blank
0 -
solved.
change the code sequence0
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 610 NAV Courses, Exams & Certification
- 1.9K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 251 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions
