Uploaded image for project: 'Teacher Preparation Data Model'
  1. Teacher Preparation Data Model
  2. TPDMX-161

Unable to load University through the API

    XMLWordPrintable

Details

    Description

      When POSTing to the /tpdm/universities endpoint with the following payload:

       

      {"addresses":[
       {
       "addressTypeDescriptor":"uri://ed-fi.org/AddressTypeDescriptor#Physical",
       "stateAbbreviationDescriptor":"uri://ed-fi.org/StateAbbreviationDescriptor#CA",
       "city":"Bakersfield",
       "postalCode":"93311-1099",
       "streetNumberName":"9001 Stockdale Hwy"
       }
       ],
       "universityId":"110486",
       "nameOfInstitution":"California State University, Bakersfield",
       "categories":[
       {
       "educationOrganizationCategoryDescriptor":"uri://tpdm.ed-fi.org/EducationOrganizationCategoryDescriptor#University"
       }
       ]}

       

      it returns a 500 Internal Server Error with the following message:

      { "message": "An unexpected error occurred on the server." }

      and the following entry is logged in the API log:

      [5] ERROR EdFi.Ods.Api.Services.Controllers.TPDM.Universities.UniversitiesController [(null)] - Post
       NHibernate.QueryException: could not resolve property: UniversityId of: EdFi.Ods.Entities.NHibernate.UniversityAggregate.TPDM.University [from EdFi.Ods.Entities.NHibernate.UniversityAggregate.TPDM.University a where a.UniversityId = :UniversityId]

      This has been reproduced in 3 different environments including the demo API

      The same happens with the /tpdm/TeacherPreparationProviderPrograms endpoint.

      siffalo, lizbrunet: this is currently blocking CSU.

       

      Attachments

        Activity

          People

            Steven.Arnold Steven Arnold
            phollox Marcos Gallo
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Salesforce