on 11-17-2015 10:51 PM
Hi
I am able to export smaller files to XML and XLS files with out any issue from CURL and RESTFUL.
I have a report with close to 1 million records. After schedule complete in wid format then exporting report to XML using RESTFul and curl
I am using below code
curl -G -s -H "accept:text/xml" -H "X-SAP-PVL:en_US" -H $token "http://localhost:6405biprws/raylight/v1/documents/$docid" >>tmp/file.xml
and I tried in CSV, XLS and PDF
WIReportServer is running and utilizing more than 80% to 90%. one session and one user and only above script is running in that
environment but data is not exported to the report.
Is there any row imitation for RESTful API ? or CURL /RESTful wont support for larger data files ? or it is running long time? or this is not the correct approach?
Please help me on this.
Thanks
Satya
hello Satya
How did you get the value for $docid?
eric
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sure Eric, Please see below code.
step 1
curl -G -s -H "accept:application/xml" -H $token "http://localhost:6405/biprws/raylight/v1/documents/14579/schedules" >>14579_schedule.xml;
schedule list is going to xml file.
step 2
cat 14579_schedule.xml | grep '<id' | cut -d '>' -f 2 | cut -d '<' -f 1 >>docid.txt;
extracting the docid.
In progress: extract the success docid only.
step 3
docid=$(sort -nr docid.txt | head -1);
collecting the max docid
Correct me if anything wrong
hello Satya,
What happens if you try another call on the {docId} you extracted? For example "GET (application/xml) .../documents/{docId}" (depending on the version you are running) or "GET (application/xml) .../documents/{docId}/reports" ?
Moreover, be aware that your extraction workflow may return an id which is not a docId (for example a parameterId if you scheduled the document with prompts, etc.)
eric
Satya,
If you still have this issue, whatever the export format (PDF, etc...), we will need more information to investigate like servers logs, etc...
Please, could you rise a CSS ticket to SAP with all this information, the exact workflow to reproduce, plus the server logs?
And you could too add a link to this discussion in order that SAP Support will be aware that this issue has already been roughly analyzed by people from R&D.
Best regards,
Anthony
Adding server log and more information to the above question
<error>
<error_code>WSR 00101</error_code>
<message>An error has occurred while exporting the resource of type "Document" with identifier "25526" (FatalException occured. The cause was : com.crystaldecisions.enterprise.ocaframework.OCAFrameworkException$AllServicesDown: Unable to find servers in CMS localhost:6400 and cluster @localhost:6400 with kind webiserver and service null. All such servers could be down or disabled by the administrator. (FWM 01014)).</message>
</error>
I am the Admin for this box. no one manually down or disabled might be service restarted automatically.
I can download the report in (pdf,csv) few minutes from CMC latest instance. not successfull through RESTful.
Thanks
Satya
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Satya,
You are comparing two very different workflows:
1. (the one with the error)
Here you are asking WebI to process a document (i.e. in your case, export it). Even if "no one manually down or disabled" the service, could you check in the CMC WebI server is still running?
2. (the one which is ok)
You just download an already processed WebI document.
eric
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
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.