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

CSPro News
Forum rules
New release: CSPro 8.0
Post Reply
Theodore NIKIEMA
Posts: 6
Joined: November 15th, 2019, 9:25 am

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

Post by Theodore NIKIEMA »

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: 2399
Joined: May 5th, 2014, 12:49 pm
Location: Washington DC

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

Post by josh »

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: 6
Joined: November 15th, 2019, 9:25 am

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

Post by Theodore NIKIEMA »

Hi Josh, thank you for reply.
Post Reply