I have a form that goes through an approval process, and lately some of my users have been getting a popup stating “Variant Does Not Contain a Container” when approving. Using the debugger I was able to determine that it was occurring here: Forall c In Conditions
Result = Evaluate(c, doc_)
If Result(0) = False Then
AllConditionsAreTrue = False
Exit Forall
Else
AllConditionsAreTrue = True
End If
End Forall
Private Sub satisfyConditions Dim AllConditionsAreTrue As Boolean
Dim Conditions As Variant
Dim Result As Variant
Do
Set workflow_ = workflow_.GetNextStatus
If workflow_.HasConditions Then
Conditions = workflow_.GetConditions
Forall c In Conditions
Result = Evaluate(c, doc_)
If Result(0) = False Then
AllConditionsAreTrue = False
Exit Forall
Else
AllConditionsAreTrue = True
End If
End Forall
If AllConditionsAreTrue = True Then Exit Do
Else
Exit Do
End If
Call Me.signAndDate
Loop Until workflow_.HasNextStatus = False
End Sub