Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.

I am having the same issue...

 

Starting a new drawing fires up a form asking what sheet format is required for the drawing, (then populates the sheet with sheet format rule) all of this works fine for new sheets in an existing drawing.  The harness error pops up when starting a new drawing firing this rule which is the same form and rules but then deletes the first sheet

 

' call up list of sheets from parameter "Sheet_Format"

iLogicForm.Show("Create Drawing", FormMode.Modal)


iLogicVb.RunRule("Sheet Formats")

Dim oSheet As Sheet
If MyBooleanParam = True Then
oSheet = ThisApplication.ActiveDocument.Sheets.Item(2) 
oSheet.Delete
Else
	Try 
	oSheet = ThisApplication.ActiveDocument.Sheets.Item(1) 
	oSheet.Delete
	Catch
	MessageBox.Show("2nd sheet not found?", "iLogic")
	Return
	End Try
End If