Handling %GlobalCharacterStream in a Production Service
I've a Production Service that receives a CharacterStream and save it in a Global, then a second classmethod that pick up that CharacterStream from the global and process it, but for some reason it fails when i comes Set HTTPURL = $ZCVT($G(pInput.Attributes("URL")),"U") which error saying "INVALID OREF", as I checked it seems that pInput is has a CharacterStream but not sure why is says invalid Object ref (see attached)?
S res= ##Class(MSDS.Common.Task.NQLINPostProcess).ProcessInput(cnt)
set HTTPURL = "unknown"
set start = $ZDATETIME($h,-2)
Set HTTPURL = $ZCVT($G(pInput.Attributes("URL")),"U")