ELM-Python-Client icon indicating copy to clipboard operation
ELM-Python-Client copied to clipboard

oslcquery with DN 7.0.2 - Error trying to process rule "identifier" when using oslc select with custom identifier

Open kpribadi opened this issue 2 years ago • 2 comments

When using "oslc.select" statement with a custom identifier/attribute such as "NEWID", I got a runtime error:

Exception has occurred: VisitError Error trying to process rule "identifier":

Name resolution for NEWID failed! File "C:\Users\REDACTED\elmclient_queryparser.py", line 619, in identifier raise Exception("Name resolution for %s failed!" % (resultname)) Exception: Name resolution for NEWID failed!

What could be the problem? It was working before with DOORS v 6.x.x. We just upgraded to DN 7.0.2 When running the types report, we got the variable/property name with the URI.

Thank you

kpribadi avatar Oct 16 '23 00:10 kpribadi

What's an example commandline that gives this error? Obfuscate server-specific info as needed.

barny avatar Oct 30 '23 13:10 barny

I had a similar issue, with 7.0.2, this was resolved with updating the line with [['dcterms:Identifier','=', f'"ID"']], note Identifier has to be capitalised which it is not in the original script

Nelsont345 avatar Mar 21 '24 07:03 Nelsont345