"invalid/missing attribute" Error?

"invalid/missing attribute" Error?

Anonymous
Not applicable
4,246 Views
8 Replies
Message 1 of 9

"invalid/missing attribute" Error?

Anonymous
Not applicable

Hi,

 I am currently using Eagle Version 6.6.0 (old I know, but it's what is available to me). I am attempting to open several files that were lilkely created with an older version, but I can't be sure what version was used to create them. In any case, I only seem to have this problem with a few files. I have opened others of similar vintage without issue. 

 

When I try to open the schematic file, I get the following report:

EAGLE update report

Date: 2/16/2021 8:20:41 AM
File: S:/Engineering/Equipment/Electrical/Eagle Drawings/Valve controller/DL05 valve controller/DL05valve controler.sch

An error occurred while parsing the intermediate XML file.
The XML file has been loaded into a text editor window as
S:/Engineering/Equipment/Electrical/Eagle Drawings/Valve controller/DL05 valve controller/DLvalve controler.rpt.sch

Warning(s):

line 83: invalid value '91' for attribute 'layer' in tag <wire>

Error:

line 83, column 135: invalid/missing attribute 'layer' in tag <wire>

 

Looking at the text editor, I do not know exactly what the issue is.  There are many other lines that specify the value "91" as the layer attribute. This is a snippet of the file, line 83 is the first line:

 

<wire x1="-107.696" y1="447.04" x2="-103.886" y2="447.04" width="0.3048" layer="91" style="continuous" curve="-180.000000" cap="flat"/>
<wire x1="-103.886" y1="447.04" x2="-100.076" y2="447.04" width="0.3048" layer="91" style="continuous" curve="-180.000000" cap="flat"/>
<wire x1="-100.076" y1="447.04" x2="-96.266" y2="447.04" width="0.3048" layer="91" style="continuous" curve="-180.000000" cap="flat"/>
<wire x1="-100.076" y1="454.025" x2="-96.266" y2="454.025" width="0.3048" layer="91" style="continuous" curve="180.000000" cap="flat"/>
<wire x1="-103.886" y1="454.025" x2="-100.076" y2="454.025" width="0.3048" layer="91" style="continuous" curve="180.000000" cap="flat"/>
<wire x1="-107.696" y1="454.025" x2="-103.886" y2="454.025" width="0.3048" layer="91" style="continuous" curve="180.000000" cap="flat"/>
<wire x1="-111.506" y1="470.535" x2="-110.236" y2="470.535" width="0.3048" layer="91" style="continuous" curve="180.000000" cap="flat"/>
<wire x1="-103.886" y1="447.04" x2="-100.076" y2="447.04" width="0.3048" layer="91" style="continuous" curve="-180.000000" cap="flat"/>
<wire x1="-100.076" y1="447.04" x2="-96.266" y2="447.04" width="0.3048" layer="91" style="continuous" curve="-180.000000" cap="flat"/>
<wire x1="190.5" y1="-196.85" x2="194.31" y2="-196.85" width="0.3048" layer="91" style="continuous" curve="-180.000000" cap="flat"/>
<wire x1="194.31" y1="-196.85" x2="198.12" y2="-196.85" width="0.3048" layer="91" style="continuous" curve="-180.000000" cap="flat"/>
<wire x1="198.12" y1="-196.85" x2="201.93" y2="-196.85" width="0.3048" layer="91" style="continuous" curve="-180.000000" cap="flat"/>
<wire x1="190.5" y1="-218.44" x2="194.31" y2="-218.44" width="0.3048" layer="91" style="continuous" curve="-180.000000" cap="flat"/>
<wire x1="194.31" y1="-218.44" x2="198.12" y2="-218.44" width="0.3048" layer="91" style="continuous" curve="-180.000000" cap="flat"/>
<wire x1="198.12" y1="-218.44" x2="201.93" y2="-218.44" width="0.3048" layer="91" style="continuous" curve="-180.000000" cap="flat"/>
<wire x1="190.5" y1="-242.57" x2="194.31" y2="-242.57" width="0.3048" layer="91" style="continuous" curve="-180.000000" cap="flat"/>
<wire x1="194.31" y1="-242.57" x2="198.12" y2="-242.57" width="0.3048" layer="91" style="continuous" curve="-180.000000" cap="flat"/>
<wire x1="198.12" y1="-242.57" x2="201.93" y2="-242.57" width="0.3048" layer="91" style="continuous" curve="-180.000000" cap="flat"/>
<wire x1="190.5" y1="-269.24" x2="194.31" y2="-269.24" width="0.3048" layer="91" style="continuous" curve="-180.000000" cap="flat"/>

 

Any guidance on how this could be remedied so that I can open this schematic and others that show this error? I ti just not clear to me what the issue is. Should the "91" value be something else? I tried searching the forum posts and found a few similar questions, but no clear answers for this. That may be a result of my questionable search skills but in any case, I did not come on a solution. 

 

Any assistance would be much appreciated.

Thanks!

 

 

 

 

Reply
Reply
0 Likes
Accepted solutions (1)
4,247 Views
8 Replies
Replies (8)
Message 2 of 9

one-of-the-robs
Advisor
Advisor

@Anonymous wrote:

Any guidance on how this could be remedied so that I can open this schematic and others that show this error? I ti just not clear to me what the issue is. Should the "91" value be something else?


I think you may be looking in the wrong place. Layer 91 is perfectly valid for schematic "wire" objects as long as they correspond to nets. I think this means it's only valid between the <nets> tag and </nets>. It may also be necessary for layer 91 to be declared in the <layers> block near the top of the file. So you need to show some more context - in particular several lines before 83 and above (I'd expect the <layers> block to end around line 70). In fact, line 83 sounds way too early for a net, unless this is a VERY trivial schematic, because there should be a <symbols> block around there.

 

 


 

Reply
Reply
0 Likes
Message 3 of 9

Anonymous
Not applicable

Thank you very much for the reply. 

 

This is not a huge or very complex schematic so it may qualify as very trivial, I don't have a good feel for that. The entire file is ~5500 lines in the text editor.

I only looked at that line 83 is that is what was called out in the error message, I am not very familiar (or skilled) with these files or their structure. I very  much appreciate your assistance with this. 

 

Thank you again for taking the time to reply and for any additional insight you can provide.

-Al

 

Here is the first 150 lines of the file, if that helps:

 

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE eagle SYSTEM "eagle.dtd">
<eagle version="6.6">
<drawing>
<settings>
<setting alwaysvectorfont="no"/>
</settings>
<grid distance="0.100000" unitdist="inch" unit="inch" style="lines" multiple="1" display="no" altdistance="0.100000" altunitdist="inch" altunit="inch"/>
<layers>
<layer number="91" name="Nets" color="2" fill="1" visible="yes" active="yes"/>
<layer number="92" name="Busses" color="1" fill="1" visible="yes" active="yes"/>
<layer number="93" name="Pins" color="2" fill="1" visible="no" active="yes"/>
<layer number="94" name="Symbols" color="4" fill="1" visible="yes" active="yes"/>
<layer number="95" name="Names" color="7" fill="1" visible="yes" active="yes"/>
<layer number="96" name="Values" color="7" fill="1" visible="yes" active="yes"/>
<layer number="97" name="Info" color="7" fill="1" visible="yes" active="yes"/>
<layer number="98" name="Guide" color="6" fill="1" visible="yes" active="yes"/>
</layers>
<schematic xreflabel="" xrefpart="">
<libraries>
</libraries>
<attributes>
</attributes>
<classes>
<class number="0" name="default" width="0" drill="0">
<clearance class="0" value="0"/>
</class>
<class number="1" name="" width="0" drill="0">
<clearance class="0" value="0"/>
<clearance class="1" value="0"/>
</class>
<class number="2" name="" width="0" drill="0">
<clearance class="0" value="0"/>
<clearance class="1" value="0"/>
<clearance class="2" value="0"/>
</class>
<class number="3" name="" width="0" drill="0">
<clearance class="0" value="0"/>
<clearance class="1" value="0"/>
<clearance class="2" value="0"/>
<clearance class="3" value="0"/>
</class>
<class number="4" name="" width="0" drill="0">
<clearance class="0" value="0"/>
<clearance class="1" value="0"/>
<clearance class="2" value="0"/>
<clearance class="3" value="0"/>
<clearance class="4" value="0"/>
</class>
<class number="5" name="" width="0" drill="0">
<clearance class="0" value="0"/>
<clearance class="1" value="0"/>
<clearance class="2" value="0"/>
<clearance class="3" value="0"/>
<clearance class="4" value="0"/>
<clearance class="5" value="0"/>
</class>
<class number="6" name="" width="0" drill="0">
<clearance class="0" value="0"/>
<clearance class="1" value="0"/>
<clearance class="2" value="0"/>
<clearance class="3" value="0"/>
<clearance class="4" value="0"/>
<clearance class="5" value="0"/>
<clearance class="6" value="0"/>
</class>
<class number="7" name="" width="0" drill="0">
<clearance class="0" value="0"/>
<clearance class="1" value="0"/>
<clearance class="2" value="0"/>
<clearance class="3" value="0"/>
<clearance class="4" value="0"/>
<clearance class="5" value="0"/>
<clearance class="6" value="0"/>
<clearance class="7" value="0"/>
</class>
</classes>
<parts>
</parts>
<sheets>
<sheet>
<plain>
<wire x1="-107.696" y1="447.04" x2="-103.886" y2="447.04" width="0.3048" layer="91" style="continuous" curve="-180.000000" cap="flat"/>
<wire x1="-103.886" y1="447.04" x2="-100.076" y2="447.04" width="0.3048" layer="91" style="continuous" curve="-180.000000" cap="flat"/>
<wire x1="-100.076" y1="447.04" x2="-96.266" y2="447.04" width="0.3048" layer="91" style="continuous" curve="-180.000000" cap="flat"/>
<wire x1="-100.076" y1="454.025" x2="-96.266" y2="454.025" width="0.3048" layer="91" style="continuous" curve="180.000000" cap="flat"/>
<wire x1="-103.886" y1="454.025" x2="-100.076" y2="454.025" width="0.3048" layer="91" style="continuous" curve="180.000000" cap="flat"/>
<wire x1="-107.696" y1="454.025" x2="-103.886" y2="454.025" width="0.3048" layer="91" style="continuous" curve="180.000000" cap="flat"/>
<wire x1="-111.506" y1="470.535" x2="-110.236" y2="470.535" width="0.3048" layer="91" style="continuous" curve="180.000000" cap="flat"/>
<wire x1="-103.886" y1="447.04" x2="-100.076" y2="447.04" width="0.3048" layer="91" style="continuous" curve="-180.000000" cap="flat"/>
<wire x1="-100.076" y1="447.04" x2="-96.266" y2="447.04" width="0.3048" layer="91" style="continuous" curve="-180.000000" cap="flat"/>
<wire x1="190.5" y1="-196.85" x2="194.31" y2="-196.85" width="0.3048" layer="91" style="continuous" curve="-180.000000" cap="flat"/>
<wire x1="194.31" y1="-196.85" x2="198.12" y2="-196.85" width="0.3048" layer="91" style="continuous" curve="-180.000000" cap="flat"/>
<wire x1="198.12" y1="-196.85" x2="201.93" y2="-196.85" width="0.3048" layer="91" style="continuous" curve="-180.000000" cap="flat"/>
<wire x1="190.5" y1="-218.44" x2="194.31" y2="-218.44" width="0.3048" layer="91" style="continuous" curve="-180.000000" cap="flat"/>
<wire x1="194.31" y1="-218.44" x2="198.12" y2="-218.44" width="0.3048" layer="91" style="continuous" curve="-180.000000" cap="flat"/>
<wire x1="198.12" y1="-218.44" x2="201.93" y2="-218.44" width="0.3048" layer="91" style="continuous" curve="-180.000000" cap="flat"/>
<wire x1="190.5" y1="-242.57" x2="194.31" y2="-242.57" width="0.3048" layer="91" style="continuous" curve="-180.000000" cap="flat"/>
<wire x1="194.31" y1="-242.57" x2="198.12" y2="-242.57" width="0.3048" layer="91" style="continuous" curve="-180.000000" cap="flat"/>
<wire x1="198.12" y1="-242.57" x2="201.93" y2="-242.57" width="0.3048" layer="91" style="continuous" curve="-180.000000" cap="flat"/>
<wire x1="190.5" y1="-269.24" x2="194.31" y2="-269.24" width="0.3048" layer="91" style="continuous" curve="-180.000000" cap="flat"/>
<wire x1="194.31" y1="-269.24" x2="198.12" y2="-269.24" width="0.3048" layer="91" style="continuous" curve="-180.000000" cap="flat"/>
<wire x1="198.12" y1="-269.24" x2="201.93" y2="-269.24" width="0.3048" layer="91" style="continuous" curve="-180.000000" cap="flat"/>
<circle x="-149.987" y="312.42" radius="0.381" width="0.3048" layer="91"/>
<circle x="-149.987" y="306.07" radius="0.381" width="0.3048" layer="91"/>
<circle x="-154.432" y="308.991" radius="0.5236" width="0.3048" layer="91"/>
<circle x="49.53" y="290.83" radius="2.54" width="0.3048" layer="91"/>
<circle x="-155.067" y="250.952" radius="0.508" width="0.3048" layer="91"/>
<circle x="-149.479" y="247.396" radius="0.4579" width="0.3048" layer="91"/>
<circle x="-149.479" y="255.524" radius="0.381" width="0.3048" layer="91"/>
<circle x="50.8" y="265.43" radius="2.54" width="0.3048" layer="91"/>
<circle x="50.8" y="231.14" radius="2.54" width="0.3048" layer="91"/>
<circle x="-149.479" y="255.524" radius="0.635" width="0.3048" layer="91"/>
<circle x="-149.606" y="247.523" radius="0.5679" width="0.3048" layer="91"/>
<circle x="-155.067" y="250.952" radius="0.6475" width="0.3048" layer="91"/>
<circle x="-149.86" y="312.42" radius="0.508" width="0.3048" layer="91"/>
<circle x="-154.432" y="308.991" radius="0.762" width="0.3048" layer="91"/>
<circle x="-149.86" y="306.07" radius="0.635" width="0.3048" layer="91"/>
<circle x="50.8" y="179.07" radius="2.54" width="0.3048" layer="91"/>
<circle x="2.413" y="-432.943" radius="0.508" width="0.3048" layer="91"/>
<circle x="8.001" y="-437.769" radius="0.4579" width="0.3048" layer="91"/>
<circle x="8.001" y="-428.371" radius="0.381" width="0.3048" layer="91"/>
<circle x="8.001" y="-428.371" radius="0.635" width="0.3048" layer="91"/>
<circle x="7.874" y="-437.642" radius="0.5679" width="0.3048" layer="91"/>
<circle x="2.413" y="-432.943" radius="0.6475" width="0.3048" layer="91"/>
<circle x="7.874" y="-433.197" radius="0.5679" width="0.3048" layer="91"/>
<circle x="149.86" y="-428.625" radius="5.08" width="0.3048" layer="91"/>
<circle x="117.094" y="-428.625" radius="0.3592" width="0.3048" layer="91"/>
<circle x="117.348" y="-428.625" radius="0.8032" width="0.3048" layer="91"/>
<circle x="-110.871" y="467.36" radius="3.81" width="0.3048" layer="91"/>
<circle x="-149.606" y="418.465" radius="1.27" width="0.3048" layer="91"/>
<circle x="-135.636" y="418.465" radius="1.27" width="0.3048" layer="91"/>
<circle x="-149.606" y="400.05" radius="1.27" width="0.3048" layer="91"/>
<circle x="-135.636" y="400.05" radius="1.27" width="0.3048" layer="91"/>
<circle x="-149.606" y="381.635" radius="1.27" width="0.3048" layer="91"/>
<circle x="-135.636" y="381.635" radius="1.27" width="0.3048" layer="91"/>
<circle x="-116.586" y="418.465" radius="0.635" width="0.3048" layer="91"/>
<circle x="-116.586" y="400.05" radius="0.635" width="0.3048" layer="91"/>
<circle x="-116.586" y="381.635" radius="0.635" width="0.3048" layer="91"/>
<circle x="-116.586" y="373.38" radius="0.635" width="0.3048" layer="91"/>
<circle x="-116.586" y="363.22" radius="0.898" width="0.3048" layer="91"/>
<circle x="-116.586" y="353.695" radius="0.635" width="0.3048" layer="91"/>
<circle x="49.53" y="419.1" radius="2.8398" width="0.3048" layer="91"/>
<circle x="49.53" y="406.4" radius="2.8398" width="0.3048" layer="91"/>
<circle x="49.53" y="393.7" radius="2.8398" width="0.3048" layer="91"/>
<circle x="49.53" y="381" radius="2.8398" width="0.3048" layer="91"/>
<circle x="157.48" y="412.75" radius="0.635" width="0.3048" layer="91"/>
<circle x="164.465" y="412.75" radius="0.635" width="0.3048" layer="91"/>
<circle x="157.48" y="400.05" radius="0.635" width="0.3048" layer="91"/>
<circle x="164.465" y="400.05" radius="0.635" width="0.3048" layer="91"/>
<circle x="157.48" y="387.35" radius="0.635" width="0.3048" layer="91"/>
<circle x="164.465" y="387.35" radius="0.635" width="0.3048" layer="91"/>
<circle x="157.48" y="374.65" radius="0.635" width="0.3048" layer="91"/>
<circle x="164.465" y="374.65" radius="0.635" width="0.3048" layer="91"/>

 

 

Reply
Reply
0 Likes
Message 4 of 9

one-of-the-robs
Advisor
Advisor

OK, so the wire in question is not in the <nets> block, which is probably the problem.

I'm a little surprised to see there's no entries in the <libraries>block, and even more surprised there's none in the <parts> block. Then the first sheet's <plain> section (which is for pure drawing objects like textual annotations or logos) contains all those wires in layer 91

You could try changing all the layer="91" instances to layer="97", at least up to the closing </plain> tag, then see whether the resulting file will open. My suspicion is that the conversion has just hopelessly failed and you won't get anything of much use. Do you know what the original design should look like?

Reply
Reply
Message 5 of 9

Anonymous
Not applicable

Hi again,

 I do have a pretty good idea of what this should look like if it were to open. This was only a chassis schematic there was no PCB ever generated from it. Essentially a wiring diagram. 

 

In any event, I will try making the change you suggest and see if that helps. I will report back my finding, one way or another tomorrow sometime. 

 

If I can't open this, not all is lost. It will just mean that I have to start from scratch and generate a complete new schematic rather than modifying what I already had. Not impossible, just a fair bit of additional work.

 

I very much appreciate your assistance. Thanks again for taking the time to reply.

 

-Al

Reply
Reply
0 Likes
Message 6 of 9

one-of-the-robs
Advisor
Advisor
Accepted solution

@Anonymous wrote:

This was only a chassis schematic there was no PCB ever generated from it. Essentially a wiring diagram. 


Ah, right. That may be significant - it would explain the complete lack of libraries or parts, for instance - but having just had a play with doing something like that on V5 and then converting to V7, I would still expect the wires to appear in the <nets> section, not the <plain> one.

If you try my suggested edit and find that you can then open it but just as a plain drawing, and if that's not enough for what you want to do with it now, there may be tricks with "CHANGE LAYER" and "NAME" that might convert the lines into actual nets... maybe.

Reply
Reply
Message 7 of 9

Anonymous
Not applicable

That did it, at least I can now open the schematic and see it. As you said, the elements all essentially appear to be simply drawing elements. Overall that may be good enough for the time being, it at least lets me open the file and make simple changes to it. This is far better than the "nothing" was coming up with before.

 

Mostly as an academic exercise, what are sort of trick might I try to make them back into actual nets again? I'm not sure it is crucial that I do that, just curious what that might entail. 

 

Thank you very much for your help with this. It will save me a bunch of work and likely enable me to open some other old files that we have seen this problem with as well.

 

You have been most helpful, I appreciate your assistance!

 

-Al

 

 

 

 

Reply
Reply
0 Likes
Message 8 of 9

one-of-the-robs
Advisor
Advisor

@Anonymous wrote:

That did it, at least I can now open the schematic and see it.


Glad I could help

 


@Anonymous wrote:

Mostly as an academic exercise, what are sort of trick might I try to make them back into actual nets again? I'm not sure it is crucial that I do that, just curious what that might entail. 


Well, I haven't tried anything like this so it may be a red herring, but...

If you change the layer of the lines back to 91, in the schematic editor rather than the XML, and then name the connected lines with the same name, then it's possible Eagle might turn them into nets. It was certainly possible in older versions to draw "wires" (a misleading translation from the German - they should be called "lines") in the nets layer and get actual nets with actual connections to pins. That was, of course, the wrong way to do it - nets should always be drawn with the NET tool! - but it used to work. On that basis, I wouldn't be surprised if changing layer also did the trick... but I'd also not be surprised if it didn't.

Reply
Reply
Message 9 of 9

Anonymous
Not applicable

I will give that a try when I have a few extra minutes. It's worth trying just to see what happens I guess.

 

Thanks again for you assitance.

 

-Al

Reply
Reply
0 Likes