go to post Enrico Parisi · May 24 This is new info, you did not mention this in your original question. Can you provide some context on your implementation? Would you mind to share the code you are using to save "data inside response.Data"? What class is "response"?
go to post Enrico Parisi · May 23 From the example in the first post it seems the stream is not a property of an Ens.Message, that's why is not purged.
go to post Enrico Parisi · May 22 You explicitly saved the stream using CopyFromAndSave(), so it will persist (on disk) until it's deleted. It's like saving a persistent class, it persist even when the code has finished executing. Fortunately! ☺ What's the point of saving a stream that you don't want to persist?
go to post Enrico Parisi · May 21 But...are you using a Business Operation with EnsLib.SOAP.OutboundAdapter?
go to post Enrico Parisi · May 21 What namespace are you logged when you try to create that routine? Maybe in your namespace the %Test (or %Test*, or...) is mapped to a read only database? Otherwise you think you are authenticated as superuser but in fact you are not.
go to post Enrico Parisi · May 21 In your generated (from wsdl) SOAP client class change the LOCATION class parameter with correct url including port number. Another option is to set the Location property in your code when you use the client class, somthing like: Set wsClient=##class(your.generated.SoapClient).%New()Set wsClient.Location="https://path.to.server:NNNN/path.to.service"Set client.SSLConfiguration ="SSLConfig"
go to post Enrico Parisi · May 20 It looks like there is some disk I/O difference between the two systems. How does the two systems storage (disk, controller etc.) compares? Are the 2 systems equally configured in terms available RAM and of global buffers? Is the shared memory using large pages? (check messages.log during startup) I'd monitor and compare disk usage and I/O while running.
go to post Enrico Parisi · May 16 I had a similar issues with IRIS 2021.2. In one case a class with an object reference calculated property failed to compile.The workaround was to add %JSONINCLUDE = "OUTPUTONLY" to the property. The second case was a class that contains a property (not calculated) that is an array of %Stream.GlobalBinary (that was not supported) and despite I added %JSONINCLUDE = "NONE" the class did not compile.For this I got a quick fix modifying a library class. My suggestion is first to to reproduce the issue with a VERY SIMPLE test case and test it using latest IRIS version 2025.1 and, whatever the test result is, report it to WRC including the result of your test using the latest IRIS version.
go to post Enrico Parisi · May 16 05/16/25-15:43:17:397 (11856) 2 Failed to allocate 882MB shared memory: 411MB global buffers, 300MB routine buffers05/16/25-15:43:17:398 (11856) 2 Unable to allocate shared memory minimum of 128MB It must be a very small system!
go to post Enrico Parisi · May 13 Maybe you are sending the HTTP request using an incorrect Content-Type HTTP header? Check what Content-Type HTTP header the receiving end is expecting.
go to post Enrico Parisi · May 13 For Caché just change iris with ccontrol: Invoking Emergency Access Mode on UNIX®, Linux, and Mac OS
go to post Enrico Parisi · May 13 Stop your HS instance, then: Invoke Emergency Access Mode on UNIX®, Linux, and macOS
go to post Enrico Parisi · May 13 Every routine, class or global that start with "%" is mapped to a system database, usually "%SYS". In your case %Test.mac is (by default) mapped to the %SYS database. It seems that you (the user you connect to IRIS) don't have permissions to write to the %SYS database. Please note that during IRIS upgrade all routines starting with "%" are DELETED, unless they start with %z or %Z, so I suggest to use a different name or, better, create your code in other namespace/database with consistent naming (package name) and map it from your application namespaces. If you need your code in all namespaces, create a mapping for the %ALL (pseudo) namespace.
go to post Enrico Parisi · May 13 Hi Daniel 😊 can you elaborate "$p($view(-1,-3),"^",6)"? 😉 Your code gives the impression that to implement this solution requires knowledge that we "simple humans" don't have. Fortunately this is not the case, instead of the cryptic, obscure, arcane and undocumented $p($view(-1,-3),"^",6) the simple $ZNAME special variable can be used. 😃
go to post Enrico Parisi · May 9 I'd implement a custom function, create a class like: Class Community.CustomFunctions Extends Ens.Rule.FunctionSet { /// Returns Age in years from DOB in YYYYMMDD format ClassMethod GetAge(DateOfBirth As %String) As %Integer { Quit (($H-$ZDATETIMEH(DateOfBirth,8)) \ 365.25) } /// Returns Age in days from DOB in YYYYMMDD format ClassMethod GetAgeDays(DateOfBirth As %String) As %Integer { Quit ($H-$ZDATETIMEH(DateOfBirth,8)) } } Then from any Rule or DTL transformation you can use these two function as any other built in function. Make sure DOB is not null ("") before calling the function.
go to post Enrico Parisi · May 9 If you tell us what format you use for date of birth, then we can give you the code you may use
go to post Enrico Parisi · May 8 You cannot assign to arbitrary variable in rules. (edited, in fact, you can see other posts! 🙂) To store some temporary data you can assign it to aux.RuleActionUserData
go to post Enrico Parisi · May 7 In case you want only the portalUrl and pureID of the first element of "item" array, then all you need is:Write responseData.items.%Get(0).portalUrlWrite responseData.items.%Get(0).pureID
go to post Enrico Parisi · May 7 You case is simpler, you do know the json structure and all you need is to iterate the "items" array and find all the portalUrl and pureID properties. Note that since there can be many "items", there may be many portalUrl and pureID. Set itr=responseData.items.%GetIterator() while itr.%GetNext(.key, .value) { Write value.portalUrl,! Write value.pureID,! } P.S.: it's unlikely that the Response you get from a REST call is a %DynamicAbstractObject since, by definition, that's an abstract class and cannot be instantiated, what you actually get is a subclass of %DynamicAbstractObject, a %DynamicObject in this case or a %DynamicArray when the response is an array.
go to post Enrico Parisi · May 7 %Stream.DynamicBinary it's a stream that use a different storage, if you need your data in a %Stream.TmpCharacter just copy the stream using CopyFrom() method. Both %Stream.DynamicBinary and %Stream.TmpCharacter are %StreamObject descendant, the use/have the same interface (methods) but a different storage.