Hi,
I am facing an issue with the Refresh Document step, in Raylight Workflow using RESTful API.
We are using this Refresh Document call, To make the dataprovider mappings formed.
For few WEBI documents, this Refresh document step is taking much time to complete. After some investigation, we got to know that there are a series of SQL scripts running against actual data source, for each Refresh Document call. If the SQL script is taking much time, then the refresh document call is taking much time as well.
Up to now, we are able to solve this problem in some cases, Like below.
1. For a WEBI Document with Contexts to Answers during Refresh Document:
Ex:
Method: PUT
URI:http://localhost:6405/biprws/raylight/v1/documents/1111/parameters
Request Body:(setting default Context)
<parameters>
<parameter>
<id>3</id>
<answer>
<values>
<value id="4">Context1</value>
</values>
</answer>
</parameter>
</parameters>
Result: Success (No Time out Exception)
2. For a WEBI Document with some prompts to Answers during Refresh Document:
Ex:
Method: PUT
URI:http://localhost:6405/biprws/raylight/v1/documents/1111/parameters
Request Body:(With Some Dummy Values)
<parameters>
<parameter type="prompt" optional="true">
<id>1</id>
<answer type="Text">
<values>
<value id="1">Dummy Text</value>
</values>
</answer>
</parameter>
<parameter type="prompt" optional="true">
<id>3</id>
<answer type="Numeric">
<values>
<value id="1">0</value>
</values>
</answer>
</parameter>
</parameters>
Result: Success (No Time out Exception)
3. For a WEBI Document with No prompts and No Contexts to Answers during Refresh Document:
Ex:
Method: PUT
Request Body: (Empty)
Result: Time Out Exception (from my C# code)
Only In this scenario (3) i am facing issue, As I have no answers to set any default values to Parameters. So the SQL scripts are executing. Due to this, if there is any time taking scripts, then the Refresh document step is taking much time or even throwing Time out exception from my C# code. I tried by increasing the timeout for WebRequest in C#, But still not solved.
For creation of a WEBI document, Can we skip the SQL scripts, running in Refresh Document API call?
If yes, then please let me know your valuable ideas to solve my problem.
Please let me know for more information.
Thanks in advance.
Thanks,
Mahendra