question

Upvotes
Accepted

Using DSS Website, possible to import multiple schedules in single XML file?

Using Datascope Select I need to import multiple schedules. I'd like to do this in using a single XML file using multiple <schedule> tags. Is this possible?

Example of what I am trying to do here:

<?xml version='1.0'?>
<ReportRequest xmlns='http:www.reuters.com/Datascope/ReportRequest.xsd'>;

<Schedule>
<ScheduleAction>Replace</ScheduleAction>
<Name>FC201208</Name>
<TickHistorySchedule>
<InputList>
<Name>FC201208</Name>
<Type>Instrument</Type>
</InputList>
<ReportTemplate>
<Name>FC201208</Name>
<Type>TickHistoryTimeAndSales</Type>
</ReportTemplate>
<OutputFileName>FC201208</OutputFileName>
<ScheduleTimezone>Eastern Standard Time</ScheduleTimezone>
<ScheduleImmediate></ScheduleImmediate>
</TickHistorySchedule>
</Schedule>

<Schedule>
<ScheduleAction>Replace</ScheduleAction>
<Name>FC201209</Name>
<TickHistorySchedule>
<InputList>
<Name>FC201209</Name>
<Type>Instrument</Type>
</InputList>
<ReportTemplate>
<Name>FC201209</Name>
<Type>TickHistoryTimeAndSales</Type>
</ReportTemplate>
<OutputFileName>FC201209</OutputFileName>
<ScheduleTimezone>Eastern Standard Time</ScheduleTimezone>
<ScheduleImmediate></ScheduleImmediate>
</TickHistorySchedule>
</Schedule>

</ReportRequest>

tick-history-rest-apixml
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Upvotes
Accepted
13.7k 26 8 12

@Jake DeSantis, as far as I know it is not possible to import several schedules using one file.

To test that I just tried it manually, using your example, but it failed on the 2nd schedule, with error:

Errors - 1
There are multiple root elements. Line 21, position 2.

PS: I removed the last tag which has no start.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Upvotes

Thanks Christiaan. In my code snippet I somehow errantly excluded that tag, but your note that it is not possible to import several schedules in one XML file answers my question.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Click below to post an Idea Post Idea