-
-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Random error 'set_val_lab' - duplicated values in labels: #107
Comments
Thank you for the detailed description. Could you provide the full result of the |
I have run your code several times and didn't see any errors. Also tried with loaded |
Was this what you were looking for? |
@bkerwick I have reproduced this issue. It seems this bug is Windows specific. Currently I don't know why this happens. Will investigate further. |
I also encountered this issue today. I couldn't figure out what might be causing it, but it seems to be somehow related to unexpected behavior of the "/" character in value labels. Removing them has prevented this error, but I haven't tested it further yet, maybe it is just a coincidence, as this error was pretty random for me. |
I also recently ran into the error when trying to create a crosstab with 208 variables in tab_cells and 16 in tab_cols. Removing "/" character did not solve the problem for me. I have observed that the error becomes more likely the more variables you include. I wrote a code with trycatch as a temporary solution, so that I don't always have to re-run the code myself until it works. For the above scenario it took 7 tries until I got the record/table. Maybe it helps someone:
@gdemin Many thanks for your efforts and the great package! |
Thank you so much, @JB0207, for your valuable comment. Your suggestion to use the "TryCatch function with Repeat" worked perfectly for me. I appreciate your time and effort in helping me with this issue. |
I tried this approch and had no success. There problem seems to be somewhere else |
fix for gdemin#107 duplicated values in labels:
fix for gdemin#107 duplicated values in labels:
I forked your package and changed these 2 lines: This works well for me. |
@Waschoi You removed the check for label code duplication. And duplicated codes in value labels can produce unpredictable bugs in further processing, such as table creation. |
This was not intended to be a permanent solution, but rather a good workaround for me. As soon as there is a real fix, I would use your version again. The bug really drove us crazy because it is not reproducible. |
Since R 4.4.1 the problem is gone 😁 |
Thats great news thank you for your work around also |
We have started using expss to create a lot of tabs and workbooks and found we are getting a random error in the workflow.
To replicate a random error is hard but below is my attempt with screenshots where in the loop the error occurred.
Would like to know if there is a way to avoid this and if i am missing something obvious. Thank you for your time
The text was updated successfully, but these errors were encountered: