Page 1 of 1

BLANK OCCURRENCES IN ROSTER

Posted: November 29th, 2023, 3:22 pm
by RERII
I KEEP SEEING BLANK RECORDS IN MY HOUSEHOLD ROSTER. I NEED TO PREVENT IT FROM HAPPENING. ONE HOUSEHOLD MEMBER BUT 42 EXTRA BLANK OCCURRENCES. IT HAS HAPPENED TO MANY HOUSEHOLDS.

Re: BLANK OCCURRENCES IN ROSTER

Posted: November 30th, 2023, 9:42 am
by justinlakier
Are you creating 43 occurrences and then skipping all but the first in the roster? If you post your zipped application here or to the mailing list cspro@lists.census.gov we will be able to test it and look at the code to see more details about where this problem is happening.

Thanks,
Justin

Re: BLANK OCCURRENCES IN ROSTER

Posted: November 30th, 2023, 12:52 pm
by PURPLESTUFF
He can always use the delete occurrence

// remove "blank" person records
do numeric i = totocc(PERSON_REC) while i >= 1 by -1

if RELATIONSHIP(i) = notappl and SEX(i) = notappl and AGE(i) = notappl then
delete(PERSON_REC(i));
endif;

enddo;

Re: BLANK OCCURRENCES IN ROSTER

Posted: November 30th, 2023, 2:07 pm
by sherrell
You generally don't want to do this kind of clean up on collected data, you should be correcting the source of the error, i.e., how did the blank records get generated in the first place. Once we see the application we can figure out what's going on.

Re: BLANK OCCURRENCES IN ROSTER

Posted: November 30th, 2023, 4:53 pm
by Mariovaisman
Hello,
I had this situation, and it happened when for example you enter only the first line in the roster, and the roster is defined with 40 occurrences, then you exit the roster and do a partial save, then all the occurrences remain there, but if you end the case, all the empty lines are removed.

Hope this information can help.

Mario

Re: BLANK OCCURRENCES IN ROSTER

Posted: December 27th, 2023, 11:11 am
by sherrell
Hi Mario,

If you can reproduce this problem then you're gold! If we can't reproduce it then we often can't find the source of the bug.

Sorry for delayed response, Happy New Year!
Sherrell