I have built a process that creates to purchase credit memos and 1 or 2 sales orders and then post them. All documents are created by calling "Copy Document". All documents create fine but when the posting starts I get the above error on the first document.
I am using the same posting code (CU 90) that is used in base system. So I'm comfortable that I don't have a recursive loop.
I set the debugger and it always stops at the same place in CU 90. A FINDSET on the purchase line table.
The documents are small. 1 to 3 lines each.
Any thoughts?
There are no bugs - only undocumented features.
0
Answers
Normally I have come accross this error in production where the is a recursive call gone mad because of a BOM referencing itself. What the call stack like when it stops in the debugger?
It the function finding the record is after creating and then creating another...etc?
Dynamics Nav Add-ons
http://www.simplydynamics.ie/Addons.html
Sound like the Record Set property is high on the database. You could try changing this setting.
Also did you try substituting with a find('-')
Dynamics Nav Add-ons
http://www.simplydynamics.ie/Addons.html
The record set is set fairly high. It's been this way for quite some time. We found that we got much better performance on several critical functions with it set high. I won't claim the setting to be optimal but no one has been complaining about performance.
If the issue was either of these, wouldn't you expect to see problems with CU 90 during any purchase posting?
Thanks for the assistance.
Dynamics Nav Add-ons
http://www.simplydynamics.ie/Addons.html