IC Chart of Accounts

alien251
Member Posts: 80
I'm going thorugh the steps to setup intercompany postings in my development environment and I'm in the IC Chart of Accounts form running FUNCTIONS>COPY FROM CHART OF ACCOUNTS. I'm getting this error:
The value of UPDATEINDENT parameter 1 is outside of the permitted range.
The current value is: -220
The permitted range is: from 0 to 2147483647
Has anyone ever encountered this before?
Thanks!!
Dan
The value of UPDATEINDENT parameter 1 is outside of the permitted range.
The current value is: -220
The permitted range is: from 0 to 2147483647
Has anyone ever encountered this before?
Thanks!!
Dan
0
Comments
-
Try to indent ur COA from where u r copying. I think that itself has some issue.Kapil Khanna0
-
There's a bug in the code that populates the Indentation column on the IC GL Account table. It should never assign a negative value yet it does. I updated the table directly using this code and the IC COA is indented properly and the form loads fine now.
UPDATE dbo.[Company$IC G_L Account] SET
Indentation = Indentation + 1
Copy from Chart of Accounts function:ICGLAccEmpty := NOT ICGLAcc.FIND('-'); ICGLAcc.LOCKTABLE; IF GLAcc.FIND('-') THEN REPEAT IF GLAcc."Account Type" = GLAcc."Account Type"::"End-Total" THEN PrevIndentation := PrevIndentation - 1; IF NOT ICGLAccEmpty THEN ICGLAccExists := ICGLAcc.GET(GLAcc."No."); IF NOT ICGLAccExists AND NOT GLAcc.Blocked THEN BEGIN ICGLAcc.INIT; ICGLAcc."No." := GLAcc."No."; ICGLAcc.Name := GLAcc.Name; ICGLAcc."Account Type" := GLAcc."Account Type"; ICGLAcc."Income/Balance" := GLAcc."Income/Balance"; ICGLAcc.Indentation := PrevIndentation; ICGLAcc.INSERT; END; PrevIndentation := GLAcc.Indentation; IF GLAcc."Account Type" = GLAcc."Account Type"::"Begin-Total" THEN PrevIndentation := PrevIndentation + 1; UNTIL GLAcc.NEXT = 0;
Thanks for the reply!
Dan0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K 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
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions