Type mismatch error in Dynamic Data linking between parent and child projects

Hi, I am using Dynamic Data linking a parent project to child project. The linking is successful and data is showing. However, the questions are giving an error “java.lang.String cannot be cast to java.lang.Integer”.

I have used the same format as shown in the example on the support page. The error is showing up for “Date” and “Select One” type questions. Please let me know why this might be happening and how I can fix this issue. Thanks.

Welcome to the community, @sasanka! Could you also let us know the mode of data collection (Enketo web form or Collect android app) you are using? We would also appreciate if you could share with the community a screenshot of the error message you are seeing.

Thanks @Kal_Lam!
I am using Kobo Collect. Here is the screen shot.


Hi, I have solved this issue by casting the calculation to an int() where necessary. Thanks.