cancel
Showing results for 
Search instead for 
Did you mean: 

Error importing an XML with the "GetBusinessObjectFromXML" object

Former Member
0 Kudos

Hi,

I'm trying to import an XML with the "GetBusinessObjectFromXML" object but its give an error "-1115" (No XML schema was found to represent this object).

The code that previously use to save the XML at next:



Dim oTablaMD As SAPbobsCOM.UserTablesMD
 
Dim oRec As SAPbobsCOM.Recordset
 
 
 
oRec = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset) 'Instancio un recordset para acceder a la base
 
 
 
oRec.DoQuery("SELECT TableName FROM OUTB") 'traigo los nombres de las tablas de usuario
 
While (Not oRec.EoF)
 
oTablaMD = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oUserTables) 'instancio una tabla de usuario
 
oTablaMD.GetByKey(oRec.Fields.Item(0).Value) 'le indico que tabla quiero obtener
 
oTablaMD.SaveXML(strRutaXML) 'exporto el XML
 
oRec.MoveNext() 'avanzo el registro
 
End While
 
 
 

Anybody know, what can be happening???

Thanks!!

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Dear Mariano Bertini,

Please check if the issue is same as SAP Note 1256343, it was fixed on B1 2007A PL48 by the note.

Best Regards

Jane Jing

SAP Business One Forums team