Did anyone use/test this already? It was first released last september with NAV 2015 CU 11 (and in NAV 2016).
I wasn’t aware of this feature so far and wanted to use it today (on NAV 2016 CU3), but when executing the action “Import Translated Profile Resources From Folder” on PAG9171 (Profile List) or PAG9170 (Profile Card) nothing happened.
Debugging the code I found the reason, which made me thing no one did use/test it at all.
The relevant code is to be found in COD9170 (Conf./Personalization Mgt.) in the local function ReadResourceFiles:
LOCAL ReadResourceFiles(ProfileID : Code[30];ServerFolder : Text) : Boolean
ClearResourcesForProfile(ProfileID);
IF (ServerFolder = ”) OR (NOT FileManagement.ServerDirectoryExists(ServerFolder)) THEN
EXIT(FALSE);
Directories := Directory.GetDirectories(ServerFolder);
Why is it getting the directories as there only .resx files in “ServerFolder”? IMHO this code has to be:
LOCAL ReadResourceFiles(ProfileID : Code[30];ServerFolder : Text) : Boolean
ClearResourcesForProfile(ProfileID);
IF (ServerFolder = ”) OR (NOT FileManagement.ServerDirectoryExists(ServerFolder)) THEN
EXIT(FALSE);
//LVV-BEGIN
//Directories := Directory.GetDirectories(ServerFolder);
Directories := Directory.GetFiles(ServerFolder);
//LVV-END
And then it does do the job. So this is, to me, clearly a bug. But maybe I overlook something as I cannot find anyone reporting this.
I have also reported it on msconnect:
https://connect.microsoft.com/dynamicssuggestions/feedback/details/2386708/bug-in-import-translated-profile-resources-pag9170-pag9171
Answers
Please Read this link: https://msdn.microsoft.com/en-us/library/ee414196(v=nav.90).aspx#Profiles
Code is correct, but you have to call "Profile" Directory.
For example if you have profile files (.resx) in folder "de-CH" you must put this folder into another folder and than call that parent folder.
Xhevat Tafaj.