Friday, October 17, 2008

LR Error List COM|DCOM

These are some of the errors you might encounter in a COM\DCOM protocol
Protocol: COM/DCOM
Error: Vuser failed to initialize extension vbascriptext.dll.
Reasons: VBA not installed on the Controller or Vugen Machine
Solution: Install the VBA Setup from the start->All Programs-> Load Runner -> Tools -> VBA Setup


Error: 3021 - Either BOF or EOF is True, or the current record has been deleted.
Requested operation requires a current record
Reasons: While recording, LoadRunner saves the content of a recordset into a file using the save function from ADO::Recordset.
To implement this, LoadRunner will move the pointer to the EOF. If the application cannot detect the pointer position,
and tries to move the pointer that is already at the EOF, it will cause a problem or crash.

Solution: Turn off the "Save recordset content" options in Recording Options
Turn off the "Save recordset content" option in Recording Options. This will allow the application to move on, but it will
also lose the Grids.


Error: VBA Script Error: Either BOF or EOF is True, or the current record has been deleted. Requested operation requires a current record.
Source: ADODB.Field
wCode: 0 (0x00000000)
sCode: -2146825267 (0x800a0bcd)
Help Context: C:\WINDOWS\HELP\ADO270.CHM (1240645)
Reasons: If the record you are looking for does not exist in the current context.
Solution: Stage data properly



Error: 0x800a0006 Buffer Overflow
Reasons: Type Conversion problem. trying to convert a value larger than 32767 into an integer. (error occured when OrderNumber is greater than 32767)
Solution: try using clng instead of cint.


Error : 0x800A000D Type mismatch
Reasons: wrong Type for the sending argument
Solution: clng,cbool,cint,cstr etc.

Error: 0x800A005B Object variable or with block variable not set
Reasons: permissions
Solution: give the user complete folder permissions

Error: Run-time error 383. 'Text' property is readonly
Reasons:
Private Sub Form_Load()
With Combo1 'Style = 2 Dropdown list
.AddItem "One"
.AddItem "Two"
.AddItem "Three"
End With
End Sub

Private Sub Command1_Click()
'No error
Combo1.Text = "Two"
End Sub

Private Sub Command2_Click()
'383 error
Combo1.Text = "Four"
End Sub
Solution:
Pass the correct value for the drop down boxes


Error : ADODB.Recordset (0x800A0E78)
Reason:

set dbs = Server.CreateObject("ADODB.Connection")

dbs.Open strODBC
set rst = dbs.Execute(strSQL)

Do not use a recordset to execute a query that does not return records. in
fact, tell ADO not to bother constructing an expensive recordset object:

dbs.Execute strSQL,,129

The 129 is a combination of 1 (adCmdText) and 128 (adExecuteNoRecords). If
you have a metadata tag referencing the ADO type library dbs.Execute strSQL,, adCmdText + adExecuteNoRecords

Solution: use simple queries to update or insert.