FOREIGN TABLES is a rather fresh feature in IRIS (2023.?)
So I was motivated to try something new by own hands.
Documentation of Foreign Table from File is a good starting point.
Also the related promotional video is fine to start with.
Samba is the standard for file services interoperability across Linux, Unix, DOS, Windows, OS/2 and other OS. Since 1992, Samba has provided secure, stable and fast file services for all clients (OS and programs) using the SMB/CIFS protocol. Network administrators have used SAMBA to create shared network folders to allow company employees to create, edit and view corporate files as if they were on their computers locally, when these files are physically located on a network file server. It is possible to create a network folder in Linux and see it as a shared folder in Windows, for example.
.png)
Hi
How to install cspgateway in silent mode?
Is there a general way to set a variable XYZ equal to the text of the code line being executed now? Debugger or production. For example, for a code below if code is currently assigning a to 1, XYZ would be equal "S a=1". The same question about a variable containing current routine name.
S a=1
Hi Guys
How do get the item name of a class? I have several items derived from the same class, and for error reporting I want to get the name of the item which created it, rather than the class it is derived from from.
e.g. InPhase.LEGACY.GetUpdateNotification, InPhase.LFPSE.GetUpdateNotification and InPhase.ADHOC.GetUpdateNotification are all derived from the same class InPhase.Services.LoadInPhaseUpdates
I'm aware that the $CLASSNAME($THIS) can be used to get classname, but this doesn't help.
Can anyone help?
Andy
Hi Community,
We're super excited to share with you a very special session from the Global Summit 2024! And it is so special because it is about the Developer Community and Developer Ecosystem.
🤩 Leveraging Developer Ecosystem Tools for Success @ Global Summit 2024
LS,
I'm executing a query using JDBC on a PostgreSQL db:
SET statement_timeout TO 600000000; COMMIT SELECT * FROM bi_hour
The query is aborted with the following message:
FOUT #5023: Fout in Java Gateway: JDBC Gateway getClob(0,2) errorBad value for type long : active
The column 'blocked_status' contains the value 'active' is of type 'text'. I figure somewhere the SQL Gateway tries to convert the text value into a long but I can't find where, any suggestions?
I thought I knew how to return a Response from a Business Process back to the Source Config Name, but I guess not.
I am working on a Proof of Concept, that the Request Message Class would determine a "Route" within a Business Process to make a FHIR call (search, read) to our External FHIR repository, and return back the HS.FHIR.DTL.vR4.Model.Resource.xxxxxxx as a Response to the Source Config Name.
I have the FHIR part working, however now that I have the data in the form of HS.FHIR.DTL.vR4.Model.Resource.xxxxxxx, I am struggling to understand how I could send it back to the Original Source
Instead of building a BP to execute stored procedures just to insert the data, I figured I would give Linked Stored Procedures a try since all I need to do is insert the data. I have proved in our MS SQL Development environment that it is possible, so I through I could just repoint the Linked Stored Procedure
set hdbc=$$GetJConnection^%apiGTW("xxxxx")
to the test environment. But when I made the changed in VSCode and compiled the Stored Procedure disappeared from the SQL view in the Management Portal.
So can we not simply update the connection string to point to a different MS SQL Connec
I have a requirement where in I had to read a HL7 message string ( which is a String )
from a SQL TBL to my Business Service.
and I need to convert that string to EnsLib.HL7.Message format and traverse through the PID segment.
I need some inputs please.
I have challenged to create a bot application using Azure Bot that can retrieve and post data to IRIS for Health.
A patient's data has already been registered in the FHIR repository of IRIS for Health.
The patient's MRN is 1001. His name is Taro Yamada. (in Japanese :山田 太郎)
This bot can post new pulse oximeter readings as an observation resource linked to the patient.
For practical reasons, it may be desirable that after a Linux server restart, the IRIS instance is automatically started.
Below you will find the steps to follow to automate the startup of IRIS during a reboot of the Linux server, via systemd :
1. Create an iris.service file in /etc/systemd/system/iris.service containing the following information
[Unit]
Description=InterSystems IRIS Data Platform
After=network.target
[Service]
Type=forking
User=irisusr
ExecStart=/usr/bin/iris start iris
ExecStop=/usr/bin/iris stop iris quietly
Restart=on-failure
RemainAfterExit=yes
[Install]
So, here is a novice question; but, I can't seem to figure out how to do it, or find any comments. I simply want to close out this DTL, under the Interoperability / Build / DTL screen:
.png)
There do not seem to be any buttons to 'close' the current DTL item. I tried logging off and back on, and, it brings it right back. Ideas?
InterSystems FAQ rubric
The following code downloads https://www.intersystems.com/assets/intersystems-logo.png and saves the file as c:\temp\test.png.
You need to define an SSL configuration called SSLTEST before executing this code
ClassMethod download() As%Status
{
Set sc = $$$OKSet httprequest=##class(%Net.HttpRequest).%New()
set httprequest.Port = 443set httprequest.Https = 1set httprequest.SSLConfiguration = "SSLTEST"Set httprequest.Server="www.intersystems.com"Do httprequest.Get("/assets/intersystems-logo.png")
Set httpresponse=httpreqHi, Community!
We need one common method to persist data for all tables from C# rest api to InterSystems cache object script.
Hi,
Can we write message in the messages.log file ?
Thanks
I am looking for an installation kit: CachePCkit_x64.exe for 64 bits Windows newer than 2015.1
I have had a computercrash and needed to install Caché all over again.
Unfortunately I only had the kit from 2013 and that had just one feature missing.
I always could do anything I had to do with Caché 2015,2 and I don't need anything else.
Could somebody help me?
I've been trying unsuccessfully to use a parameter function within a routing rule. I can see the function %GetParameter available in the WYSIWIG rule editor, but I cannot seem to get the inputs for it correct, e.g.
Which gives the error
I have also tried unsuccessfully in code
.png)
Is what I am doing possible, and I have a syntax issue? Or is getting a parameter like this not something that can be done in a class of type Ens.Rule.Definition
Thanks
InterSystems IRIS Adaptive Analytics version 2024.1.3 is now available from the InterSystems Software Distribution page. This release includes AtScale 2024.1.3, and an updated User Defined Aggregate Function (UDAF) file. This release includes and the following new modeling and BI capabilities:
- Formatting of calculation output based on on the field input rather than just the format defined on the calculation. This is particularly useful for calculations that can't have a standard output format, such as year-over-year growth in dollars, euros, or time.
- Support for the following MDX funct
Question:can a business process with pool size > 1 invoke external programs in parallel via $ZF(-100)?
We have a production that takes HL7 (ORU_R01) messages in and produces a PDF from each one for onward transmission to a document store.
The PDF creation is implemented in a business process which transforms the HL7 to XML, saves the XML to the filesystem, then calls Apache FOP (the version distributed with Ensemble) via $ZF(-100) to produce the PDF, which is stored on the filesystem. The call to FOP takes the name of the XML file, the name of a stylesheet file (one of three, depending on t
Hello,
A customer whose Ensemble code contains lots of hardwired API URL calls is running into issues because of the IRIS instance name insertion in the URL path since IRIS v 2024.1.
What are the best solutions to revert to the previous URL path or automatically and dynamically rewrite this path (Apache mod_rewrite ? Proxies ?). Any examples ?
Thanks for your help,
Bertrand Cayzac
Is there a wizard to override pieces of class (parameters, properties, methods, etc.) like there is in Studio? I can't find this functionality anywhere. If it's not there, it's certainly a piece I'll sorely miss as we transition to VS Code.
Hello everyone,
I'm currently working on getting familiar with OAuth2, following this article. Since Part 2 involves using PKI, I decided to implement it as outlined in the article. However, I've run into an issue that I can't seem to resolve, and my searches on Google haven't yielded any useful results.
Here's a brief overview of what I've done so far:
Configuring the PKI Server:
- Navigated to: System Administration > Security > Public Key Infrastructure > Configure Local Certificate Authority Server.
- Filled in all the required fields and saved the configuration.
As far as I can tell

I use the following code to loop trough all globals :
set name=""for
{
set name=$order(^$GLOBAL(name))
quit:name=""
write name,!
}However this is really slow : about 1second per node.
I ran debugger, and it seems most of the time is spend in "%SYS.GD Visible" function. There is a comment that says :
"Sees if globals in dataset are visible to our namespace"
This function loop on a global named ^mtemp which contains lot of records (10K or more).
I have cleared global, hoping it has been filled by another process but it's not (it seems to be filled by %SYS.GD)
Why is it so
Hi Experts Can you advise how to setup a nic for VIP ?
Can you confirm that using this command is the correct
ip addr add *.*.*.*/2 dev nic?
then configure the VirtualAddressInterface in iris.cpf
restart and end enable in the smp?
thank you in advance
Dear All,
I am currently part of a team that is developing an application using Microsoft PowerApps as the front end and IRIS as the backend. Effectively that frontend screens, which are house and an Azure serve, call a series of REST interfaces exposed by IRIS from a physical Microsoft server. During the development stage we have not had any security in place but now we need to secure the application using a single sign on. PowerApps relies on Microsoft Entra for its security both LDAP and OAuth. Has anyone in the community connected IRIS to Microsoft Entra?
I have managed to register
Hello, I am total newbie when it comes to ObjectScript (just started going through the tutorial). We have a task where we have to update the port number for 75-100 items (say for half of the items in our production). Going through the documentation and other community posts it looks like we could utilize class method 'ApplySettings' in Ens.Production. But we are running into an issue. Below is what we currently have. When we hard code the item, it works. But, if we store the item in a variable and try it pass it through. Then it doesn't work. We are also not seeing an error. Is our th
Hey,
since our instance of iris is just utilized during working hours, I would like to simply copy all data via FTP from the server to a NAS during the night.
Are there reasons against this approach?
Are there batch examples of how to stop and start the database?
Thank you in advance!
Erik
Accessing an Azure cloud storage to upload/download blobs is quite easy using the designated %Net.Cloud.Storage.Client class API methods, or using the EnsLib.CloudStorage.* inbound/outbound adaptors.
Note that you'll need to have the %JavaServer External Language Server up and running to use the cloud storage API or adaptors, since they both use the PEX framework using the Java Server.
Here is a quick summary:
Azure Blob Storage is accessed using a connection string that looks similar to this:
DefaultEndpointsProtocol=https;AccountName=abcdefscleanisr;AccountKey=n3mWskdjgfhklsghdfjaskhgk.png)

