[
https://issues.apache.org/jira/browse/FINERACT-2417?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18044599#comment-18044599
]
Bharath Gowda edited comment on FINERACT-2417 at 12/12/25 6:14 AM:
-------------------------------------------------------------------
Hi [~victorromero] , there are two parts for this functionality
One is to create a report at the client/loan entity from
Admin->Templates->create template
This is working fine (check the screenshot 1)
!image-2025-12-12-11-39-49-125.png|width=414,height=188!
The second part is to execute the report from the Client/loan entity; the issue
is here
The error is coming when we try to execute the report from client/loan screen.
So, looking at the error message, I am not sure if the UI is calling the right
API or if the API is having the issue.
Hence, we need to identify the "execute Report" API and if the API l execution
of the report is working correctly.
Check the screenshot below for reference
!image-2025-12-12-11-39-40-963.png|width=534,height=241!
was (Author: bgowda):
Hi [~victorromero] , there are two parts for this functionality
One is to create a report at the client/loan entity from
Admin->Templates->create template
This is working fine (check the screenshot 1)
!image-2025-12-12-11-39-49-125.png!
Second part is to execute the report from Client/loan entity, the issue is here
the above attached error message is coming when we try to execute the report.
So looking at the error message I am not sure if the UI is calling the right
API or the API is having the issue.
check screenshot 2 for reference
!image-2025-12-12-11-39-40-963.png!
> Template Reports not working
> ----------------------------
>
> Key: FINERACT-2417
> URL: https://issues.apache.org/jira/browse/FINERACT-2417
> Project: Apache Fineract
> Issue Type: Improvement
> Affects Versions: 1.13.0
> Reporter: Bharath Gowda
> Priority: Major
> Attachments: Screenshot 2025-12-12 at 11.34.33 AM.png,
> image-2025-12-11-19-38-36-915.png, image-2025-12-12-11-39-40-963.png,
> image-2025-12-12-11-39-49-125.png
>
>
> To reproduce the issue
>
> 1. Create a sample template for the client or loan entity.
> under Admin->Templates->create template
> 2. Execute the report from the client/loan screen respectively
> Under the client screen->menu->more->client screen reports,
> select the created report and generate the report.
>
> System is throwing a 404 OK error
> Expected Fix
> # If the API is used in UI to generate the template report exists or wrong
> API
> ## If wrong API data, could anyone help with the correct API and body for
> running the template reports?
> # Is this a backend bug?
> ## If yes, please help in fixing the same with the below example API and
> response.
>
>
> Full error example
> API
> [https://URL/fineract-provider/api/v1/templates/1?clientId=10|https://url/fineract-provider/api/v1/templates/1?clientId=10]
> body: "{}"
> "accept": "application/json, text/plain, */*",
> "accept-language": "en-IN,en-GB;q=0.9,en-US;q=0.8,en;q=0.7",
> "authorization": "Basic Y2hhcmxlczpDaGFybGVzQDEyMyM=",
> "fineract-platform-tenantid": "default",
>
> Error Response
>
> {"developerMessage":"The requested resource is not
> available.","httpStatusCode":"404","defaultUserMessage":"The requested
> resource is not
> available.","userMessageGlobalisationCode":"error.msg.resource.not.found","errors":[\{"defaultUserMessage":"Template
> with url
> https://tomcat/fineract-provider/api/clients/10?tenantIdentifier=default not
> allowed","parameterName":"id","developerMessage":"Template with url
> https://tomcat/fineract-provider/api/clients/10?tenantIdentifier=default not
> allowed","userMessageGlobalisationCode":"error.msg.template.url.forbidden","args":[]}]}
>
>
> Expected result
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)