UniTime XML Import Failure: Buildings, Rooms, and Courses Not Importing #188
-
I am attempting to import an XML file into UniTime to set up a demo academic session (Term: Demo, Year: 2025, Campus: Test Campus). While most elements (e.g., departments, subject areas, managers, etc.) import successfully, the Here's my xml: <sessionSetup term="Demo" year="2025" campus="Test Campus" dateFormat="yyyy/M/d" created="Wed Mar 05 12:00:00 EST 2025">
<!-- Session details for a one-week demo -->
<session startDate="2025/3/10" endDate="2025/3/16" classEndDate="2025/3/16" examStartDate="2025/3/17" eventStartDate="2025/3/10" eventEndDate="2025/3/17" roomManagement="true">
<holidays>
<!-- No holidays for a short demo week -->
</holidays>
</session>
<!-- Buildings -->
<buildings>
<building externalId="B1" abbreviation="ENG-BLDG" name="Engineering Building" xCoordinate="100" yCoordinate="200"/>
<building externalId="B2" abbreviation="PG-BLDG" name="Post Graduate Building" xCoordinate="150" yCoordinate="250"/>
</buildings>
<!-- Rooms -->
<rooms>
<room externalId="R101" building="B1" roomNumber="101" capacity="30" department="ENG">
<roomType reference="Lecture"/>
</room>
<room externalId="R102" building="B1" roomNumber="102" capacity="50" department="ENG">
<roomType reference="Lecture"/>
</room>
<room externalId="R201" building="B2" roomNumber="201" capacity="25" department="PG">
<roomType reference="Lecture"/>
</room>
<room externalId="R202" building="B2" roomNumber="202" capacity="40" department="PG">
<roomType reference="Lecture"/>
</room>
</rooms>
<!-- Timetable managers -->
<managers incremental="true">
<manager externalId="1" firstName="Abraham" lastName="Root" email="[email protected]">
<department code="ENG"/>
<department code="PG"/>
<role reference="Administrator" primary="true" emails="true"/>
</manager>
<manager externalId="2" firstName="John" lastName="Doe" email="[email protected]">
<department code="ENG"/>
<role reference="Dept Sched Mgr" primary="true" emails="true"/>
</manager>
<manager externalId="3" firstName="Jane" lastName="Smith" email="[email protected]">
<department code="PG"/>
<role reference="Dept Sched Mgr" primary="true" emails="true"/>
</manager>
</managers>
<!-- Departments -->
<departments>
<department code="ENG" externalId="ENG001" abbreviation="Eng" name="Engineering">
<eventManagement enabled="true"/>
<required time="false" room="false" distribution="false"/>
<instructorPreferences inherit="true"/>
</department>
<department code="PG" externalId="PG001" abbreviation="PG" name="Post Graduate">
<eventManagement enabled="true"/>
<required time="false" room="false" distribution="false"/>
<instructorPreferences inherit="true"/>
</department>
</departments>
<!-- Subject Areas -->
<subjectAreas>
<subjectArea abbreviation="MATH" title="Mathematics" department="ENG"/>
<subjectArea abbreviation="PROG" title="Programming" department="ENG"/>
<subjectArea abbreviation="ACCT" title="Accounting" department="PG"/>
<subjectArea abbreviation="BUSS" title="Business" department="PG"/>
</subjectAreas>
<!-- Solver Groups -->
<solverGroups>
<solverGroup abbreviation="Eng" name="Engineering Group">
<manager externalId="1"/>
<department code="ENG"/>
</solverGroup>
<solverGroup abbreviation="PG" name="Post Graduate Group">
<manager externalId="1"/>
<department code="PG"/>
</solverGroup>
</solverGroups>
<!-- Date Patterns -->
<datePatterns>
<datePattern name="Demo Week" type="Standard" visible="true" default="true">
<dates fromDate="2025/3/10" toDate="2025/3/15"/>
<!-- Monday to Saturday -->
</datePattern>
</datePatterns>
<!-- Time Patterns -->
<timePatterns>
<timePattern name="5 x 50" nbrMeetings="5" minsPerMeeting="50" type="Standard" visible="true" nbrSlotsPerMeeting="12" breakTime="10">
<days code="MTWThF"/>
<time start="0900"/>
<time start="1000"/>
<time start="1100"/>
<time start="1300"/>
<time start="1400"/>
</timePattern>
<timePattern name="2 x 75" nbrMeetings="2" minsPerMeeting="75" type="Standard" visible="true" nbrSlotsPerMeeting="18" breakTime="15">
<days code="TTh"/>
<time start="0900"/>
<time start="1030"/>
<time start="1300"/>
</timePattern>
</timePatterns>
<!-- Examination Periods -->
<examinationPeriods>
<periods type="final">
<period date="2025/3/17" startTime="0900" length="120"/>
</periods>
</examinationPeriods>
<!-- Academic Areas and Classifications -->
<academicAreas>
<academicArea externalId="CSE" abbreviation="CSE" title="Computer Science"/>
<academicArea externalId="MECH" abbreviation="MECH" title="Mechanical Engineering"/>
<academicArea externalId="MBA" abbreviation="MBA" title="Business Administration"/>
</academicAreas>
<academicClassifications>
<academicClassification externalId="01" code="01" name="First Year"/>
<academicClassification externalId="02" code="02" name="Second Year"/>
<academicClassification externalId="03" code="03" name="Third Year"/>
<academicClassification externalId="04" code="04" name="Fourth Year"/>
</academicClassifications>
<!-- Majors -->
<posMajors>
<posMajor externalId="CS01" code="CS01" name="Software Development" academicArea="CSE"/>
<posMajor externalId="CS02" code="CS02" name="Cybersecurity Studies" academicArea="CSE"/>
<posMajor externalId="ME01" code="ME01" name="Thermal Systems Design" academicArea="MECH"/>
<posMajor externalId="ME02" code="ME02" name="Mechatronics" academicArea="MECH"/>
<posMajor externalId="BA01" code="BA01" name="Entrepreneurship" academicArea="MBA"/>
<posMajor externalId="BA02" code="BA02" name="Corporate Finance" academicArea="MBA"/>
</posMajors>
<!-- Course Offerings (Simplified) -->
<offerings>
<offering subjectArea="MATH" courseNumber="101" title="Calculus I">
<config name="Lec" limit="30">
<subpart type="Lecture" suffix="Lec">
<instructor externalId="2" percentage="100"/>
<class limit="30" type="Lecture"/>
</subpart>
</config>
</offering>
<offering subjectArea="PROG" courseNumber="201" title="Intro to Programming">
<config name="Lec" limit="50">
<subpart type="Lecture" suffix="Lec">
<instructor externalId="2" percentage="100"/>
<class limit="50" type="Lecture"/>
</subpart>
</config>
</offering>
<offering subjectArea="ACCT" courseNumber="301" title="Financial Accounting">
<config name="Lec" limit="25">
<subpart type="Lecture" suffix="Lec">
<instructor externalId="3" percentage="100"/>
<class limit="25" type="Lecture"/>
</subpart>
</config>
</offering>
<offering subjectArea="BUSS" courseNumber="401" title="Business Strategy">
<config name="Lec" limit="40">
<subpart type="Lecture" suffix="Lec">
<instructor externalId="3" percentage="100"/>
<class limit="40" type="Lecture"/>
</subpart>
</config>
</offering>
</offerings>
</sessionSetup> Here the output log shown in the data exchange UI:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Buildings, rooms, and offerings cannot be imported using the session setup XML. We do have different import XMLs for them. In particular, see Buildings and rooms XML and Courses XML. All the available XML imports and exports are listed at www.unitime.org/uct_interfaces.php. Please note that buildings and rooms are imported as external buildings and rooms, you need to use the Update Data operation on the Buildings page (menu Administration > Academic Sessions > Buildings) for the buildings and rooms to show up in the application. Global room features need to be created before this update, and their abbreviation must match the roomFeature.feature attribute. |
Beta Was this translation helpful? Give feedback.
Buildings, rooms, and offerings cannot be imported using the session setup XML. We do have different import XMLs for them. In particular, see Buildings and rooms XML and Courses XML. All the available XML imports and exports are listed at www.unitime.org/uct_interfaces.php.
Please note that buildings and rooms are imported as external buildings and rooms, you need to use the Update Data operation on the Buildings page (menu Administration > Academic Sessions > Buildings) for the buildings and rooms to show up in the application. Global room features need to be created before this update, and their abbreviation must match the roomFeature.feature attribute.