Invalid Record Type

Discussions about CSEntry
Post Reply
MrTaco
Posts: 128
Joined: November 18th, 2014, 1:55 am

Invalid Record Type

Post by MrTaco »

and I used this logic:
Invalid Record Type.png
Invalid Record Type.png (26.35 KiB) Viewed 2699 times

Code: Select all

 
 
PROC DATA_QUESTIONNAIRE_TYPE
  
if DATA_QUESTIONNAIRE_TYPE = 1 then 
  //GETOTHER(2);  {parameter = question number}
  loadcase(SABSSM_V_HOUSEHOLD_QUEST_DICT);
  enter SABSSM_V_HOUSEHOLD_QUESTIONNA_FF;
       writecase (SABSSM_V_HOUSEHOLD_QUEST_DICT);
  
elseif DATA_QUESTIONNAIRE_TYPE = 2 then
  //GETOTHER(2);  {parameter = question number}
        loadcase(SABSSM_V_FIFTEENANDOLDER_DICT);
        enter FIFTEEN_AND_OLDER_QUESTIONNAI_FF;
        writecase (SABSSM_V_FIFTEENANDOLDER_DICT);
       
       elseif DATA_QUESTIONNAIRE_TYPE = 3 then
  //GETOTHER(2);  {parameter = question number}
  loadcase(QUESTIONNAIRE_FOR_CHILDR_DICT);
  enter CHILDREN_AGED_12_TO_14_YEARS_FF;
        writecase (QUESTIONNAIRE_FOR_CHILDR_DICT);
  
  elseif DATA_QUESTIONNAIRE_TYPE = 4 then
  //GETOTHER(2);  {parameter = question number}
  loadcase(GUARDIAN_OF_CHILDREN_0_1_DICT);
  enter GUARDIAN_OF_CHILDREN_0_11_YEA_FF;
        writecase (GUARDIAN_OF_CHILDREN_0_1_DICT);
 
endif;
and another thing that, when I discard it doesnt locate the previous dictionary that was captured
please advice.
Gregory Martin
Posts: 1796
Joined: December 5th, 2011, 11:27 pm
Location: Washington, DC

Re: Invalid Record Type

Post by Gregory Martin »

I'm not sure exactly what your program is doing, but generally you'll get that Invalid Record Type error if:

1) The case is found but has an invalid record.

2) The case is not found and there are no cases in the data file.

Generally when you use loadcase you use it with it parameters. If you use it without parameters, then it tries to load the "next case" in the file. If there are no additional cases, you may get that error.
Post Reply