Rename Fixed Asset-Error internal error 1355 in module 19

csimoneauxcsimoneaux Member Posts: 168
edited 2005-07-28 in Navision Financials
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;

Comments

  • SbhatSbhat Member Posts: 301
    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.
  • csimoneauxcsimoneaux Member Posts: 168
    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.
  • DenSterDenSter Member Posts: 8,304
    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.
  • csimoneauxcsimoneaux Member Posts: 168
    I have renamed the field and I still get the same error
  • DenSterDenSter Member Posts: 8,304
    Did you recompile all the objects that reference the field?
  • csimoneauxcsimoneaux Member Posts: 168
    I think it worked. THANK YOU, THANK YOU, THANK YOU.
Sign In or Register to comment.