Overview
Data Import until 1.2 won't support templates between versions. In this page we will mention possible workarounds to be able to import a Template for a different version into the desired version.
Option 1: Modify HTML
Details
This is a bit of a backdoor change where we modify the form from the generated HTML. This is possible because the version number validation is done after clicking the 'Import Template' button.
There are validations after clicking the button, therefore, this will only work when specifying an existing ODS / API version which makes the change safe and will not impact negatively the existing data or the Database structure.
1) Select the desired template and click on view:
2) On the Template Sharing, right click over the API version number and select Inspect Element:
3) After clicking the element, the HTML will appear. Below the version number, there's an <input> field with the ODS / API version number and a property "type: hidden":
4) Double click on the input field (in the Developer Console) and remove the type="hidden" property, press enter and a new input field appears on the screen:
5) Enter the desired ODS/ API version number into the input field, and click on 'Import Template':
6) If the version is valid, and the data does not exist in the system, the data will be correctly imported.
Video
https://www.screencast.com/t/BjLe8DfPFFR
Option 2: Build JSON
Details
This involves mapping data with a text editor.
1) Select the desired template and click on view:
2) Create a new JSON file in your system, this could be done from any test editor but it's recommended to use one that checks if the JSON file is valid before adding it into the system:
3) Copy the information from the Template Information section:
4) Paste the copied data into the JSON file and add quotes "", colons : and commas , between lines.
5) Modify the "Ed-Fi ODS / API Version" text to "APIVersion"
6) Modify the ODS / API version field to be the desired version:
7) Copy the information from the Submitter Information section:
8) Paste the copied data into the JSON file and add quotes "", colons : and commas , between lines:
9) Add a property "Template" to the JSON file, with a colon at the end:
10) Copy the information from the Template Preview section and paste it next to the template property (there's no need to modify the data from the Template Preview):
11) Save the file.
12) Go to the Import / Export section:
13) Choose the file created and click Import:
14) If the version is valid, and the data does not exist in the system, the data will be correctly imported.