Posted: Tue Feb 17, 2004 12:56 pm Post subject: Modifying OutputRoot inside a Function
Acolyte
Joined: 10 Dec 2002 Posts: 50
Can I modify an OutputRoot within in a User defined function in Compute Node.
I want to create some XML fields and assign values to the leaf elements. I want the Reference to OutputRoot as one of the parameters to the function.
Can modify the outputroot this way?
I found the following error while trying to do that.
RecoverableException BIP2536E: (180, 2) : The dynamic field reference supplied to the CREATE statement does not resolve to a non-list field in a modifiable message tree.
The dynamic field reference supplied to the CREATE statement must resolve to a non-list field in a modifiable message tree.
Ensure that only non-list references to modifiable trees are passed to the CREATE statement.
You cannot do this in a function, only a procedure. In a function, all parameters are effectively IN only by default, and so not modifiable. If you use a procedure you should be OK.
Cheers, _________________ MGK
The postings I make on this site are my own and don't necessarily represent IBM's positions, strategies or opinions.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum