AX2012 R3升級CU8的一些錯誤

AX2012 R3安裝升級包CU8後進入系統,系統會提示打開軟件升級清單「Software update checklist」,清單列出了升級要作的一系列動做。html

  • 在進行到編譯應用時「Compile application」出現不少錯誤:
Severity Path Line Col Error message
Error \Classes\PayrollCalculatePayStatementBenefits\classDeclaration 12 5 Syntax error.
Error \Classes\PayrollCalculatePayStatementTaxes\classDeclaration 42 5 Syntax error.
Error \Classes\PayrollTaxCalculation\classDeclaration 7 5 Syntax error.
Error \Classes\PayrollTaxEngineUtil\checkInTaxEngine 7 37 Syntax error.
Error \Classes\PayrollTaxEngineUtil\checkOutTaxEngine 7 15 Syntax error.
Error \Classes\PayrollTaxEngineUtil\getPoliticalSubDivision 31 5 Syntax error.
Error \Classes\PayrollTaxEngineUtil\getPoliticalSubDivisionByTaxCode 20 5 Syntax error.
Error \Classes\PayrollTaxEngineUtil\getTaxEngineVersion 10 39 Syntax error.
Error \Classes\PayrollTaxEngineUtil\getTaxTableVersion 10 38 Syntax error.
Error \Classes\PayrollTaxEngineUtil\money2Real 11 40 Syntax error.
Error \Classes\PayrollTaxEngineUtil\real2Hours 11 22 Syntax error.
Error \Classes\PayrollTaxEngineUtil\real2Money 11 22 Syntax error.
Error \Classes\PayrollTaxEngineUtil\real2Rate 11 22 Syntax error.
Error \Classes\PayrollTaxEngineUtil\taxCalculation2TaxCode 11 62 Syntax error.
Error \Classes\PayrollTaxTypeInitialization\classDeclaration 8 5 Syntax error.
Error \Classes\WHSWorkTableForm\sourceButton_clicked 36 93 The table WHSWorkLineCycleCount does not contain the method WHSWorkTable.
Error \Classes\PayrollSetup\refreshWorkerTaxRegionTaxes 25 5 Variable Symmetry has not been declared.
Error \Classes\PayrollTaxEngineUtil\getGNISLocations 40 5 Variable Symmetry has not been declared.
Error \Classes\PayrollTaxEngineUtil\getMunicipalities 39 5 Variable Symmetry has not been declared.
Error \Classes\PayrollTaxEngineUtil\getSchoolDistricts 41 5 Variable Symmetry has not been declared.
Error \Classes\PayrollTaxEngineUtil\getTaxEngineLocationCodeList 38 5 Variable Symmetry has not been declared.
Error \Data Dictionary\Tables\PayrollEmployerTaxRegion\Methods\retrieveGNIS 12 5 Variable Symmetry has not been declared.
Error \Data Dictionary\Tables\PrlTmpGNIS\Methods\populatePrlTmpGNIS 13 5 Variable Symmetry has not been declared.

查看第一個錯誤\Classes\PayrollCalculatePayStatementBenefits\classDeclaration,進到代碼發現「Symmetry.TaxEngine.BenefitInfo benefitInfo401_403;」一行Symmetry.TaxEngine.BenefitInfo沒有定義,應該是某個.NET應用沒有正確註冊。在AX社區https://community.dynamics.com/ax/f/33/t/126055.aspx查到是由於ste-net.dll沒有成功引用,在目錄C:\Program Files (x86)\Microsoft Dynamics AX\60\Client\Bin找到ste-net.dll,從新添加到AOT/References下。數據庫

從新編譯,錯誤只剩下「The table WHSWorkLineCycleCount does not contain the method WHSWorkTable」。也是在AX社區找到答案,https://community.dynamics.com/ax/f/33/t/137853.aspx,表WHSWorkLineCycleCount 和表WHSWorkTable的關係CreateNavigationPropertyMethods 沒有設置爲YES,實際上系統中這個relation根本就沒有CreateNavigationPropertyMethods屬性,解決辦法是須要應用hotfix KB3001197(https://mbs2.microsoft.com/Knowledgebase/kbdisplay.aspx?WTNTZSMNWUKNTMMYNLOWUUPRYQYWXNMQVMLWYXRMMRSVYSUZ)。session

再次從新編譯,又出現錯誤「Stack trace: An empty SQL statement descriptor list has been encountered.」,按照微軟TechNet(http://technet.microsoft.com/en-us/library/jj161010.aspx)的說法是一些Configuration key被關閉致使的,在Configuration key配置中啓用全部的Key,同步數據庫表,從新編譯application成功。app

  • 按照升級清單執行到Compile into .NET Framework CIL時出現錯誤「The CIL generator found errors and could not save the new assembly」,中止AOS服務,刪除目錄C:\Program Files\Microsoft Dynamics AX\60\Server\MicrosoftDynamicsAX\bin\XppIL下的全部文件,從新啓動AOS,再作一次full CIL編譯成功。
  • 進行到「Synchronize database」時出現錯誤「Failed to create a session; confirm that the user has the proper privileges to log on to Microsoft Dynamics」,個人系統中數據是從R3的demo data導入的,當前的admin用戶在demo分區的ps和ext分區中部存在記錄,參照「http://domhk.blogspot.com/2014/10/ax2012-r3-demo-data-failed-to-create.html」解決,具體是新建2個臨時用戶,而後直接在數據庫中更新這2個用戶記錄爲admin用戶在ps和ext中的記錄。

 成功安裝CU8後AX 2012 R3的kernel version爲6.3.164.3198,application version爲6.3.1000.473。dom

相關文章
相關標籤/搜索