MSI.ViewGetError

table MSI.ViewGetError ( 

number hView )

Description

Calls the MsiViewGetError function that returns the error that occurred in the MSI.ViewModify action.

Note: You should only call MSI.ViewGetError when MSI.ViewModify returns ERROR_INVALID_DATA, indicating that the data is invalid. Errors are only recorded for MSIMODIFY_VALIDATE, MSIMODIFY_VALIDATE_NEW, and MSIMODIFY_VALIDATEFIELD.

Parameters

hView

(number) The handle to the view.

Returns

(table)  A table indexed by the following keys.

KEY

TYPE

DESCRIPTION

ColumnName

String

The column name, empty string or no error.

ErrorCode

 

Number

The error code:

CONSTANT

VALUE

DESCRIPTION

MSIDBERROR_INVALIDARG

-3

invalid argument

MSIDBERROR_MOREDATA  

-2

buffer too small

MSIDBERROR_FUNCTIONERROR

-1

function error

MSIDBERROR_NOERROR

0

no error

MSIDBERROR_DUPLICATEKEY

1

new record duplicates primary keys of existing record in table

MSIDBERROR_REQUIRED

2

non-nullable column, no null values allowed

MSIDBERROR_BADLINK

3

corresponding record in foreign table not found

MSIDBERROR_OVERFLOW

4

data greater than maximum value allowed

MSIDBERROR_UNDERFLOW

5

data less than minimum value allowed

MSIDBERROR_NOTINSET

6

data not a member of the values permitted in the set

MSIDBERROR_BADVERSION

7

invalid version string

MSIDBERROR_BADCASE

8

invalid case, must be all upper-case or all lower-case

MSIDBERROR_BADGUID

9

invalid GUID

MSIDBERROR_BADWILDCARD

10

invalid wildcardfilename or use of wildcards

MSIDBERROR_BADIDENTIFIER

11

bad identifier

MSIDBERROR_BADLANGUAGE

12

bad language Id(s)

MSIDBERROR_BADFILENAME

13

bad filename

MSIDBERROR_BADPATH

14

bad path

MSIDBERROR_BADCONDITION

15

bad conditional statement

MSIDBERROR_BADFORMATTED

16

bad format string

MSIDBERROR_BADTEMPLATE

17

bad template string

MSIDBERROR_BADDEFAULTDIR

18

bad string in DefaultDir column of Directory table

MSIDBERROR_BADREGPATH

19

bad registry path string

MSIDBERROR_BADCUSTOMSOURCE

20

bad string in CustomSource column of CustomAction table

MSIDBERROR_BADPROPERTY

21

bad property string

MSIDBERROR_MISSINGDATA

22

_Validation table missing reference to column

MSIDBERROR_BADCATEGORY

23

Category column of _Validation table for column is invalid

MSIDBERROR_BADKEYTABLE

24

table in KeyTable column of _Validation table could not be found/loaded

MSIDBERROR_BADMAXMINVALUES

25

value in MaxValue column of _Validation table is less than value in MinValue column

MSIDBERROR_BADCABINET

26

bad cabinet name

MSIDBERROR_BADSHORTCUT

27

bad shortcut target

MSIDBERROR_STRINGOVERFLOW

28

string overflow (greater than length allowed in column def)

MSIDBERROR_BADLOCALIZEATTRIB

29

invalid localization attribute (primary keys cannot be localized)

 

 

See also:  Related Actions