Dynamics AX 2012 Labels not all showing correct.

This question is answered

Hi.

I Just installed Dynamics AX 2012R2 on SQL 2012. I installed Foundation and Foundation Labels also. Som labels are showing like @SYS305949. i checked the AXSysDa.ALD file which contains this @SYS305949 Danmark ISO Country/Region. So label should be there. I tried to delete *.ali and *.alc files also i tried deleting the ald files and restart AOS server, but nothing helps.

Any help will be appreciated :)

Verified Answer
  • Oh. Then you must have been bit by "the order of things". Try create a new Job and run this static method named

    DirDataPopulation::populateDirData();

    If you follow the code, you will notice that further down the road, it loads an XML containing all the languages and their description. However the description is a label. At the time this step is run (during initialization of the system), you need to have the valid language labels prepared and installed. If not, the Dir-tables will be filled with... guess what - the label ID and not the translated string.

    Hopefully, running populateDirData will fix it. Test first!!!

    Tommy Skaue | Dynamics AX Developer from Norway | http://yetanotherdynamicsaxblog.blogspot.no/ | www.axdata.no

All Replies
  • So the label editor doesn't even find the label?

    Labels are still loaded from disk, so checking the existence of the label on disk and flushing the index and cache file and then restart the AOS should solve it. You should even find an entry in the Event Log when the AOS is rebuilding the index of the labels.

    Only thing left would be the AUC-files under %localappdata%.

    Tommy Skaue | Dynamics AX Developer from Norway | http://yetanotherdynamicsaxblog.blogspot.no/ | www.axdata.no

  • I tried searching for @SYS305949  in label editor, and the label is found with the correct translation, but when opening the for i still says @SYS305949, and this goes for all users. Really strange. I will try AUC file even thoug i does not sound like thats the problem since its all users :)

  • Which form is this?

    I've seen labels drop out before, but a restart of the AOSes (if multiple) have fixed that before.

    Tommy Skaue | Dynamics AX Developer from Norway | http://yetanotherdynamicsaxblog.blogspot.no/ | www.axdata.no

  • Form DimensionConfigureAccountStructure, MainAccount in midlle collumn, it just shows @sys343426 instead of main Account. Also if opening AdressSetup, and Choose country, all countries are like,

    CountryCode,   ShortName, LongName.

    DNK       @syssomecode      @sysSomecode

    NOR       @SYS306193        @SYS306194

    No countries in addres setup have working lables.

  • 1 thing to add, FOundation label was not installed from beginning, but by running installtion again and choose modify installation.

  • Oh. Then you must have been bit by "the order of things". Try create a new Job and run this static method named

    DirDataPopulation::populateDirData();

    If you follow the code, you will notice that further down the road, it loads an XML containing all the languages and their description. However the description is a label. At the time this step is run (during initialization of the system), you need to have the valid language labels prepared and installed. If not, the Dir-tables will be filled with... guess what - the label ID and not the translated string.

    Hopefully, running populateDirData will fix it. Test first!!!

    Tommy Skaue | Dynamics AX Developer from Norway | http://yetanotherdynamicsaxblog.blogspot.no/ | www.axdata.no

  • Probloem solved ty. Deleting data in tables populated by DirDataPopulation::populateDirData(); and then run method fixed most of the problems. Thx

  • Glad I could help. Thanks for marking the answer!

    Tommy Skaue | Dynamics AX Developer from Norway | http://yetanotherdynamicsaxblog.blogspot.no/ | www.axdata.no