分享方式:


即使成功套用 SQL Server 更新,應用程式事件記錄檔錯誤碼 1642

本文提供有關成功套用 SQL Server 更新的應用程式事件記錄檔中所報告之 1642 錯誤訊息的詳細資訊。

原始產品版本: SQL Server 2016、SQL Server 2014、SQL Server 2012 Developer、SQL Server 2012
原始 KB 編號: 4230836

徵兆

當您安裝累積更新至 Microsoft SQL Server 時,安裝程式可能會順利完成。 不過,您可能會發現系統的應用程式事件記錄檔中記錄了下列錯誤:

Log Name:      Application  
Source:        MsiInstaller  
Date:         date time  
Event ID:      1024  
Task Category: None  
Level:         Error  
Keywords:      Classic  
User:          SYSTEM  
Computer:     host_name  
Description:  
Product: SQL Server 2016 Database Engine Services - Update '  {DDCDC225-F14E-411F-925A-7CF68238240F}' could not be installed. Error code 1642. Windows Installer can create logs to help troubleshoot issues with installing software packages. Use the following link for instructions on turning on logging support: http://go.microsoft.com/fwlink/?LinkId=23127  
Event Xml:  
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">  
    <System>
        <Provider Name="MsiInstaller" />
        <EventID Qualifiers="0">1024</EventID>
        <Level>2</Level>
        <Task>0</Task>
        <Keywords>0x80000000000000</Keywords>
        <TimeCreated SystemTime="date time" />
        < EventRecordID>463708</EventRecordID>
        < Channel>Application</Channel>
        <Computer>host_name</Computer>
        <Security UserID="user_id" />
    </System>
    <EventData>
        <Data>SQL Server 2016 Database Engine Services</Data>
        < Data>{DDCDC225-F14E-411F-925A-7CF68238240F}</Data>
        <Data>1642</Data>
        <Data>(NULL)</Data>
        <Data>(NULL)</Data>
        <Data>(NULL)</Data>
        <Data>
        </Data>
        <Binary>7B42463645333843342D443830312D343530382D394536312D3236463545303544363045437D207B44444344433232352D463134452D343131462D393235412D3743463638323338323430467D2031363432</Binary>
    </EventData>
</Event>

原因

此問題發生在應用程式事件記錄檔中記錄 MSI 安裝程式套件失敗的數個案例中,因為對 API 的 MsiGetPatchFileList 安裝程式呼叫不會從 MSP (Windows Installer 修補程式檔案) 取得檔案清單。

解決方法

當下列條件成立時,您可以在應用程式事件記錄檔中安全地忽略此訊息:

  • SQL Server 累積更新的設定已順利完成。

  • Summary.txt檔案中不會記錄任何錯誤訊息。

如需詳細資訊,請參閱< View and Read SQL Server Setup Log Files>。