Greetings,
Since cache is an OOP language, how can I create 2 methods with the same name but different parameters? Right now when I try that I get a compile time error!
Element name conflict [80670005] : Method mymethod
Thank you,
Everardo
InterSystems Caché is a multi-model DBMS and application server. See more details here.
Greetings,
Since cache is an OOP language, how can I create 2 methods with the same name but different parameters? Right now when I try that I get a compile time error!
Element name conflict [80670005] : Method mymethod
Thank you,
Everardo
This article, and following two articles of the series, is intended as a user guide for developers or system administrators, who need to work with OAuth 2.0 framework (further referred to as OAUTH for simplicity) in their InterSystems product based applications.
Those of you that worked already with ECP might know that it operates not only across
operating systems, processor technologies (big-little-endian), but also -with limits- across versions in C/E.
This cross-version feature also includes IRIS (verified for 2020.1) and C/E (2018.3)
Hi,
Can anyone please explain me how to remove trailing squares from the text field (String). Trailing squares is a white space ?
I tried different things like Ltrim, Trim from sql query side and also from object scripting side something below.
If Address1 set Address1 = $ZSTRIP(Address1,"<>P,<>C,<>W")
If Address1 set Address1 = $ZSTRIP(Address1,"$C(9), $C(32), $C(160)")
If Address1 set Address1 = $ZSTRIP(Address1,"*W,*C")
Nothing works for me
Can anyone please help me to solve this
Thanks
I have a Read-Only Reporting Async with a Remote Database defined to a non-mirrored database on the primary failover member. I would like to update the non-mirrored database on the primary from the async; so far all my attempts fail with *protect* errors.
I found this page
https://community.intersystems.com/post/execute-method-failover-member-…
and tried the SqlProc method. The procedure executed, no errors, but the change to the global was never made (or least not retained) either directly or through a JOBbed process. I wonder if I'm missing something in my configuration.
Sometimes standard COS methods fails and returns low level error code (like %File(CopyFile) error code "-3").
As per ISC Support response, Cache is negating low level error codes (adding "-" prefix).
Is there any existing COS method or COS code snippet to obtain low level error description based on low level error code (positive or negative)?
Hi,
I am brand new to Cache and have been tasked with extracting data from the dB. I see that there are a bunch of tools that can be used to extract via SQL Server statements. DataGrip and DBeaver to name 2. I've gone through some documentation and it doesn't look as if SSMS can connect directly. Is there a preferred extraction tool that anyone can recommend. Does the Cache dB have anything built in where I can access the data while seeing a visual of the tables/schema?
Thanks for any advice,
I am converting an object to json, but in the result a "_class" property appears, is there any way to remove this?
.png)
SKYankee.Planejamento.Operacao.Car is a %SerialObject
Result:
for example :
mysql :
alter table xxxx CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;
so, How to implement it in the Cache?
Hello Intersystems-Community,
I build an API and there I use $order to get the Data from my Globals.
When I first time use that API it's get an error (504 Gateway-Timout > 60 Sec.).
After 2 reloads it works with a loading time of 2 Sec.! Sounds for me like the $order is cached and it works faster. Is it true $order will be cached?
When it works, I only get the error at the next day. So it's very hard to reproduce that error.
Does anyone know if there is a table or query to get the Application Error Log (^ERRORS) by SQL?
During my search for a snapshot of a persistent object,
I met a feature that I would like to share as it could be useful in some special situations.
My trigger was to have a before- and an after-image during unit testing.
Hello for everyone.
We recently started our migration to the cloud. We left a unix environment for a Windows 2016 environment and everything seems normal except for the error ( <ZSOAP> zInvokeClient + 208 ^% SOAP.WebClient.1 ) when we try to consume a web service. In fact, any webservice. The classes have been exported and recompiled but do not work. Apparently by the complements of the error DO $ System.OBJ.DisplayError () (ERROR # 6246: There was no response to the SOAP request) or the $ system.Status.DecomposeStatus (% objlasterror, .erro) shows the following: err = 1 err (1) = "ERROR # 6246: There was no response to the SOAP request." err (1, "caller") = "zDoSOAPRequest + 103 ^% SOAP.WebClient.1" err (1, "code") = 6246 err (1, "dcode") = 6246 err (1, "domain") = "% ObjectErrors" err (1, "namespace") = "zxzxzxzx" <--edited err (1, "stop") = 0 err (1, "stack") = "* e ^ zDoSOAPRequest + 103 ^% SOAP.WebClient.1 ^ 2 / e ^ zSOAPRequestResponse + 22 ^% SOAP.WebClient.1 ^ 1) and ^ zInvokeClient + 112 ^% SOAP. WebClient.1 ^ 1; d ^ zInvoke + 2 ^ AVERBAATMSEGURO.ATMWebSvrPort.averbaCTe20.1 ^ 14e ^ zaverbaCTe20 + 1 ^ AVERBAATMSEGURO.ATMWebSvrPort.1 ^ 1 e ^ EOT1 + 30 ^% SEGATM001AA ^ 1d ^^^ 0 " I would like to thank in advance any help
cache 2017.2 windows 10
Is there any way to change the sql Shell interface to output a <TAB> between the fields instead of outputting one or more spaces between columns
I needed to run an sql ( that took a while to run) and then cut and paste the generated output into excel, trouble was the paste into excel was not very good for columns when there's spaces used between the columns
kev
We use the %Net.FtpSession class to perform FTPS file transfers. This has worked fine with Implcit FTPS servers but crashes when trying to connect to an Explicit FTPS server. Explicit FTPS has a slightly diffferent negotiation in the intitial connection and different ports.
Has anyone gotten Explicit FTPS working with the Cache classes?
I have been looking into using abstract classes and methods. In other languages, if a superclass is defined as abstract, subclasses inheriting from the superclass will not compile until all abstract methods have been implemented in the subclass.
I have created the following classes to try this in Cache:
Class User.Music.AbstractClass [ Abstract ]
{
Method testabs(inp As %String) [ Abstract ]{}
}
Class User.Music.AbstractTest Extends (User.Music.AbstractClass, %Persistent)
{
Method testabs(inp1 As %Integer) { w !!,"Input:",$g(inp,"undefined") }
}
When I compile User.
Hello people!
I am Brazilian and I am starting to work with the latest version of CACHE, and I would like to know where I can see an example of a TRIGGER, I would like to validate the fields before writing the actual data in the database.
in advance, thank you very much! and sorry for any mistake in concordance in english
Until this week, my customer had Ensemble writing HL7 messages to my TCP listener, working fine on ageing physical servers (Windows Server 2003, Caché 2009). They had four app servers (app1, app2, app3 and app4) with an overarching DNS simply called "app". Ensemble was connecting to "app:port", and it somehow found whichever of the four app servers my background listener was running on, and the interface worked fine for 10+ years.
t's also an example for a customized command extension (ZZJSN) in Caché & IRIS
This is the Caché version for fast JSON formatting but it also works in IRIS.
Requires package ZPretty
To allow parallel existence in IRIS this is named ZZJSN
see:
USER>ZWRITE jsn
jsn="{"Name":"Li,Robert K.","SSN":"672-92-9664","DOB":"1975-01-12","Home":{"Street":"986 Washington Blvd","City":"Boston","State":"PA","Zip":"95802"},"Office":{"Street":"6012 First Place","City":"Reston","State":"MT","Zip":"77739"},"Spouse":{"Name":"Avery,Zelda H.","SSN":"323-13-7437","DOB":"1943-03-27","Home":{"Street":"196 Main Drive","City":"Youngstown","State":"WY","Zip":"53229"},"Office":{"Street":"4056 Franklin Court","City":"Bensonhurst","State":"IA","Zip":"27688"},"FavoriteColors":["Black"],"Age":77},"Age":45,"Title":"Associate Marketing Manager","Salary":10421}"
Hi,
Recently I have encountered a new issue, more and more 3rd party applications move to the cloud.
Web-hooks incoming from their sites can no longer be identified using a known and fixed IP address, so our customer's security department blocks them.
In past similar cases we use to grant access in the customer's Fire-Wall to the specified IP address - this is no longer applicable.
Has anyone else encountered this problem ? do you have any ideas ?
Thanks
Hi
What would be the best way to restrict use of a set of SOAP services so that they could only be called from specific white-listed IPs?
Thanks
IRIS and Caché / Ensemble offer the possibility to add Languages Extension as SystemFunctions, SystemVariables, SystemCommands
The related documentation tells you where to add the system-wide extension. Parameter passing is not covered explicitly.
What is the sql command to describe table in cache db.
Let's say I have this simple script file try.script
write 1 write 0
I can execute it in a terminal (csession) by calling:
csession cache < try.script
And I get the following output:
However I want to use a try catch block in my script:
But as script is executed line by line, it's interpreted like this:
I know that I can write it all in 1 line, but I'd rather not do that. Is there a way to feed multiline statement into Cache?
Hi,
Below To_Char function is not working as expected
SELECT TO_CHAR('12/31/1840','mm/dd/yyyy') ---01/12/1841
I expect the result to be 12/31/1840. Let me know If there are any suggestion to get the correct result.
Thanks, Meena
Hello, I am running into a little problem.
I am trying to create a Cache Trigger on a FACS table using the SQL CREATE TRIGGER command but I am getting the message [SQLCODE: <-300>:<DDL not allowed on this table definition>].
I am not creating a persistent class but using the SQL CREATE TRIGGER command.
Please advise.
thanks.
Been cleaning up our production 2017.1 instance of Health Connect in preparation to a move to Health Connect 2020.1 (on IRIS!)
One thing I have found I we have built up a number of old classes and other configuration files.
It would be nice to start on the new server with a clean slate.
Is there any way to identify classes that haven't been used for a long time so they can be reviewed and removed?
Kind regards,
Stephen
Hi,
I get this error [Cache ODBC][State : HYC00][Native Code 469] and zero rows returned with the following query.
SELECT "Timestamp","Skillset" FROM "dbo"."iSkillsetStat"
WHERE (Timestamp >= '2020-06-29 00:00:00'
AND Timestamp < '2020-06-30 00:00:00')
I'm using Qlik Attunity Replicate to extract data, the query was formatted by the tool. The query will return data in excel and SSIS, but not using Replicate.
So far I've tried using two ODBC drivers
-----------------------------------------------------
Driver Name: CacheODBC64.DLL
Unicode Client Version: 2017.2.2.865.
Let's say we have two serial classes, one as a property of another:
Class test.Serial Extends %SerialObject
{
Property Serial2 As test.Serial2;
}
Class test.Serial2 Extends %SerialObject
{
Property Property As %String;
}And a persistent class, that has a property of test.Serial type:
Class test.Persistent Extends %Persistent
{
Property Datatype As %String;
Property Serial As test.Serial;
}So it's a serial, inside a serial, inside a persistent object.
Hi,
I am getting below error in date column in a table. I am unable to query data or find distinct or to_char on this column.
Select distinct column name from table Select column name from table Select To_Char(column name) from table
Table has 3923509 rows.
Could someone help me how can I identify bad data in this table?
Any idea how we can avoid this error?
[SQLCODE: <-400>: