Skip to main content
Solved

The "GenerateSatelliteAssemblies" task failed unexpectedly.


Forum|alt.badge.img+4
  • Sidekick (Customer)
  • 9 replies

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.

 

Best answer by ChristianJ

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

View original
Did this topic help you find an answer to your question?

3 replies

Forum|alt.badge.img+5
  • Do Gooder (Employee)
  • 20 replies
  • Answer
  • April 28, 2022

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


Forum|alt.badge.img+4
  • Author
  • Sidekick (Customer)
  • 9 replies
  • April 29, 2022

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.


Forum|alt.badge.img+4
  • Author
  • Sidekick (Customer)
  • 9 replies
  • May 4, 2022

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


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings