I am trying to implement Custom XML parts feature in Office js.
While creating custom XML part in Excel, I am getting a GeneralException while adding the XML part in workbook.
I am fetching data from excel having 5000 rows and 4 columns.
I am encoding the data using Base64 encoding and storing the data in a XML tag in the following format -
My encoded data.
Are there any size limitation while adding a custom XML part in the workbook ?Is there any specific behind this error?
Example:
Excel.run(function (ctx) {
var xmlObj = "<data>My encoded data.</data>";
var xmlPart = ctx.workbook.customXmlParts.add(xmlObj);
return ctx.sync();
});