Syntax error in a 'Translation Import' The text is too long

jw65jw65 Member Posts: 18
edited 2013-05-21 in NAV Three Tier
A funny thing occurred when I was doing some translations for a report. In NAV 2013 Text Constant names can be more than 30 characters long, which for example is the case in the finnish localization of report 206 Sales - Invoice. It looks like this isn't implemented for the translation files. If I export the translation file for the report I cannot import the file back in (even without any modifications to the exported file). I get the error message:
There is a syntax error in a 'Translation Import'. The text is too long

The text constant name has a name that is larger than 30 chars, but the exported translation file indicates the field as "L30".

Anyway I was able to continues my work by just removing the sections with larger text constant names in the text file. Just wondering if this is a bug or if I'm doing something wrong.

Comments

  • lvanvugtlvanvugt Member Posts: 774
    What NAV version are you using?
    Luc van Vugt, fluxxus.nl
    Never stop learning
    Van Vugt's dynamiXs
    Dutch Dynamics Community
  • jw65jw65 Member Posts: 18
    Version 7.0.34249
  • lvanvugtlvanvugt Member Posts: 774
    I have 7.00.33781 and having the same issue.

    Tried the following:

    1.- Created new table with text constant Text35_8901234567890123456789012345 (so length of name is 35 chars)
    2.- Create translate export
    Result: T88888-Q1000000002-P2818-L30:Text35_8901234567890123456789012345
    [note: indeed L30!]
    3.- Changed translate export
    Result: T88888-Q1000000002-P2818-L35:Text35_8901234567890123456789012345
    4.- Imported changed translate export
    Result: dialog saying that Development Environment stopped working (even though is did not crash) / import did not succeed
    5.- Export to and re-import new table object from .fob
    Result: no problem
    6.- Export to and re-import new table object from .txt
    Result: no problem
    7.- Tried to create the same table in NAV 2009 R2
    Result: when trying to compile this new table I am getting the error message I had expected before (when compiling table in NAV 2013):
    Microsoft Dynamics NAV Classic
    The value entered in the Name field of the Data Item cannot exceed 30 characters.

    OK, what does this say to me: NAV 2013 does not behave OK.
    You should not be able to create a text constant name longer then 30 chars. (Or the translate export/import funtionality should be changed).

    I suggest you report this bug to MS.
    Luc van Vugt, fluxxus.nl
    Never stop learning
    Van Vugt's dynamiXs
    Dutch Dynamics Community
  • jw65jw65 Member Posts: 18
    I will send a report to MS.
    I guess we need a fix only for the import/export translation, since also variable names now have a limit of 128 characters.
  • jhoekjhoek Member Posts: 216
    Hmmm... Guess we ran into the same issue.

    http://mibuso.com/blogs/zenandtheartofc ... ble-names/

    On the positive side: longer variable names, text constant names and function names also seem to imply longer event names (see below), which should solve some issues we used to have with automation events whose names started with the same string (which led to duplicate names when truncated). :-)
    Kind regards,

    Jan Hoek
    Product Developer
    Mprise Products B.V.
Sign In or Register to comment.