You need to sign in to do that
Don't have an account?
Assertion Fails on OpportunityLineItem
I didn't see response to the other posting for the same problem so I'll try a fresh one..
I get the errror "Assertion Failed" when I attempt to insert a record in the OpportunityLineItem object
Any ideas?
RJ
Dim OppLineItem As New Sforce.OpportunityLineItem
OppLineItem.PricebookEntryId = "01u200000002rs7AAA"
OppLineItem.ProductId = "00j20000000jkGwAAI"
OppLineItem.Quantity = 1
OppLineItem.QuantitySpecified = True
OppLineItem.UnitPrice = 0
OppLineItem.UnitPriceSpecified = True
OppLineItem.Description = "Default Product created"
OppLineItem.OpportunityId = myReader("ObjectId").ToString
saveResults = sService.create(New Sforce.sObject() {OppLineItem})
If saveResults(0).success = False Then
Throw New Exception(saveResults(0).errors(0).message.ToString)
End If