web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Dynamics 365 Community / Blogs / Bodo's Dynamics NAV Blog / Was wurde aus dem PowerShel...

Was wurde aus dem PowerShell Cmdlet Invoke-CompanyInitialize?

Community Member Profile Picture Community Member

Gem. Beschreibung auf MSDN zur Durchführung des Upgrades auf Dynamics NAV 2016 (Task 10 Run the data upgrade process) auf https://msdn.microsoft.com/en-us/library/dn271668(v=nav.90).aspx ist das PowerShell Cmdlet Invoke-CompanyInitialize überflüssig, da das PowerShell Cmdlet Start-NavDataUpgrade die Codeunit 2 automatisch ausführt:

The data upgrade process runs CheckPreconditions and Upgrade functions in the upgrade codeunits. If any of the preconditions are not met or an upgrade function fails, you must correct the error and resume the data upgrade process. If CheckPreconditions and Upgrade functions are executed successfully, codeunit 2 is automatically run to initialize all companies in the database unless you set the SkipCompanyIntitialization parameter.

PS: Die Sache hat einen Haken. Codeunit 2 Company-Initialize initialisiert diverse Tabellen mit sprachabhängigen Texten (z.B. Workflowkategorien, Workflowvorlagen usw.). Und bei einem vollautomatisierten Update via PowerShell ist die Sprache Englisch. Wenn wir deutsche Texte haben wollen, müssen wir die Sprache über GLOBALLANGUAGE umstellen:

blog-2015-11-30-image1.png 

PPS: Die Sache hat noch einen zweiten Haken. Die Upgrade-Codeunit 104050 UPG8081.W1 führt auch sprachabhängige Initialisierungen durch. Auch hier stellen wir die Sprache auf Deutsch um:

blog-2015-11-30-image2.png 

Comments

*This post is locked for comments