Question Kurro Lopez · May 28 How to use EnsLib.SQL.InboundAdapter in IRIS tables Hi community. I was wondering if it was possible to use something like EnsLib.SQL.InboundAdapter with tables in IRIS. This library monitors when a record has been inserted into a table in an external database, so it requires a DSN to connect to that database. My goal is to make a call to an external API that takes a long time, it could spend nearly an hour (or more) completing its processes, but I don't want to block the main process. #API #SQL #InterSystems IRIS 1 2 0 41
Question Kurro Lopez · Mar 25 How to tokenize a text using SentenceTransformer? Hi all. I'm trying to create an indexed table with an vector field so I can search by the vector value.I've been investigating and found that to get the vector value based on the text (token), use a Python method like the following: #Docker #JSON #Python #Vector Search #InterSystems IRIS 1 2 0 63
Question Kurro Lopez · Oct 28, 2024 Rename a namespace has removed all my code Hi all. I hope you can help me. I've renamed a namespace and its databases names. Old Namespace: LABORATORIO New namespace: SRV-LABORATORIO The rename of all has worked fine. When I've tried to access to the portal, it is no available, displaying the message "Tha namespace SRV-LABORATORIO does not support productions" So, I've run the following command in terminal #Databases #Namespace #InterSystems IRIS 1 2 0 163
Question Kurro Lopez · Oct 18, 2024 How to get the native sql error in SQL outbound adapter? Hi all, We have an restriction in a SQL database with a unique index. We want to catch that exception when it tries to insert or update a value that violates the unique index condition. #SQL #HealthShare #InterSystems IRIS for Health #Health Connect #InterSystems IRIS 0 3 0 85
Question Kurro Lopez · Oct 3, 2024 How to call BO to other BO Hi all, I'm wondering if it is possible to call a Business Operation from other Business Operation. I have a BO that writes logs into a database, using a personal message. I can create a set obj=##class(MyLogs).%New() but the BO has all parameters about connection. Is it possible? Best regards. #Business Operation #InterSystems IRIS for Health 0 3 0 122
Question Kurro Lopez · Jul 7, 2024 How to "real" training a machine learning model Hi all, Some days ago, I've seen a youtuber talking about how to create a neural network (sorry, is in spanish) https://www.youtube.com/embed/iX_on3VxZzk[This is an embedded link, but you cannot view embedded content directly on the site because you have declined the cookies necessary to access it. To view embedded content, you would need to accept all cookies in your Cookies Settings] #IntegratedML #Machine Learning (ML) #Python #SQL #InterSystems IRIS 1 4 0 141
Question Kurro Lopez · Apr 9, 2024 Convert %Stream.GlobalBinary to Base64 Hi community, I'm calling to a API that it is retrieving the content of a file as Content of response. I'm catching the binary but I need to convert this Stream to a Base64 string. I'm trying to convert a %Stream.GlobaBinary to a Base64 string using the following code, but it doesn't work. #API #JSON #Caché #InterSystems IRIS 0 6 0 494
Question Kurro Lopez · Mar 15, 2024 Event onPostDispatch %CSP.Rest or similar Hi all, For a requirement of the customer, we have a BS Rest api with a lot of methods, we need to get the IP of the caller, the method and what is the time that the API has taken to process. I've found the event onPreDispatch where I can take the IP, ClassMethod, etc.. I'm using a global variable to save this information. #API #Business Service #ObjectScript #REST API #InterSystems IRIS 0 5 0 201
Question Kurro Lopez · Feb 12, 2024 How to get the Job id for a BS API Rest for debug? Hi all, As you know, it is very complicated to debug a Business Service Rest API because the object is created when the applications receive a request, so we cannot have the JobId that we can use to debug. https://docs.intersystems.com/iris20211/csp/docbook/DocBook.UI.Page.cls?... So, I'm trying to get the JobId when the class is being created, write a trace in OnInit() method and write the JobId in a log info #API #Business Service #CSP #REST API #Studio #InterSystems IRIS 1 3 0 213
Question Kurro Lopez · Feb 8, 2024 Deserialize class from JSon with nodes null Hi all, We have a class response inherited from %JSON.Adaptor with the following properties, also dependent classes: #API #JSON #InterSystems IRIS 1 3 0 191
Question Kurro Lopez · Feb 7, 2024 Error debug from VS Hi community. Yes, I know that there is other question "VS Code - debugging doesn't work" that is the same issue, but my IRIS instance is not using IIS. Some times ago, I could debug without problems, but after some updates of Visual Studio, I get the following error Failed to start the debug session. Check that the Intersystems server's web server supports WebSockets #Debugging #JSON #ObjectScript #Studio #InterSystems IRIS #VSCode 1 3 0 203
Question Kurro Lopez · Feb 1, 2024 How to process parallelly a process from a business service? Hi community. I have an API that is deployed in my production (business service) and it calls to a business process to retrieve the information that is requested. The problem that I have is that the calls are queued and it's creating a bottleneck The business process is taking more time than needed. Is possible to configure the BP to process parallely the requests? #API #Business Process (BPL) #Business Service #InterSystems IRIS 1 4 0 231
Question Kurro Lopez · Jan 31, 2024 How to clone a namespace? Hi community, We have a developed a new version of a production, all the code is new and has changed BP. This application load information for some brands and stored in database. The customer wants to implement the changes only for some brands because he wants to check for small brands before to implement for all brands. My proposal is create a new namespace, with the new code, and disabled all load of brands except the brand that he wants to check. I'm wondering what is the best way to clone the namespace. #Backup #Databases #Namespace #InterSystems IRIS #InterSystems IRIS for Health 1 2 0 327
Question Kurro Lopez · Jun 1, 2023 Call to business operation dinamically from HL7 Router Hi all, I'm wondering if is possible to call to a BO from a HL7 Route according to a parameter of the HL7 Message I mean, According to the identify of the laboratory, I want to call to other TCP process to retrieve information about blood tests. We are creating the BO using this partern. LAB.BO.TCP. + name of the laboratory. The name of the laboratory is stoted in the lookup table T_LABORATORIOS I've tried to assign the name into a variable and put it in the "send" instruction, but it doesn't work. #Business Rules #HL7 #Interoperability #InterSystems IRIS 1 3 0 259
Question Kurro Lopez · Apr 19, 2023 Replace text by args Hi all, I'm wondering if exists any command or method to replace a text using parameters. In C# I use the Format property #Key Question #InterSystems IRIS 1 11 1 426
Question Kurro Lopez · Mar 14, 2023 Error installing ZPM Hi all, I'm trying to install ZPM into a new instance of IRIS to download packages of utilities in our develop server. When I'm loading the file zpm-0.5.3.xml it is throwing the following error: Any help? Thanks in advance #InterSystems Package Manager (IPM) #InterSystems IRIS for Health 1 4 0 379
Question Kurro Lopez · Sep 19, 2022 Get HttpStatus in a response using EnsLib.HTTP.OutboundAdapter Hi community, I have to do a development that should to connect with a external REST API and it throws different HttpStatus and a body content with the description of the problem. I'm using the following code: #REST API #Caché 1 2 0 369
Question Kurro Lopez · Jul 21, 2022 Webterminal broken :( Hi all, I've just update the version of WebTerminal using the link, but now it doesn't work. When call to /terminal is displaying the following error: #Terminal #Caché #InterSystems IRIS 1 3 0 269
Question Kurro Lopez · Apr 26, 2022 Webterminal - Error connection to server Hi all, We just migrated the new Iris server 2021.2 all our productions in a develop server. It's a Windows 2019 server. I've installed Webterminal to have a good connection to this server remotly, but it is throwing this error message: #InterSystems IRIS 1 3 0 451
Question Kurro Lopez · Feb 17, 2022 How to don't throw Ens.Alert for messages from a Business Operation Hi all, I have a rule to throw a message when there is an error. I want to prevent send the email if the origin of the error is the API to send the email This is my rule Now, If there is any error in any process, it works, but if there is an error in MyProduct.BO.SendEmail it is trying to send the error again, and it is a infinite loop. Is there any way to check what is the origin and don't process if the origin is MyProduct.BO.SendEmail? #Business Rules #Error Handling #Caché #HealthShare 1 2 0 348