Let's say I open a stream/file.
If it's not in UTF8 i need to call $ZCVT, and if it's already in UTF8, then I don't need to call $ZCVT.
Is there any way to determine character encoding for input stream/file?
InterSystems Caché is a multi-model DBMS and application server. See more details here.
Let's say I open a stream/file.
If it's not in UTF8 i need to call $ZCVT, and if it's already in UTF8, then I don't need to call $ZCVT.
Is there any way to determine character encoding for input stream/file?
Is it possible to check retroactive LOCK history?
context:
I found it in the application error log. Some LOCK errors - ERROR #5803
Is it possible to somehow identify the point in the job or process code that caused these locks?
At the moment I no longer have table LOCKS on the server, but I would like, if possible, to check the time at which the incidents occurred.
Hi,
When I try to compile a specific class it fails and gives the below error message.
ERROR #5002: Cache error: <FUNCTION>zLockUse+5^%ExtentMgr.GlobalRegistry.1
> ERROR #5030: An error occurred while compiling class 'ClassNameHere'
Is there anything I can do to fix this issue?
Thank you in advance for your response.
Customer is trying to use Veeam as backup of Cache database and we need a script to freeze (quiesce) the database for a clean snapshot. i am looking if there is a script already done.
I HAVE A NEW SQL CLASS THAT DISPLAYS ENTRIES BASED ON THE FIRST 2 NODES OF A GLOBAL. I FOUND OUT THAT THE CLASS ALLOWS FOR AN ADDITIONAL NODE(s) TO BE INSERTED IN THE "User Specification Node:" along the delimiter and the Piece in the NewStorage Map1 for "ModifyDDDD" shown below. it is not working.
WHILE IT COMPILES IT DISPLAY NOTHING. MY QUESTION IS WHAT IS THE RIGHT SYNTAX AND PUNTUATION FOR THIS, PLEASE?
HOW
By default, the order of columns in a table is determined automatically by the system. To change the order, explicitly set the order for each property using the property keyword SqlColumnNumber when defining the class.
Example:
Property Name As %String [SqlColumnNumber = 2];
Please see the documentation below.
If you want to change the SQL table name, specify SqlTableName. If you want to change the column name (field name), specify SqlFieldName.
Both apply only to persistent classes.
New to Python. Attempting to use pypyodbc to select data from a table in one Cache database, and inserting into a similarly configured table in another. Process works fine except for tables containing Date types. NULL values in date columns are handled without issue, but when data is present, insert fails with:
An error occurred: argument 7: TypeError: 'NoneType' object cannot be interpreted as an integer.
Source table:
CREATE TABLE "SAT"."AuditAttribute" (
"ID" INTEGER NOT NULL PRIMARY KEY DEFAULT $i(^SAT.AuditAttributeD),
"AddDelete" VARCHAR(50),
"Constituen
I'm using a server side fonts control, with the userAction method, i'm using the action 3 (to open a zenPage). passing some info on the URL..png)
on Studio, the new windows opens fine and blurs the url values:.png)
But doing this with the vs code server side command, the url keeps the values:.png)
i can't have the same behavior on the vsCode and Studio.
The method Link on CSP.Page doesn't work.
I'm trying to rewrite a legacy portal created with all .csp files into a portal written in .cls files. The problem I have is that the old cap pages use "csp:include page='page.csp'> tags. I'm trying to use the Include method that is in the %CSP.Page master page. It doesn't seem to insert the required file. Any suggestions?
Hello everyone,
so lets say i have the following:
Hello
Q
say(arg)
w arg
Q
and i am trying to execute it by its name such as:
s a = "say^hello"*execute the name inside a*
now I know for a fact that if say were written without any argument then do @a would work!
but I can I pass an argument in this case?
I don't want to use Xecute because I am in need of really high performance code.
Hi,
I have a archive backup of a Cache database. I was able to restore the database but having trouble navigating through the globals, classes, namespaces .??? I am not a Cache user and/or developer so I am a bit lost. I am used to relational database such Microsoft SQL but not Cache which to my understand is a different breed of database. If you are looking for some extra money to help me extract some of the data I need i would be greatly appreciated.
Please email me at tamthnguyen@gmail.com or what's app phone +14168985565 I am in Toronto, Canada Eastern Standard Time Zone.
Thanks very much in
I have a business process that adds data to a global variable on receipt of an HL7 message, and a scheduled task that executes a class method defined within the same business process that removes data from the same global variable. With this in mind it makes sense to consider concurrency and therefore make use of the LOCK command.
My first question is whether this is actually necessary?
My second question is what happens to locks when an error/exception is encountered after a lock but before the code to release the lock, is this managed automatically or should try-catch be used to release the
Greetings.
I am working on a demand wheres i need to find all the possible combinations of number contained in a string, its works very well, but when the total numbers is increased bigger, the time to execute the code is increased exponentially. Theres a beter way to find combinations then recursively?
string data:
^x(1,1)="211405;211764;211841;211848;211851;212012;212483;212519;212572;212609;212962;213016;213020;213025;213076;213763;214543;216742;216766;217561;217564;217568;217588;219382;219385;219527;219703;219705;219888;219895;220181;220261;220273;220299;220485;220547;220587;220629;220649;220
Hi,
I want to list the source if a class in an 'iris session'.
I know I can get a list of all classes in a namespace:
iris session <session> -U "%SYS"
DO $SYSTEM.OBJ.ShowClasses()
===
Is there a similar sinmple command to get the source of a class?
I'm running a query, joining nine tables together. When I run it with a SELECT COUNT(*) I get about 200,000 rows. When I run the SELECT with the columns I want, I get about 2,700 rows. Is there something inherent with the queries that limits the result set size, or anything I can do to make sure I'm getting back all the results? Rather, than trying to run it about 100 times limiting all previously gotten accounts.
What table would I find the MRN in? I'm trying to write a crystal report and pull that field, but I cannot seem to find it in any of the tables, to be able to add to the report.
Thank you in advance for any help.
Hi! I am trying to export Cache data to my SQL database and am trying to export the schema as well.
The Data Export wizard on the Management Portal only allows me to export the data but not the schema. Is there anyway to get the schema exported as well?
So I know we can run routines using both XECUTE or @
However both of them run slower than just running the routine without it. (that is because as far as i understand, XECUTE command for example will re-compile before running?)
the question is: how can I run a routine by name - and keeping the performance as good as possible?
we've set up a new RHEL server 7.9
I was able to get the portal to work partially from running this command
[root@facsp1 DSA200]# firewall-cmd --zone=public --add-port=57772/tcp --permanent
success
though as I said it was partial. any idea where else I need to change to make this work?
thanks
Paul
.png)
Hello,
I am using the following:
s status = $SYSTEM.OBJ.Load("myClassName," "c")
and while trying to compile it i get an error that a property or method does not exist, more specifically:
Method or Property 'basicToolbar' does not exist in this class.
it's important to say - basicToolbar DOES EXIST! If i manually compile this class through the studio, it will work and is runnable.
only when using the Load command i get this error.
what could possibly be wrong?
i also tried combination of different flags but fail to understand how is this possible.
Hello Experts ,
Could you help to search message details based on MRN in intersytems iris.
We have created 100+ interfaces and currenly in live (interystems cloud) . Now I try to search message details based on MRN using below query. it is working fine in DEV. but in prod it is taking ages.
SELECT Header.SessionId, Header.SourceConfigName ,Body.RawContent
FROM Ens.MessageHeader AS Header
JOIN EnsLib_HL7.Message AS Body ON Header.MessageBodyId = Body.ID
where Body.TimeCreated BETWEEN '2023-03-15 13:10:22.993' AND '2023-03-15 13:10:25.993'
AND Body.RawContent LIKE '%40103262%'
could you
I’m trying to connect to an InterSystems Caché database from my local development environment using an IPv4 address. Most examples I’ve found show how to connect using the ODBC driver with the localhost or the default IP address (127.0.0.1). However, I want to know how to connect using my local IPv4 address.
Here’s what I need help with:
Hi Folks,
I would like to visulaize the tables and data on Power BI, so I try to connect the romote server to Power BI to access the tables and data of remote server. I can able to connect that remote server to our Studio also able to view class files.
But I couldn't able to connect the remote server to power BI. I'm getting the below error while click on the tables
"Expression.Error: This native database query isn't currently supported"

So now I'm in need of help
Thanks,
Vikram
Hello,
I'm trying to carry a custom error from one business process to another.
BPL:LookupClass fails it's lookup and a custom error of "Lookup XYZ" is generated.
The class quits with that error, but upon quitting, the custom error gets wrapped in an Ensemble System error:
ERROR <Ens>ErrBPTerminated: Terminating BP LookupClass # due to error: Lookup XYZ
This means, when I use the %LastError property to get the error message, it's not got the value I want to use. In this case, "Lookup XYZ". It instead has "Terminating BP LookupClass # due to error: Lookup XYZ"
Is there a way to prevent the
I am experiencing an issue while executing a stored procedure in InterSystems Cache. Here’s the procedure I created
CREATE PROCEDURE Silk.sp_InsertRecord (
IN RecordDate TIMESTAMP,
IN UserName VARCHAR(50),
IN RecordType INT,
IN RecordID VARCHAR(50),
IN CategoryID INT,
IN ApprovalDate TIMESTAMP,
IN FileSize BIGINT,
IN WorkstationName VARCHAR(50)
)
BEGIN
INSERT INTO DummyRecords (
RecordKey,
FilePath,
RecordDate,
UserName,
RecordType,
RecordID,
CategoryID,
FileSize
)
VALUES (
'd4a4e44b-4b56-4a74
Hi,
I try to generate JWT tokens in Cache (not in IRIS).
In IRIS I managed to generate tokens using ##class(%OAuth2.JWKS).AddOct("HS256",secret,.jwks).
But In Cache there is no such routine.
Could you provide me a place to find an example how to use JWT, please ? I am interested to generate a token in Cache, send it to javascript client, and read a token provided by the client and check it is valid.
Kind regards,
Alin Soare.
Good morning
We are looking for a Senior Database Manager for a contract position with a health agency. It's a two and a half year contract, fully remote.
Please review the opportunity by clicking the link below and if you qualify, please let me know if you are interested in speaking about the opportunity.
More info here: https://teckpert.applytojob.com/apply/okkPyvcJn5/Senior-Database-Manager-Intersystems
Need to be based in the US and have work authorization.
Please apply to the link above.
Best,
Gabriel
We've just made a change to Server Manager with the aim of it coping better when a stored password is no longer valid, for example because it has been changed.
We plan to include this in the next published version (no release date yet set), but if you'd like early access please download the v3.6.3-beta.3 VSIX and install it, for example by dragging it from your file explorer onto the Extensions view in VS Code.
If you encounter problems with this beta you can easily revert to the most recent published version (3.6.2) by means of the "Install Specific Version..." option on the gearwheel of the
Can InterSystems IRIS Data Platform 2019 be Integrated with Snowflake?
From InterSystems Do we have any predefined packages or Adapters available to Connect with Snowflake?
Can InterSystems be Connected with Snowflake through Web Gateway Management?
How to enable the SSL protocol and be able to capture the SSL protocol interaction traffic when connecting using DBeaver?
If convenient, could you please provide an ssl package with fake data? ths!!!