Application Name: Platform Version Number: 2.1.4
Question: I am trying to upload an image in Complex_Obs with the following filename hospitalfiledocument_14-Mar-2024_11:53:59.938.jpg but I am getting the ERROR**
ERROR - BaseRestController.handleException(115) |2024-03-13 12:53:45,097| 'obs id is null' failed to validate with reason: uuid: This value exceeds the maximum length of {0} permitted for this field.
org.openmrs.api.ValidationException: 'obs id is null' failed to validate with reason: uuid: This value exceeds the maximum length of {0} permitted for this field.
at org.openmrs.validator.ValidateUtil.validate(ValidateUtil.java:79)
at org.openmrs.aop.RequiredDataAdvice.before(RequiredDataAdvice.java:124)
at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:51)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:52)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207)
at com.sun.proxy.$Proxy270.saveObs(Unknown Source)
at org.openmrs.module.webservices.rest.web.v1_0.resource.openmrs1_8.ObsResource1_8.upload(ObsResource1_8.java:527)
at org.openmrs.module.webservices.rest.web.v1_0.controller.MainResourceController.upload(MainResourceController.java:103)
Any idea what am I missing?