Hi All,
I´m facing an issue when trying to add an excel based dataprovider to one Webi Doc. I uploaded the excel spreadsheet to BO, succesfully logged in but whne I try to add the datasource I´m getting an internal error :
<error> <error_code>400</error_code> <message>JAXBException occurred : cvc-complex-type.2.4.a: Invalid content was found starting with element 'dataprovider'. One of '{id, dataSourcePrefix, dataSourceType, updated, duration, isPartial, rowCount, flowCount, dictionary, query}' is expected.. cvc-complex-type.2.4.a: Invalid content was found starting with element 'dataprovider'. One of '{id, dataSourcePrefix, dataSourceType, updated, duration, isPartial, rowCount, flowCount, dictionary, query}' is expected.. </message> </error>
Here´s my javascript code :
bodie='<dataprovider> <name>My Excel data provider</name> <dataSourceId>5210158</dataSourceId> <properties> <property
key="selectedSheet">mysheet</property> <property key="rangeSelectionMode">all</property> <property
key="firstRowAsObjectNames">true</property> </properties><dataprovider>';
var logoff = new XMLHttpRequest();
var url = 'http://vrt0582.bndes.net:6405/biprws/raylight/v1/documents/5210245/dataproviders';
logoff.open('POST', url, false);
logoff.setRequestHeader('X-PINGARUNER', 'pingpong');
logoff.setRequestHeader('Content-Type', 'application/xml');
logoff.setRequestHeader('Accept', 'application/xml');
logoff.setRequestHeader('X-SAP-LogonToken', token);
logoff.send(bodie);
Hope anyone can help me,
Regards ,
Rogerio