Uploaded image for project: 'Apache Fineract'
  1. Apache Fineract
  2. FINERACT-1344

Table 'fineract_default.ppi_poverty_line' doesn't exist in `/api/v1/survey/surveyName/clientId`

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      https://demo.fineract.dev/fineract-provider/swagger-ui/index.html#/Survey/getClientSurveyOverview

      API: /survey/{surveyName}/{clientId}

      Requested URL: 
      https://localhost:8443/fineract-provider/api/v1/survey/sub-rates/1
       

      Error while calling

      Forwarding to error page from request [/api/v1/survey/sub-rates/1] due to exception [PreparedStatementC allback; bad SQL grammar

      [SELECT sub-rates as surveyName, tz.id, lkh.name, lkh.code, poverty_line, tz.date, tz.score FROM `sub-rates` tz JOIN ppi_likelihoods_ppi lkp on lkp.ppi_name = 'sub\-rates' AND ena
      bled = ? JOIN ppi_scores sc on score_from  <= tz.score AND score_to >=tz.score JOIN ppi_poverty_line pvl on pvl.likelihood_ppi_id = lkp.id AND pvl.score_id = sc.id JOIN ppi_likelihoods lkh on lkh.id = lkp
      .likelihood_id  WHERE  client_id = ?]; 
      

      nested exception is java.sql.SQLSyntaxErrorException: Table 'fineract_default.ppi_poverty_line' doesn't exist

      Test: 

      curl -X GET "https://localhost:8443/fineract-provider/api/v1/survey/sub-rates/1" -H  "accept: application/json" -H  "Authorization: Basic bWlmb3M6cGFzc3dvcmQ=" -H  "fineract-platform-tenantid: default" --insecure
      

      Results

      {
        "timestamp": 1618076928835,
        "status": 500,
        "error": "Internal Server Error",
        "message": "",
        "path": "/fineract-provider/api/v1/survey/sub-rates/1"
      }
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              josemakara Joseph Makara
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: