copy/pasted from another working project, but i don't see why this isn't working:
userDataset = system.tag.readBlocking(userDataPath) # <--- '[]/Users/username
system.perspective.print(userDataset) # <--- this prints
py_userDataset = system.dataset.toPyDataSet(userDataset) # <--- dies here
system.perspective.print('bloop') # <--- this does not
system.perspective.print(py_userDataset) # <--- nor does this
# ... additional code that follows, but never executes because of line 3
this is the stuff that kneecaps me right when i think i'm getting a stride going...
it's in a called function from the project script library. it all works just fine up until that one line. then it dies. and since i have not yet had time to implement a logging system, this is the interim tracking solution. (which sux, i know, but i only have so many hours in a day.) as for what error, have no idea. it normally works in other scripts of similar scope, so i'm stumped. and userDataset populates properly, which was my biggest concern, so i can't understand why the conversion tanks since it's just processing variable data...
I told you this in another thread - you don’t need to implement your own logging system. When a script fails to execute an error should be logged in the Ignition Gateway logs.
i know that. but i don't want to dig through 1000s of lines of every system's dump to logs. literally every client's system dumps there. plus, i have no idea what i'm looking for.
but you have a point: stop being a lazy and dig. *sigh* be right back...
@Kevin.Herron i beg your pardon?? you neither know me nor what i'm working with nor my time pressure. i'll thank you to refrain from responding in the future if this is the kind of 'help' you're offering. 'scared child' indeed... i even ceded the point... good Lord...
@lrose yes, it points to a valid tag. but i keep forgetting that bloody index... and i looked up QualifiedValue and now understand better. thank you. working code looks like this:
there is so much Java spillover that i think i need to just learn some basic Java to understand this . there's nothing like this in Python and it's always throwing me for a loop.
Wrong, it takes both. The doco I believe still says it takes only a list, and that's what you should give it, but the function was modified ages ago to accept just a string as well. Albeit, it always returns a list