Details
-
Bug
-
Resolution: Won't Fix
-
Critical
-
None
-
TPDM v0.7.0
-
Development machine as set-up by https://techdocs.ed-fi.org/display/TPDMX/Getting+Started
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.