Variable(s) length do not agree with dictionary ID length

CSPro News
Post Reply
Theodore NIKIEMA
Posts: 5
Joined: November 15th, 2019, 9:25 am

Variable(s) length do not agree with dictionary ID length

Post by Theodore NIKIEMA » February 22nd, 2020, 3:34 pm

Hi every body, i need a help for this error:

" ERROR(INTERVIEWER_MENU, 1111): Variable(s) length do not agree with dictionary ID length"

when i'm runing this request:

"else
loadcase(HOUSEHOLD_DICT, INTERVIEWER_MENU);
LaunchHouseholdProgram();
"
thanks in advance.

josh
Posts: 2062
Joined: May 5th, 2014, 12:49 pm
Location: Washington DC

Re: Variable(s) length do not agree with dictionary ID length

Post by josh » February 23rd, 2020, 10:24 pm

That error means that the length of the variable you are passing to loadcase does not match the length of the id-items for the dictionary you are trying to load the case from. In your case the variable INTERVIEWER_MENU is a different length from the id-items of HOUSEHOLD_DICT. Loadcase works by taking the value you pass it and looking for a case whose id-items match that value. If the lengths are different the values will never match. So either adjust the length of the variable INTERVIEWER_MENU or modify the id-items of HOUSEHOLD_DICT so that the total length matches that of INTERVIEWER_MENU.

By the way, next time don't post a question like this under the "News" section. "Entry" might be more appropriate.

Theodore NIKIEMA
Posts: 5
Joined: November 15th, 2019, 9:25 am

Re: Variable(s) length do not agree with dictionary ID length

Post by Theodore NIKIEMA » February 24th, 2020, 10:53 am

Hi Josh, thank you for reply.

Post Reply