cancel
Showing results for 
Search instead for 
Did you mean: 

Data Table - invalid Unique Id [66000-138] while inspecting CFL SelectedObjects

AlexMan
Discoverer
0 Kudos

After migrating customer's servers from SAP9.3 PL12 to SAP 10 2402 (through 2208) our addon started giving back an exception when accessing any property of SelectedObjects from ChooseFromListEvent

 

System.Runtime.InteropServices.COMException (0xFFFFE1B3): Data Table - invalid Unique Id  [66000-138]
   bei SAPbouiCOM.DataTableClass.get_IsEmpty()

 

on line where I use cflEvent.SelectedObjects.IsEmpty, like in code sample:

 

public bool ProcessItemEvent(string FormUID, ref SAPbouiCOM.ItemEvent pVal)
{
	if (pVal.EventType == SAPbouiCOM.BoEventTypes.et_CHOOSE_FROM_LIST && !pVal.BeforeAction && pVal.ActionSuccess && pVal.ItemUID == "edBP") {
		var oForm = GetForm(FormUID);

		SAPbouiCOM.ChooseFromListEvent cflEvent = pVal as SAPbouiCOM.ChooseFromListEvent;
		SAPbouiCOM.Grid grid = SAPUtils.GetControl<SAPbouiCOM.Grid>(oForm, "gRLZ");
			

		if (!cflEvent.SelectedObjects.IsEmpty)
		{
			SetCardName(oForm, cflEvent.SelectedObjects.GetValue("CardName", 0).ToString());

 

 

 Dear experts, any ideas what should I do with this? It looks like a bug.

Accepted Solutions (0)

Answers (0)