This is in continuation with the problem stated by Nilanjana Roy in the Subject “Internal server error occurred. Please contact with customer support of Survey Solutions.”
Thank you very much for modifying the Designer portal and now the Templates are imported in our server (https://mospi-capi.gov.in) after resolving the errors in the Templates, which were not shown earlier.
But @rowname used in the function having expression as below shows “obsolete,don’t use it” in place of the roster title (or roster name), name of the person (where variable roster was used).
( @rowindex + 1) + “. " + @rowname + " - " + " - " + new[]{”",“male”,“female”}[Convert.ToInt32(sex1.Value)] + " - " + (IsAnswered(age1) ? age1.ToString() : “0”) + " - " + (IsAnswered(marst1) ? new[]{"",“never married”,“currently married”,“widowed”,“divorced”}[ Convert.ToInt32(marst1.Value)] : “never married”) + " - " + new[]{"",“head of household” , “spouse of head” , “married child” , “spouse of married child” , “unmarried child” , “grandchild” , “father/mother/father-in-law/mother-in-law” , “brother/sister” , “others” }[ Convert.ToInt32(rel1.Value)] + " - " + (IsAnswered(gedu_lev1) ? new[]{"",“not literate” , “literate:EGS/NFEC/AEC” , “literate:TLC” , “literate: others” , “below primary” , “primary” , “middle” , “secondary” , “higher secondary” , “diploma/certificate” , “graduate” , “postgraduate or above”}[ Convert.ToInt32(gedu_lev1.Value)] : “not literate”)
But for the fixed roster, similar expression is working, where only @rowindex function is used.
The same Template is working as expected in Tester app.