- Decimal, e.g. -2147206371
- Hex with the 0x prefix - e.g. 0x80043B1D
- Hex without the prefix - e.g. 80043B1D
The CRM SDK documentation has a reasonable set of information about each error here, but only refers to error codes in the last of the listed formats (e.g. 80043B1D). To convert the second format to the third format, just remove the 0x prefix.
The easiest way to convert the first (decimal) format is to use the Windows calculator utility (calc.exe), as follows:
- Open the calculator in scientific mode
- Check the Decimal (Dec) option is set
- Paste in the error code - e.g. -2147206371
- Select 'Hex' to convert it to Hex, this will then look like: FFFFFFFF80043B1D
- Remove the leading FFFFFFFF. You can then find the resulting code, e.g. 80043B1D, in the error codes
0 comments:
Post a Comment