Support Forum: Get Support for Patch My PC Products and Services

Microsoft Configuration Manager and Intune (Enterprises/Paid) => Knowledge Base Articles => Topic started by: Justin Chalfant (Patch My PC) on November 18, 2018, 03:16:25 PM

Title: An error occurred while publishing an update to WSUS: CreateDirectory failed
Post by: Justin Chalfant (Patch My PC) on November 18, 2018, 03:16:25 PM
An error occurred while publishing an update to WSUS: CreateDirectory failed
In this video guide, we will cover an error you may encounter when trying to publish third-party software updates to WSUS.

Error Overview and Symptoms
This exception happens when the WSUS ÔÇ£UpdateServicesPackagesÔÇØ folder doesnÔÇÖt exist, isnÔÇÖt shared correctly, or has incorrect permissions.

In PatchMyPC.log you will see the following:

SyncUpdate: Exception Message: CreateDirectory failed

(https://patchmypc.com/wp-content/uploads/2018/11/An-error-occurred-while-publishing-an-update-to-WSUS-CreateDirectory-failed.png)

An error occurred while publishing an update to WSUS CreateDirectory failed

In SMS_ISVUPDATES_SYNCAGENT.log you will see the following:

SyncUpdate: An exception occurred during publishing to WSUS
SyncUpdate: Exception HRESULT: -2147467259
SyncUpdate: Exception Message: CreateDirectory failed

(https://patchmypc.com/wp-content/uploads/2018/11/Exception-HRESUL-2147467259-Exception-Message-CreateDirectory-failed.png)

SyncUpdate An exception occurred during publishing to WSUS SyncUpdate Exception Message CreateDirectory failed

In UpdatesPublisher.log or SCUP.log you will see the following:

Exception occurred during publishing
Exception HRESULT: -2147467259
Exception Message: CreateDirectory failed

Exception HRESUL -2147467259 Exception Message CreateDirectory failed

(https://patchmypc.com/wp-content/uploads/2018/11/Exception-HRESUL-2147467259-Exception-Message-CreateDirectory-failed.png)

Resolution
The video guide goes into more details about why the updates fail to publish to WSUS with error ÔÇ£CreateDirectory failedÔÇØ and the possible resolutions.