matt (support) wrote:I know this is somewhat of a lame/hack answer (improving the logging is definitely on my ToDo list), but sometimes it is helpful to open the database XML file in an editor and search to try to find what element is using another one. In this case searching on BatteryLevelDevice.py might (not positive!) show you the Triggers / Schedules / etc. that are using it. You'll have to look for a nearby <Name> tag to find it.
Except... unless I am really missing something, linked scripts are hashed or encrypted...
- Code: Select all
<ScriptLink2 type="string">Ym9va7ADAAAAAAQQMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA0A
IAAA.... ....AAAACA8AAA0AEAAAAAAAA=</ScriptLink2>
<ScriptUseLink type="bool">true</ScriptUseLink>
Embedded scripts fare somewhat better. But, since they don'e have names, you have to look for something unique in the actual code. But, since the error message may not give that hint. it will require some creativity.
Also, I would offer an amendment to Matt's post. I would say make a copy of the db and look at that in an editor. Or else, use a read-only program like "less."