How do I fix up the quota file if I get a crc error when loading the study?

When I try to load a study, I get an error that looks like the following in the supervisor:

ERROR: Server command: dev <devnumber> /cfmc/test8.73/quota/<studyname>.quo crc 2659 <> 9ad0 unmatched quo qff crc Press <Enter>

NOTE: The 2 crc values that print on your error will likely not match the above.


The above error is generated when thequotaschema for the .quo file and the qff do not match. This can happen if you add orremovequotasafter thequotafile has been built or if you have multiple qffs touching a singlequotafile. The repair procedure is slightly different depending upon which of the above applies to the your current situation. The recovery process is different and more complicated if you have multiple qffs.


If you follow the procedures below, you should not ever encounter the error.


To fix a single qff problem, do the following:


0) Make a backup copy of the live .quo file.


1) Use the “O” option in Quotamod on the “live networked”quotato create an ASCII copy of all the currentquotavalues.


2) In the “test studies” directory, DELETE thequotafile.


3)Recompilethe qpx and create new qff and quo files.


4) Copy the qff to the “live networked” qff directory and copy the .quo file to the “live networked”quotadirectory.


5) Use the “I” option in Quotamod on the “live networked”quotato read back in your ASCII copy of all the currentquotavalues. If you get errors because there are quotas that used to exist and no longer do, you need to decide how to handle that. You can either ignore the errors, or you need to go back to your qpx and add in “dummy” quota questions to create the quotas that were removed.


6) Use the “QSS” command in the supervisor to verify that thequotavalues are all updated correctly and that the study also loads correctly.



If you have multiple qffs, the process is a bit more involved, especially if thequotasare not identical in both files.


Step 3 below is the main difference between the two recovery processes and and is in highlighted below.


0) Make a backup copy of the live .quo file.


1) Use the “O” option in Quotamod on the “live networked”quotato create an ASCII copy of all the currentquotavalues.


2) In the “test studies” directory, DELETE thequotafile.


3) Compileqpx 1,compileqpx 2, andcompileqpx 1 again. If you have more than 2 qff files, then you have tocompileeach one twice except for the last one. For instance, if you have 3 qffs all using the same study code, you would have to compile1, compile2, compile3, compile1 and lastly compile2. This will make sure that each qff file knows about all the quotas inall the other qff files. You can avoid having to compile each qff multiple times if you are certain that the quota references in each qff is identical. This is oftendone by having a shared set of code that is read in by both qpx files.


4) Copy all the qffs to the “live networked” qff directory and copy the .quo file to the “live networked”quotadirectory.


5) Use the “I” option in Quotamod on the “live networked”quotato read back in your ASCII copy of all the currentquotavalues. If you get errors because there are quotas that used to exist and no longer do, you need to decide how to handle that. You can either ignore the errors, or you need to go back to your qpx and add in “dummy” quota questions to create the quotas that were removed.


6) Use the “QSS” command in the supervisor to verify that thequotavalues are all updated correctly and that the study also loads correctly.