Hi there! I just started working in Seamly a while ago, and I’m running into a critical error where the element draftBlock isnt defined.
The error message says: “Exception: Element draftBlock is not defined in this scope. Validation error file [file name] in line 3 column 30.”
I’ve opened the file in notepad (I didn’t edit anything, just wanted to see what was going on) and there doesn’t seem to be a blatant issue I can spot. I’d love to know if someone knows how to fix this error, the pattern I made isnt that complicated but it would still save me quite some work.
The order of the XML file got mixed up… which is important. A pattern is parsed in a particular order, and the fact the order was mixed up it’s throwing an exception.
I fixed the file… but note I had to remove the reference to the measurement file that was not used anywhere in the pattern file. In the future if a pattern uses measurements from a file, we need both files to be able to open the pattern. You can create a measurement file from a pattern, but all the values are zero, so you have to guess what they are.
I tried this, and this is why I know there were no measurements used, as the import was empty.
Thank you so much! I knew I hadn’t referenced the measurements file yet so I didnt think it was important, good to know it was fixable without the file. I think the issue started when I tried to add another pattern piece detail and the program failed to load it, but I’m not quite sure how that would have messed up the order of the XML file. Regardless, thanks for helping!