on 04-02-2016 1:10 AM
1. Create Document
String Create= "<document><name>Doc</name><folderId>4825</folderId></document>"
2. Added Data Provider
String Create = <dataprovider><name>eFashion</name><dataSourceId>4835</dataSourceId></dataprovider>"
3.After Dataprovider creation I am using the below code to add queryspecification
4. Getting the below error. Please help
Hi Sivaraman,
Maybe there is an issue in your QS (Query Specification). Can you try to create the query through Webi UI and then, get the QS of the existing document through Raylight. Then, compare what you sent with what you received from Raylight.
Best regards,
Anthony
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Anthony and Dan.
As per your suggestion I got the QS from the existing report with the same one column report. compared my input xml and updated few values then matched.
Below is the Webi QS got from Existing Report through raylight.
Below is the Updated code:
Still I get the same error. Please help.
It looks like issue with QS generated in my code. If I get the QS from server and save it locally as XML file then load the XML file and pass it to web service call then I am able to create.
What could be the issue when I generate the QS in the code? Is there any encoding issue?
Any insights will be helpful?
Thanks again for your help.
The only thing that stands out is that you are changing the "identifier" in the BOQuery element, but I'm not sure why that would cause the error.
If it is an encoding issue, one thing to try would be to read in the XML as UTF8, just to make sure:
dataByte = Encoding.UTF8.GetBytes(pXML.OuterXml);
Dan
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.