District Assignment Upload (Montana)

Tool Search: MT Data Upload

The District Assignment Upload allows districts to import district assignment data. Acceptable import formats are .TXT and .TSV. This import allows for the creation of new records and updating existing records with a Primary Key match. See the MT Data Upload article for more information about this tool.

See the District Assignment Extract article for information on the matching report for this import.

Import Records

See the Uploading Files section of the MT Data Upload article for detailed information about importing records via the MT Data Upload tool.

The Retrieve New Student State ID File option is only relevant to Student Demographic uploads. Please ignore this option when uploading staff data.

Upload Logic

This report can run against a district’s active year as well as any prior year and in both District Edition and State Edition against District Edition data.

Staff demographic and assignment data is compared to existing data to determine when to create a new staff demographic record. 

District assignment data can be imported for existing staff members. When a District Assignment record exists for a staff member, data is conditionally imported/overwritten with a Primary Key match. Primary Key fields include fields 1, 2, 3, 7, 8, and 10 (Record Type, District Number, Staff State ID, District Assignment School, District Assignment Start Date, and Assignment Code). 

Overlapping records are allowed when one or more District Assignment records exist for the staff member. When fields 1, 2, 3, 7, and 10:

  • do not match, but
    • The Assignment Code contained in the import file does not match the Assignment Code of an existing record in Campus; the new assignment record imports for the staff/district/school/assignment code.
    • The Assignment Code contained in the import file matches, but the District/School contained in the import file does NOT match; a new assignment record for this staff/district/school/assignment code imports.
  • match, then logic checks to see if fields 1, 2, 3, 7, 8, 9, and 10 are an exact match, 
    • When they match, the existing record is updated/overwritten with the data in the import file. Field 9 is unconditionally updated. Fields 12, 13, and 14 only update when the existing record contains N values and the import file contains Y values. The existing record Y is never overwritten with an N.
    • When they do NOT match, 
      • when field 8 (District Assignment Start Date) matches the existing Campus record, but field 9 (District Assignment End Date) does NOT match,
        • when the End Date in the import is blank, and the existing record in Campus contains an End Date, an error occurs, and this field is not updated.
        • when the End Date in the import files is NOT blank, and the existing record in Campus is blank, an update occurs. Fields 12, 13, and 14 only update when the existing record contains N values and the import file contains Y values. The existing record Y is never overwritten with an N.
      • when fields 8 and 9 in the import file are less than the District Assignment Start date in the existing Campus record, a new historic record is imported.
      • when fields 8 and 9 in the import file are greater than the District Assignment End Date in the existing Campus record, a new record is imported.

Upload Layout

Header Layout

Data ElementDescription
Record TypeThe abbreviation for the type of file generated. This reports as HD.

Alphanumeric, 2 characters (HD)
DateThe most recent date a change was made on the file or the date the file was generated.

Date field, 10 characters (MM/DD/YYYY)
TimeThe most recent time a change was made on the file or the date the file was generated.

Time field, 8 characters (HH:MM:SS)
VersionThe most current version of the file interface specification and references to the application system. This field reports as MT9.1.

Alphanumeric, 5 characters (MT9.1)

Upload Layout

#Data ElementDescriptionLocation
1Record TypeThe abbreviation for the type of file generated. This reports as DA.

Alphanumeric, 2 characters (DA)
N/A
2District NumberThe unique identifier assigned to the district by the OPI.

String, 4 characters
District Information > State District Number

District.number
3Staff State IDThe staff member's state identification number.

Numeric, 9 digits
Demographics > State Staff ID

Identity.staffStateID
4Last NameThe staff member's last name.

Alphanumeric
Census > Last Name

Identity.lastName
5First NameThe staff member's first name.

Alphanumeric
Census > First Name

Identity.firstName
6GenderThe staff member's gender.

Alphanumeric, 1 character (M or F)
Census > Gender

Identity.gender
7District Assignment SchoolThe unique school number assigned by OPI.

Alphanumeric, 4 characters
Census > District Assignment > School

School.number
8District Assignment Start DateThe start date of the staff member in the district.

Alphanumeric, 10 characters (MM/DD/YYYY)
Census > District Assignment > Start Date

EmploymentAssignment.startDate
9District Assignment End DateThe end date of the staff member in the district.

Alphanumeric, 10 characters (MM/DD/YYYY)
Census > District Assignment> End Date

EmploymentAssignment.enddate
10Assignment CodeThe assignment code of the staff member

Alphanumeric, 4 characters
Census > District Assignment> State Assignment Code

EmploymentAssignment.assignmentCode
11FTEThe full-time employment of the staff member.

Numeric, 5 digits (XXX.XX)
Census > District Assignment > FTE

EmploymentAssignment.FTE
12TeacherIndicates the staff member is a teacher.

Alphanumeric, 1 character (Y or N)
Census > District Assignment > Teacher

EmploymentAssignment.teacher
13Special EdIndicates the staff member is a special ed teacher.

Alphanumeric, 1 character (Y or N)
Census > District Assignment > Special Education

EmploymentAssignment.specialEd
14SupervisorIndicates the staff member is a supervisor.

Alphanumeric, 1 character (Y or N)
Census > District Assignment > Supervisor

EmploymentAssignment.supervisor