Consider the following scenario in Order Management in Microsoft Dynamics SL:
Programming Bulletproof Error 11500 - "An unhandled exception occurred in application code, within a SAF Control event handler. Using the Visual Studio debugger, set a break point on the line of code indicated in this error message. If the line of code is a Sub or Function call, step into the code to find the point where the exception is occurring. Once you have identified the line of code causing the exception, diagnose the problem and fix as appropriate. If the line of code is not available, create a debug version of the executable and rerun the program."
Exception:
System.ArgumentOutOfRangeException
Index and length must refer to a location within the string. Parameter name: length
Event Handler:
OM401000.Form1.cinvtid_1_Chk
Line <not available>
- You previously applied the correction for issue number 21354. This issue is described in Microsoft Knowledge Base (KB) article 2028782.
For more information about issue number 21354, click the following article number to view the article in the Microsoft Knowledge Base:2028782 The Discount Pct box is not populated on the Sales Orders (40.110.00) screen in Microsoft Dynamics SL - You select the option to Enable Chain Discounts in the Order Management Setup (40.950.00) screen.
- You create a price plan for a particular inventory ID and customer ID combination in the Sales Price (40.380.00) screen. Then, in the Disc Method box, you select an option other than Percent Discount.
- You create a new sales order in the Sales Orders (40.100.00) screen for the inventory ID and customer ID for which the price plan was created.
- You enter a value in the Ordered box, and then you press TAB.
Programming Bulletproof Error 11500 - "An unhandled exception occurred in application code, within a SAF Control event handler. Using the Visual Studio debugger, set a break point on the line of code indicated in this error message. If the line of code is a Sub or Function call, step into the code to find the point where the exception is occurring. Once you have identified the line of code causing the exception, diagnose the problem and fix as appropriate. If the line of code is not available, create a debug version of the executable and rerun the program."
Exception:
System.ArgumentOutOfRangeException
Index and length must refer to a location within the string. Parameter name: length
Event Handler:
OM401000.Form1.cinvtid_1_Chk
Line <not available>