Seite 1 von 1

WUA ''ValueError: Zeitdaten '' entsprechen nicht dem Format '%m/%d/%Y''

Veröffentlicht: 27. März 2024 - 08:58 Uhr
von Tux
Guten Morgen

Auf einigen Windows 10- und Windows Server-Rechnern erhalte ich Fehler mit WUA.
Letzter Fehlerstatus: ValueError: Zeitdaten '' entsprechen nicht dem Format '%m/%d/%Y'

Ist dieses Problem in der neuesten Version von WAPT behoben?

Protokolle für die Aufgabe „Windows Update installieren“:

Code: Alle auswählen

Ensure wuauserv Auto Update option is disabled
Scanning with windows updates rules:
{
 "direct_download":false,
 "default_allow":false,
 "include_potentially_superseded_updates":false,
 "filter":"Type='Software' or Type='Driver'",
 "download_scheduling":"12h",
 "install_scheduling":"6h",
 "install_delay":"",
 "postboot_delay":"10m"
}
   Connecting to local update searcher using offline wsusscn2 file...
   Offline Update searcher ready...
Bypassing scan, no change since last successful scan
Looking for updates with filter: Type='Software' or Type='Driver'
Waiting for WUA search to complete
WUA Search completed !
Done searching
Updates scan done.
re-enabling wuauserv previous state: 0
time data '' does not match format '%m/%d/%Y'
Traceback (most recent call last):
  File "C:\Program Files (x86)\wapt\waptwua\client.py", line 931, in update_local_status_as_dict
    install_date = str(datetime.datetime.strptime(kbw['InstalledOn'], '%d/%m/%Y'))
  File "_strptime.py", line 568, in _strptime_datetime
  File "_strptime.py", line 349, in _strptime
ValueError: time data '' does not match format '%d/%m/%Y'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Program Files (x86)\wapt\waptservice\service.py", line 1934, in run
    self.running_task.run()
  File "C:\Program Files (x86)\wapt\waptservice\waptservice_common.py", line 737, in run
    self._run()
  File "C:\Program Files (x86)\wapt\waptservice\enterprise.py", line 288, in _run
    self.result = wua.install_updates(self.force, uuids=self.uuids)
  File "C:\Program Files (x86)\wapt\waptwua\client.py", line 1640, in install_updates
    self.scan_updates_status()
  File "C:\Program Files (x86)\wapt\waptwua\client.py", line 1260, in scan_updates_status
    dict_update_status[self.update_local_status_as_dict(u, _update_history,wmi_installed_windows_updates_result=wmi_installed_windows_updates_result)['update_id']] = self.update_local_status_as_dict(u, _update_history,wmi_installed_windows_updates_result=wmi_installed_windows_updates_result)
  File "C:\Program Files (x86)\wapt\waptwua\client.py", line 933, in update_local_status_as_dict
    install_date = str(datetime.datetime.strptime(kbw['InstalledOn'], '%m/%d/%Y'))
  File "_strptime.py", line 568, in _strptime_datetime
  File "_strptime.py", line 349, in _strptime
ValueError: time data '' does not match format '%m/%d/%Y'

ValueError: time data '' does not match format '%m/%d/%Y'
Traceback (most recent call last):
  File "C:\Program Files (x86)\wapt\waptwua\client.py", line 931, in update_local_status_as_dict
    install_date = str(datetime.datetime.strptime(kbw['InstalledOn'], '%d/%m/%Y'))
  File "_strptime.py", line 568, in _strptime_datetime
  File "_strptime.py", line 349, in _strptime
ValueError: time data '' does not match format '%d/%m/%Y'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Program Files (x86)\wapt\waptservice\service.py", line 1934, in run
    self.running_task.run()
  File "C:\Program Files (x86)\wapt\waptservice\waptservice_common.py", line 737, in run
    self._run()
  File "C:\Program Files (x86)\wapt\waptservice\enterprise.py", line 288, in _run
    self.result = wua.install_updates(self.force, uuids=self.uuids)
  File "C:\Program Files (x86)\wapt\waptwua\client.py", line 1640, in install_updates
    self.scan_updates_status()
  File "C:\Program Files (x86)\wapt\waptwua\client.py", line 1260, in scan_updates_status
    dict_update_status[self.update_local_status_as_dict(u, _update_history,wmi_installed_windows_updates_result=wmi_installed_windows_updates_result)['update_id']] = self.update_local_status_as_dict(u, _update_history,wmi_installed_windows_updates_result=wmi_installed_windows_updates_result)
  File "C:\Program Files (x86)\wapt\waptwua\client.py", line 933, in update_local_status_as_dict
    install_date = str(datetime.datetime.strptime(kbw['InstalledOn'], '%m/%d/%Y'))
  File "_strptime.py", line 568, in _strptime_datetime
  File "_strptime.py", line 349, in _strptime
ValueError: time data '' does not match format '%m/%d/%Y'

Betreff: WUA ''ValueError: Zeitdaten '' entsprechen nicht dem Format '%m/%d/%Y''

Veröffentlicht: 28. März 2024 – 19:25 Uhr
von dcardon
Hallo Sébastien,

oh je, ich glaube, da ist ein Fehler. Anscheinend haben weder Windows Update noch WMI Informationen zum Installationsdatum. Das kann passieren, wenn Sie den Ordner C:\Windows\SoftwareDistribution\ gelöscht haben und gleichzeitig ein anderer Fehler auftritt, wie der, auf den wir gerade gestoßen sind.

Wir kümmern uns morgen im Büro darum.

Viele Grüße,

Denis

Betreff: WUA ''ValueError: Zeitdaten '' entsprechen nicht dem Format '%m/%d/%Y''

Veröffentlicht: 12. April 2024 - 11:40 Uhr
von Tux
Hallo,

nur zur Information: Der Ordner „c:\windows\softwaredistribution\“ ist auf den betroffenen Rechnern vorhanden.
Haben Sie bereits eine Lösung für dieses Problem gefunden?