cancel
Showing results for 
Search instead for 
Did you mean: 

PL08 Application Crashes when attempting a LoadFromDatasource operation

Former Member
0 Kudos

We have recently upgraded to the latest patch level 8.81 SP00 PL08 and an add-on that function correctly in PL06 now crashes in this patch.

Using debug, we have narrowed the error down to a loadfromdatasource method being called on a matirix object, as below:

oForm.DataSources.DataTables.Item("mytable").ExecuteQuery("select Itemname from oitm where " & scond)
                oForm.Refresh()
                omatxtmp.Clear()
                omatxtmp.Columns.Item("uidDesc").DataBind.Bind("mytable", "itemname")

                Try

                    omatxtmp.LoadFromDataSource()
                Catch ex As Exception

                End Try

This happens in debug and causes SAP Business One to completely crash, creating a dump file.

Does anyone have any suggestions on how to overcome this problem?

Regards

Robert

Accepted Solutions (1)

Accepted Solutions (1)

former_member689126
Active Contributor
0 Kudos

Hi

Use omatxtmp.LoadFromDataSourceEX() method instead of LoadFromDataSource and check

Regards

Arun

Answers (2)

Answers (2)

AtLeastMe
Explorer
0 Kudos

Same problem here. I thought at first it has to do with changing the panelevel of the form. But now I am sure its the LoadFromDataSource() function.

Did anybody open a supportticket for this issue?

Former Member
0 Kudos

Is there any solution for this? Is it bug?

Did someone solved it already?

Thanks

Former Member
0 Kudos

So I will answer myself.

Its bug of PL8 and PL9 (in both PLs is same bug) and this will be solved in PL10.

Former Member
0 Kudos

Petr, did you hear this directly from SAP? I believe that the solution is above

Use the LoadFromDataSourceEX method instead.

Former Member
0 Kudos

Yes, created message and got info thats a bug which will be solved in PL10.

Former Member
0 Kudos

Thanks for the info.

I have marked your responses accordingly.

Former Member
0 Kudos

More Info on the exception thrown:

System.Runtime.InteropServices.COMException was caught

ErrorCode=-2147417851

Message="The server threw an exception. (Exception from HRESULT: 0x80010105 (RPC_E_SERVERFAULT))"

Source="Interop.SAPbouiCOM"

StackTrace:

at SAPbouiCOM.IMatrix.LoadFromDataSource()

at rootnsBrookbank.cmodBrook.oApplication_ItemEvent(String FormUID, ItemEvent& pVal, Boolean& BubbleEvent) in C:\Development\SAP\BrookBank_new15_09_11\cmodBrook.vb:line 172

InnerException: