Skip to main content

Does anyone know why we get below error, during the build process? Can someone please share thoughts? 

We are getting below error when the during the build process.

The "GenerateSatelliteAssemblies" task failed unexpectedly.

Here is the error log related to the issue.

Satellite assemblies will be generated for 2 languages: en,sv
1/2: Generating satellite assemblies for en (en-US)
Loaded language zip file from D:\ifs\workspace\build_home\source\..\client\runtime\en-US\Ifs.Language.en-US.zip.
Unzipped 4 'Application Title' items from 'Ifs.Fnd.ApplicationDictionary.resources.dll' that will be reused and replaced if newer translations is available.
D:\ifs\workspace\build_home\EnterpriseExplorerDevelopment\DevelopFiles\application.build(170,3): error MSB4018: The "GenerateSatelliteAssemblies" task failed unexpectedly.
D:\ifs\workspace\build_home\EnterpriseExplorerDevelopment\DevelopFiles\application.build(170,3): error MSB4018: System.ArgumentException: An item with the same key has already been added.
D:\ifs\workspace\build_home\EnterpriseExplorerDevelopment\DevelopFiles\application.build(170,3): error MSB4018: at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
D:\ifs\workspace\build_home\EnterpriseExplorerDevelopment\DevelopFiles\application.build(170,3): error MSB4018: at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
D:\ifs\workspace\build_home\EnterpriseExplorerDevelopment\DevelopFiles\application.build(170,3): error MSB4018: at System.Collections.Generic.Dictionary`2.Add(TKey key, TValue value)
D:\ifs\workspace\build_home\EnterpriseExplorerDevelopment\DevelopFiles\application.build(170,3): error MSB4018: at Ifs.Fnd.MSBuildTasks.GenerateSatelliteAssemblies.IsValidTranslation(IDictionary`2 textsPROG, String resourceName, String keyName, String keyValue, IDictionary`2 logInvalidPROG)
D:\ifs\workspace\build_home\EnterpriseExplorerDevelopment\DevelopFiles\application.build(170,3): error MSB4018: at Ifs.Fnd.MSBuildTasks.GenerateSatelliteAssemblies.TranslateResource(IDictionary`2& resourceValues, Assembly parent, String resourceName, IDictionary`2 allTranslations, IDictionary`2 allTranslationsPROG, IList`1 notFoundDynamicTabIds, IDictionary`2 dynamicTabs, ISet`1 allApplicationPageIds, IDictionary`2 applicationPages, IDictionary`2 logInvalidPROG)
D:\ifs\workspace\build_home\EnterpriseExplorerDevelopment\DevelopFiles\application.build(170,3): error MSB4018: at Ifs.Fnd.MSBuildTasks.GenerateSatelliteAssemblies.GenerateSatelliteAssembly(Assembly parent, String language, IDictionary`2 allTranslations, IDictionary`2 allTranslationsPROG, IList`1 notFoundDynamicTabIds, IDictionary`2 dynamicTabs, ISet`1 allApplicationPageIds, IDictionary`2 applicationPages, IDictionary`2 logInvalidPROG)
D:\ifs\workspace\build_home\EnterpriseExplorerDevelopment\DevelopFiles\application.build(170,3): error MSB4018: at Ifs.Fnd.MSBuildTasks.GenerateSatelliteAssemblies.ExecuteForLanguage(String ifsLangCode, String language, ApplicationMeta meta)
D:\ifs\workspace\build_home\EnterpriseExplorerDevelopment\DevelopFiles\application.build(170,3): error MSB4018: at Ifs.Fnd.MSBuildTasks.GenerateSatelliteAssemblies.Execute()
D:\ifs\workspace\build_home\EnterpriseExplorerDevelopment\DevelopFiles\application.build(170,3): error MSB4018: at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
D:\ifs\workspace\build_home\EnterpriseExplorerDevelopment\DevelopFiles\application.build(170,3): error MSB4018: at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26.MoveNext()
Done Building Project "D:\ifs\workspace\build_home\EnterpriseExplorerDevelopment\DevelopFiles\application.build" (Build target(s)) -- FAILED.
Done Building Project "D:\ifs\workspace\build_home\source\default.build" (default targets) -- FAILED.

 

Hi @Imanka,

I've seen this once in Apps9 because of an incorrect merge in a .lng or .trs file.
The .lng (or .trs) file had to be fixed for the GenerateSatelliteAssemblies task to succeed.

Best regards,
Christian


Hi @ChristianJ 

Thank you so much for your answer. It actually is a very good clue. We are now investigating our .lng and .trs files.After that we will update the conversation with the results.

 

Best Regards,

Imanka.


Hi @ChristianJ 

 

Thanks again for your answer. Really appreciate it. As you said, the issue was with some ,trs files. So we could do some fix and get the build successful. :) 

 

Best Regards,

Imanka.


Reply