Rename Fixed Asset-Error internal error 1355 in module 19

csimoneaux
Member Posts: 168
am using the standard RENAME command to rename fixed asset numbers. I have set up a table that people will put the old and new fixed asset No. and once process is complete flaggs a rename boolean field in this new table. I keep getting error message Internal error 1355 in Module 19. I have bumped up cache and after dialing in using remote desk top to access DB I still get error. The version is 2.6. What can I do to make this work? HELP ](*,)
The code is below:
IF ("Old Fixed Asset No." <>'') AND ("New Fixed Asset No." <>'')
AND (Rename = FALSE) AND ("Old Fixed Asset No." <> "New Fixed Asset No.") THEN BEGIN
OLDFANO := "Old Fixed Asset No.";
"Change Fixed Assets".Rename := TRUE;
IF "User ID" = '' THEN
IF UserSetup.GET(USERID) THEN
"User ID" := USERID;
"Change Fixed Assets".Date := TODAY;
"Change Fixed Assets"."Time entered" := TIME;
"Change Fixed Assets"."Original Fixed Asset" := OLDFANO;
"Change Fixed Assets".INSERT;
IF FA.GET(OLDFANO) THEN BEGIN
FA."Old Fixed Asset No." := FA."No.";
FANo:= "New Fixed Asset No.";
FA.RENAME(FANo);
END;
OLDFANO := "Change Fixed Assets"."Old Fixed Asset No.";
END;
The code is below:
IF ("Old Fixed Asset No." <>'') AND ("New Fixed Asset No." <>'')
AND (Rename = FALSE) AND ("Old Fixed Asset No." <> "New Fixed Asset No.") THEN BEGIN
OLDFANO := "Old Fixed Asset No.";
"Change Fixed Assets".Rename := TRUE;
IF "User ID" = '' THEN
IF UserSetup.GET(USERID) THEN
"User ID" := USERID;
"Change Fixed Assets".Date := TODAY;
"Change Fixed Assets"."Time entered" := TIME;
"Change Fixed Assets"."Original Fixed Asset" := OLDFANO;
"Change Fixed Assets".INSERT;
IF FA.GET(OLDFANO) THEN BEGIN
FA."Old Fixed Asset No." := FA."No.";
FANo:= "New Fixed Asset No.";
FA.RENAME(FANo);
END;
OLDFANO := "Change Fixed Assets"."Old Fixed Asset No.";
END;
0
Comments
-
IF ("Old Fixed Asset No." <>'') AND ("New Fixed Asset No." <>'')
AND (Rename = FALSE) AND ("Old Fixed Asset No." <> "New Fixed Asset No.") THEN BEGIN
You are using Rename as a variable. You cannot do that because Rename is reserved syntax and when you try to use it as a variable it craps out.
Thx
SB.0 -
Rename is not a variable field. Rename is a boolean field in the new table that holds the Old and New Fixed asset No. It is flagged to show asset has been renamed. This process runs on my machine and on the server with no problems. The problem exists when remote desk top is used to access server to run navision from there.0
-
The fact remains that the word 'rename' is a reserved keyword in Navision, and will cause this type of error. Change the name of your field to something like "Rename FA" and retry.0
-
I have renamed the field and I still get the same error0
-
-
I think it worked. THANK YOU, THANK YOU, THANK YOU.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