

The Unknown Error Code
source link: https://aloiskraus.wordpress.com/2019/03/09/the-unknown-error-code/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

The Unknown Error Code
akraus1 Uncategorized March 9, 2019March 11, 2019
1 Minute
When you look at log files you will frequently find negative error codes inside them (that is mostly the reason why you are looking at the log file anyway). For some of them you can find on Google what they mean but pretty frequently you end up with nothing. Why is that so? Most likely you have a COM error code in front of you. They have a different structure which is described here.
The most important thing to remember about COM error codes is that if bit 31 is set it signals an error. If bit 31=1 the signed 32 bit value becomes negative. That explains the strange values of COM error codes. The bits 0..15 are most of the time the WIN32 error codes. Other bits above bit 15 can be set but these are irrelevant for normal readers of an error code.
If you ever encounter in a log file a negative error code you can follow that simple recipe to find out what it might be about. Lets suppose you have e.g. Error: -2147480631.
1. Open calc.exe, set it to Programmer mode and paste it as decimal number.
2. Get the first 4 digits of the hex number. Type in calc BC9 to get the decimal value.
3. Google for that Win32 error code or type on a command shell
net helpmsg 3017
and you finally have got a hint why some chained installer did fail. In that case it was some file in use issue which caused a MSI installer to demand a reboot and in the installer log file only that cryptic error code was to be found. Not many people seem to know that negative error codes are mostly a hint to try to convert the lower 16 bit of the error code to decimal and try to interpret that one as Win32 error code.
If you are a powershell guy
-2147480631 -band 0xfff
And here is the shortest form
net helpmsg (-2147480631 -band 0xfff)
That’s a simple but powerful trick which should be more widely known.
Published by akraus1
Recommend
-
103
Android P may gain support for blocking phone calls from unknown, unidentified, pay, and private phone numbers as part of an enhanced call blocking feature being pushed by Sony.
-
61
The replication crisis is largely concerned with known problems, such as the lack of replication standards, non-availability of data, or p-hac...
-
83
TypeScript 3.0 is out! It comes with enhancements for the type system, compiler, and language service. This release is shipping with the following: Project referenceslet TypeScript projects depend on ot...
-
53
I recently took on the task of setting up a private docker container registry. It's useful if you would like to host private images and are comfortable running your own infrastructure. It is relatively simple to...
-
58
-
6
Fixing the 'Unknown blob' error with Apache and Private docker registries ...
-
7
Error 520 Ray ID: 6440d58cc9e40a70 • 2021-04-22 18:14:52 UTC Web server is returning an unknown error ...
-
12
& Ldquo; Unknown column & hellip; ERROR no selected database & rdquo; In the MySQL Query advertisements I've be...
-
6
Samikhya Dash 6 hours ago Unknown Executable Error While Exporting SAP Transaction Codes to SOLMAN From SIgnavio 2...
-
6
Dean Avram 13 hours ago Unknown error in Intercompany voucher 23 Views
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK