Native DB rename causes internal error 1355 in module 19

cdstude
Member Posts: 16
The client has a 33 GB native database with mulitple companies. The database has 36% free space (it is 50GB) and is a single file. I am using a NAV report to do the rename and connecting the client directly to the database (no server). Object Cache is 1GB and DBMS Cache (?) is 550000. Client is 5.0 SP1 and DB is 4.0 SP3
The G/L Account needs to be renamed from 999, 1000, 2000,...,99999 to 0099,01000,02000,...99999 for the SQL conversion.
My report has three lines in the G/L Account data item (indented underneath a Company with IF COMPANYNAME <> Name THEN CHANGECOMPANY(Name))
:
IF STRLEN("No.") < 5 THEN
RENAME(PADSTR('', 5 - STRLEN("No."), '0') + "No.");
COMMIT;
If the G/L Account No. is already 5 characters it is skipped.
After the 1st commit then I get the Internal Error 1355 in Module 19 which I belive implies I don't have enough resources or the database mgr is getting the same request twice? How to get the rename to work successfully? I am running with a commit so that I don't cause an error with no space left...
The G/L Account needs to be renamed from 999, 1000, 2000,...,99999 to 0099,01000,02000,...99999 for the SQL conversion.
My report has three lines in the G/L Account data item (indented underneath a Company with IF COMPANYNAME <> Name THEN CHANGECOMPANY(Name))
:
IF STRLEN("No.") < 5 THEN
RENAME(PADSTR('', 5 - STRLEN("No."), '0') + "No.");
COMMIT;
If the G/L Account No. is already 5 characters it is skipped.
After the 1st commit then I get the Internal Error 1355 in Module 19 which I belive implies I don't have enough resources or the database mgr is getting the same request twice? How to get the rename to work successfully? I am running with a commit so that I don't cause an error with no space left...
0
Comments
-
Is the G/L Account table setup as "per company"? If not, then set it that way and run the renamig function in each company separately (without the "changecompany" part).0
-
G/L Account table property: DataPerCompany <Yes>0
-
I think this is causing the error:
IF COMPANYNAME <> Name THEN CHANGECOMPANY(Name)
You are using G/LAccount.Name in the changecompany. This must read
GLAccount.CHANGECOMPANY(Company.Name)
Additionally you should not use the If. This would only work if the company you use as the starting point is the first company in the list.
Just do a changecompany without the If.Frank Dickschat
FD Consulting0 -
FDickschat wrote:I think this is causing the error:
IF COMPANYNAME <> Name THEN CHANGECOMPANY(Name)
You are using G/LAccount.Name in the changecompany. This must read
GLAccount.CHANGECOMPANY(Company.Name)
Additionally you should not use the If. This would only work if the company you use as the starting point is the first company in the list.
Just do a changecompany without the If.
Yep - that worked! Thanks!!!0
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