Struggling with this issue also at the moment.
8.82 pl 9
Can you give me more info on how you resolved this?
I am basically doing exactly what you're doing there.
I have simplified Excel macro code for troubleshooting.
Just trying to add a pick list with 1 line.
Error is: No matching records found (ODBC -2028)
When i comment out lines code, I can add a picklist, header only, no lines.
My feeling is that there is an issue with this particular order docentry.
I have verified that its present, correct and not picked.
Code is as follows:
Set oPickLists = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oPickLists)
oPickLists.PickDate = Date
oPickLists.Lines.BaseObjectType = SAPbobsCOM.BoObjectTypes.oOrders
oPickLists.Lines.ReleasedQuantity = 1
oPickLists.Lines.OrderEntry = 39785
oPickLists.Lines.OrderRowID = 0
lRetCode = oPickLists.Add
if lRetCode <> 0 Then
MsgBox(oCompany.GetLastErrorDescription)
Else
MsgBox("OK")
End if
Could be a bug though in this patch, i see note 1825690 refers to same error, but creation of picklist from XML. I imagine that it would be the same issue?? I tested the same code on my local machine in a demo database in v9.0 pl 11 and it worked fine.
Any help appreciated.
Thanks,
John