Is there a way I can call %Save() on a %Persistent object and at the same time prevent indices from being built?
InterSystems Caché is a multi-model DBMS and application server. See more details here.
InterSystems Caché is a multi-model DBMS and application server. See more details here.
Is there a way I can call %Save() on a %Persistent object and at the same time prevent indices from being built?
Hi,
I have a test version of Cache installed on my laptop, but I cannot get logged into the database. I think my ID may be locked due to too many password failure attempts. I have not changed the Admin password or SuperUser password. Does anyone know what the default password would be for the Admin and/or SuperUser Id's? Or if someone knows how I can get in and unlock/reset my password, it would be much appreciated??
Thanks,
Larry Cardinal
Happy New Year to all
I have a registered object class that extends %XML.Adaptor and I want to convert an object of it into canonical XML.
From reading the documentation and some trial and error, it seems like I would need to use %XML.Writer to write the object to XML first using the RootObject() method, then read it with %XML.Reader, and then use the Canonicalize() method of %XML.Writer to write it out again.
Is there a better approach?
I have a CSP page that throw a "414 error - Request-URI Too Long" when I put lot of text (eg : 10000 characters) into a field of a submitted form. The form is submitted using POST method.
Based on some experiments I made, it seems the max size of a URL is around 8200 characters.
What is the official limit, and is there a way to increase it ? I searched in the documentation but couldn't find anything.
Was wondering if anyone had a simple way of calling ##class(Ens.Director).EnableConfigItem() within a Business Process or adding code to a Custom Service to start or stop the object?
The use case is that I have a Process that uploads a file into a external SQL table. When it is finished I want it to kick off another Service that does the processing of the data that it just uploaded. Once it is finished the response is sent back to the service and when the service receives the response from the process, I want to stop that service from running.
so.
A good writer is supposed to draw you in with the title and bury the answer somewhere in the article. I suppose this makes me a bad writer – don’t think less of me, my whole feeling of self-worth comes from the opinions of internet strangers!
Hello,
I'm inserting a row using an insert statement from dotnet InterSystems.Data.CacheClient.CacheCommand.
Is there a way to get the inserted ID or IDs if I've inserted multiple rows?
Regards, Timo
I have been creating classes using the below REST url.
http://localhost:57772/api/atelier/v1/ENSDEMO/doc/Demo.HL7.MsgRouter.Te…
The only caveat is that I want to only load in the compiled code of the classes, as they appear in deployed mode.
How do I define this in the content of the JSON payload being sent across?
Similar to: "set obj = ##class(myClass).%OpenId(id)", which give the an instance of the object with given ID, is there a way to implement a function/classmethod to return the same by providing both class name and ID as a parameter, such as: getObjectInstanceByNameId(className As %String, id As %Integer), using ObjectScript code?
I have been able to insert a class using the Atelier API called in c# but now want to run it from the same code.
Is there a way of calling a Cache class method from c# code?
When recieivng a response and calling SendDeferredResponse I get the warning below and no response is sent.
|
When the initial request comes in I am calling DeferResponse but the message never goes into a state of Deferred.
How do I resolve this warning and get the response working?
Suppose you have developed your own app with InterSystems technologies stack and now want to perform multiple deployments on the customers' side. During the development process you've composed a detailed installation guide for your application, because you need to not only import classes, but also fine-tune the environment according to your needs.
To address this specific task, InterSystems has created a special tool called %Installer. Read on to find out how to use it.
Hi!
I'm running a unit test via terminal, and sometimes someone from another team/squad add a few BREAKs and my tests stop until I skip one by one.
Is there a way to ignore BREAKs?
Hi,
in our system we usually display an information if someone locks data that another user tries to edit. Like: "Data locked by <user>/<program>"
We have a global that is set at userlogin with following information:
^BA020(0,3,$job) = "<user>;<program>"
We show that information by getting the jobnr/owner from the locktable ^$LOCK("<ref>","OWNER") and looking at ^BA020.
We recently added applicationservers to our system and the result is quite interesting. Instead of getting the jobnr from ^$LOCK when it's a remotelock I only get the name of the applicationserver e.g. APPAIXVK3.
Hi,
I have two versions of Cache running on two separated servers. In one server, the version is 2018.1, and have the web application 'api/atelier', and the other server the version is 2016.1.
The question is, can I export the web application 'api/atelier' from 2018.1 and import/install it on 2016.1 version?
Thanks!
When creating a PRA (Privileged Routine Application; which by the way is not relevant just for Routines but also for Classes/Methods), it is important to make sure you include a new $ROLES, before calling AddRoles(). For example:
new$ROLESThis way you ensure that indeed the added (elevated) roles "evaporate" for the User running this code, once the User is out of the scope of that routine/method.
[Thank you @Andreas Dieckow for validating this]
Hello!
Not opening an instance by index key after CACHE migration to IRIS. In composite indices, when one of the values is null, when using idx open it does not return the reference.
Has anyone had this problem?
According to the IRIS documentation, once a user id is identified, at lease one license will remain (forever if I understand it correcly). The documentation says "even if the number of processes under the user ID drops back under the maximum, InterSystems IRIS continues to allocate one license unit per process for that user ID. Only when all connections by the user ID are closed and there are no more processes under the user ID does license allocation reset to one unit for that user ID."
Our organization has a lot of IP addresses.
I have a module that sends EMAIL from a Cache INT routine (listed below).
In order to make sure the columns align in the body of the message that the recipient receives I want to force the setting of the FONT and SIZE in the body.
Does anyone know what I need to insert in this code in order to control font and size?
Alternatively is there a way to send mail from within Cache that will keep column data aligned?
Thanks.
________________________________________________________
s server=##class(%Net.SMTP).%New()
s server.smtpserver=server_name
s server.post=nn
s msg=##class(%Net.MailMessage)).%New()
s msg.
Hello Developers.
I have a question regarding X12 834 file for Payers.
We have a client thats sending X12 834 file with single ST SE block and has thousands of members in one single block and X12 process is throwing STORE error when processing this file.
Has anyone ran into this issue and has a way of splitting 834 file into single <ST> <SE> block?
Thank you in advance
Sheetal
Hi!
I'm trying to install a ZPM package in my 2018 cache to use swagger-ui in my api-rest, but when I execute command line:
Do $System.OBJ.Load("/mypath/zpm.xml","ck")
I receive this error message:
ERRO #6301: Erro no Parser XML SAX: Linha: 2 Deslocamento: 39 Este arquivo não parece ter sido exportado pelo Caché, não é possível importá-lo.
ELEMENTO DE ORIGEM: %ZEN.Component.html (htmlContent)
I'm trying to install the version: zpm-0.5.1
Can anyone help me?
Hi, how do I create a trigger that will only set the value of the "Status" field for new objects, not for all available?
Class CarDealer.Order Extends (%Persistent, %Populate)
{
Property Title As %String
Property Status As %String(VALUELIST = ",InProgress,Done,Canceled");
Trigger setStatus [ Event = INSERT, Foreach = row/object, Time = AFTER ]
{
&sql(update CarDealer.Order set Status = 'InProgress')
}
Hello, first of all thanks for your time and help.
We do send from a REST POST request using SoapUI software, an "Authorization Bearer".
POST http://[IP]:[Port]/aplicaciones/scs/informescctest/Servicios.SOAP.InformesCConcertadosv01r00.cls HTTP/1.1
Accept-Encoding: gzip,deflate
Content-Type: application/xml
Authorization: Bearer eyJ0e[...]
SOAPAction: http://SCS.Servicios/InformesCConcertadosv01r00/ResultadosER7
Content-Length: 1871
Host: AAA
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.1.1 (java 1.5)
Hi guys.
I need validate a field string in a table. It needs have a specific mask
I want use regex + CASE expression
There is any function to this purpose in SQL?
Hi
I have two tables: one a local table using cache and the other is via an SQL gateway connection to an MSSQL Server via a 64bit ODBC driver (ODBC Driver 17 for SQL Server).
When I try to join them on a date field I don't get any matches, and I know that there are matches, e.g. running both views separately returns resuls for 30/11/2022.
The following statement returns rows for the first table r, but nothing for the table l
selectfromleftThe view GMMHTIE_PCMIS_Table_PCMIS.vwPCMISNewCasesCount references the table accessed via the SQL gateway connection, and contains the following:
This set of tools (RanRead, RanWrite, and the combined RanIO) is used to generate random read and write events within a database (or pair of databases) to test the IO speed of IRIS running on a specified hardware setup. While Read operations can be measured in the usual Input/Output operations per second (IOPS) since they're direct disk reads, write events are sent to the database and thus their physical writes are managed by IRIS's write daemon.
Results gathered from the IO tests will vary from configuration to configuration based on the IO sub-system. Before running these tests, ensure corresponding operating system and storage level monitoring are configured to capture IO performance metrics for later analysis. The suggested method is by running the System Performance tool that comes bundled within IRIS. Please note that this is an update to a previous release, which can be found here.
Hi everybody!
I'm new to a Caché world and need some help! Where I work we are running Cache 2016.1 version in a server, and 2018.1 in another server. I want to upgrade the version 2016.1 to 2018.1, but I fear it can raise some errors tha I cant resolve yet. My doubt is, if I upgrade it will run ok?
Thanks in advance!
Hello
I need to enable %Service_Terminal with shell script:
1) Enable %Service_Terminal
2) Enable delegate authentication on this Service
How?
Hi,
We have 2 writer threads, each has a connection to Cache. When write records to Cache, we use PreparedStatement.executeBatch() with the batchSize 10 000.
We got very very slow insert speed.
But if only 1 writer thread used, the speed is faster, just as normal.
Any idea?
Hello everybody,
I have 15 years of experience in InterSystems Caché, Ensemble and IRIS and I am looking for opportunities to work as a remote freelancer.
I worked on large projects in Brazil in several segments as a developer and as an Interoperability architect.
My contact: fabio2wf@gmail.com
Thanks