- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
TriggerEDXTask API fails to pass the variable value to trigger the EDX task.
[View:http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/12/1440.TaskLog.txt:550:0]I have created the reload and distribute task on publisher with External event trigger. And want to trigger it using the TriggerEDXTask api by passing single valid variable as List<string>. Task is running but empty value is passed to distribution service. Below is the code snippet that passes testing3 variable with tdemo3 as variable value. Is this bug or below code need to be incomplete/need modified? Could anyone please let me know how to is pass the variable value to EDX task using TriggerEDXTask api to distribution service/publisher? App source is enclosed.
Code snippet
// create a QMS API client
QMSBackendClient apiClient = new QMSBackendClient();
ServiceKeyClientMessageInspector.ServiceKey = apiClient.GetTimeLimitedServiceKey();
// get a list of QDS services
List<ServiceInfo> qdsServices = apiClient.GetServices(ServiceTypes.QlikViewDistributionService);
List<string> variableValues = new List<string>() { "tdemo3" };
TriggerEDXTaskResult result = apiClient.TriggerEDXTask(qdsServices[0].ID, "Reload and Distribute of testVariable1.qvw", "testing", "testing3", variableValues);
Below are the entries from task log file
(2011-02-07 22:38:21) Information: Executing ClusterID=1, QDSID=75aa8092-ea96-3a9d-9fb8-3fbbc246342d QDSMain.DistributeTask
(2011-02-07 22:38:21) Information: Starting task "Reload and Distribute of testVariable1.qvw" (Attempt 1 of 1)
(2011-02-07 22:38:21) Information: Max run time: 1.00:00:00
(2011-02-07 22:38:21) Information: RepeatVariable found.
(2011-02-07 22:38:21) Warning: RepeatVariable found, but is empty. Name=testing3
(2011-02-07 22:38:21) Information: Document is marked for refresh; Initializing Reload.
(2011-02-07 22:38:21) Information: Opening "C:\svn\RTF\trunk\client\source\product\terragui\qvanalytics\qv6\testVariable1.qvw"
(2011-02-07 22:38:21) Information: Allocating QlikView Engine
(2011-02-07 22:38:21) Information: Allocating new QlikView Engine. Current usagecount=1 of 4
- Tags:
- automatic
- automation
- developer
- distribute
- distribution_service
- error_qlikview_server
- external_program_tasks
- external_task
- job
- publisher_error
- publisher_reload
- qlikserver
- qlikvie_dsc_service
- qlikview_10
- qlikview_publisher
- qms_api
- qv10
- qv10_sr1
- qv_10
- qv_publisher
- qv_server
- reload_failed
- reload_job
- reload_option
- reload_task
- reload_task_failed__document_failed_to_open
- reload_trigger_publisher
- reloads
- server_10
- tasks
- trigger_edx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hey,
having the same issue with the EDX
(2015-10-20 17:51:46) Information: Max attempts:1
(2015-10-20 17:51:46) Information: Current Attempt=0
(2015-10-20 17:51:46) Information: Task Dependencies are OK
(2015-10-20 17:51:46) Information: RepeatVariable found.
(2015-10-20 17:51:46) Warning: Empty RepeatVariable found. Name: vEdxParametersForReaload
did you manage to solve this problem?