Just started working with the uopy python library. I'm able to connect successfully and run all the basic examples provided with no issues, but as soon as I started to extend it out to run some subroutines I've written, I started getting "Subroutine Error [30107] : The subroutine failed to complete successfully". Not entirely sure what would cause this as the same subroutine runs fine when ran outside of uopy. One thing I did notice is if I remove the READV statement within the subroutine, I do not receive this error. Below is the test subroutine I have been using.
Any help greatly appreciated.
SUBROUTINE (USER,JSON)
$INCLUDE UNIVERSE.INCLUDE UDO.H
READV USER.NAME FROM INIFILE,USER,3 ELSE NAME = ''
STATUS = UDOCreate(UDO_OBJECT, testObj)
STATUS = UDOSetProperty(testObj, "userName", USER.NAME)
STATUS = UDOWrite(testObj, UDOFORMAT_JSON, TEST)
STATUS = UDOFree(testObj)
JSON = TEST
RETURN