Question Evgenii Ermolaev · Nov 2, 2021 Receiveing <UNDEFINED> error for a variable that is not referenced in the line in the error? I am receiving the following error in my buisness operation: ERROR <Ens>ErrException: <UNDEFINED>zGo2+181^mb.MbMainOperation.1 *tSC -- - registered as '-' number - @' set pResponse = ##class(mb.MbMessageResponse).%New()' From what I understand, the problem occurs in the generated int file mb.MbMainOperation.1 in the method zGo2, with the offset of 181 lines, and the variable in question is a local variable tSC. However, the line where the error occurs does not refer to tSC in any way #ObjectScript #Ensemble 0 3 0 223
Question Evgenii Ermolaev · Oct 23, 2021 Multiple DELETE statements in a single query in Cache Monitr I need to execute multiple DELETE statements in a single query like this DELETE FROM TableName WHERE ID = 2; DELETE FROM TableName WHERE ID = 3; DELETE FROM TableName WHERE ID = 4; However It does not work when there're more than 2 statements and gives me an error Expected FROM found WHERE^DELETE FROM TableName WHERE Using IN is not an option. #SQL #Caché 0 9 0 368
Question Evgenii Ermolaev · Jun 14, 2021 What does this error occur? I am getting the following error when trying to fect data from DeepSee: "Error":"ERROR #5002: Cache error: <PROTECT>%Construct+3^%DeepSee.ResultSet.1 ^DeepSee.Cache.LocalResults(\"session\"),e:\\hs-db\\tfoms\\" However, I cannot find the place this error points me to. Specifically, it says 'Label %Construct + 3 lines, in the %DeepSee.ResultSet.1', but there does not seem to be such a place. I could only find the %DeepSee.ResultSet class and it does not have a lable named %Construct. #Security #Caché 0 4 0 390
Question Evgenii Ermolaev · Apr 29, 2021 Is it possible to show absence of data in DeepSee? Let's say I have a persistent class Sales.I need to create a report that shows the amount of sales for each branch.By simply using the class Sales for the source of the cube, I can show what I want with one little exception - the branches that did not have any sales are not shown.Is there a way around that that does not involve creating a whole new table just for this cube or using a Data connector (they have horrible documentation and I am unable to figure out how to use them properly)? #Cubes #MDX #Caché 0 3 0 163
Question Evgenii Ermolaev · Apr 29, 2021 Is it possible to use Table Value Constructors outside of INSERT/UPDATE statements? I need to show the absence of data, so I have to join the list of predefined values with a result of a select statement.However, it seems like Table Value Constructors in JOIN are either not supported, or I do not understand the syntax.Basically, I am going for something like this: Select v.valueId, m.name From (values (1), (2), (3), (4), (5)) v(valueId) left Join otherTable m on m.id = v.valueId Is it supported in Cache SQL or not? #SQL #Caché 0 6 0 182
Question Evgenii Ermolaev · Apr 27, 2021 Is it possible to authenticate via LDAP in a CSP REST application? I am using MDX2JSON do display data, it uses CSP REST to retrieve data and uses Password Authentication. I enabled LDAP authentication for this applicaiton, but it does not work. #Authentication #CSP #LDAP #REST API #Caché 0 7 0 339
Question Evgenii Ermolaev · Apr 11, 2021 CSP application weird behaviour Working with CSP applications, I've noticed behaviour that does not seem to be documented anywhere. #CSP #Caché 0 9 0 578
Question Evgenii Ermolaev · Mar 30, 2021 Get user properties outside of %SYS namespace I have a CSP page that is supposed to show some user info (Full name and some other properties retrieved from AD) I am unable to get them outside of %SYS namespace using Security.Users class. Is there another mechanism to do that, or I am using Security.Users class incorrectly? #CSP #Namespace #ObjectScript #Caché 1 22 0 517
Question Evgenii Ermolaev · Mar 25, 2021 Do I need to enable LDAP authentication for my Cache instance ot use LDAP auntentication in a single CPS application? Currently, I am working on a CSP application that is supposed to generate reports. Users will have varying access to said reports. To achieve that, I plan to use LDAP (because it's used in other systems where those users already exist). Documentation does not provide enough information, so I'd like a clarification:Do I need to enable LDAP authentication for the whole Cache instance to use LDAP authentication in a single CSP application in that instance? #Authentication #Access control #CSP #LDAP #Caché 0 5 0 294
Question Evgenii Ermolaev · Mar 16, 2021 Which Date type is used in Dynamic SQL? I am trying to use Dynamic SQL because I need to supply data at runtime.The generated query returns 0 rows for some reason. If I copy/paste the query into Monitor, it works correctly. I am suspecting it has something to do with dates being the wrong format (I am supplying them in 'YYYY-MM-DD' format). Is that the cause? And if so, how do I supply dates in correct format? #SQL #Caché 0 1 0 181
Question Evgenii Ermolaev · Feb 2, 2021 $$$RESTRICT in Data Connector Following instructions on this page https://docs.intersystems.com/latest/csp/docbook/Doc.View.cls?KEY=D2IMP_... I am trying to create a Data Connector to be used as a base class for a cube with update support.That page suggests that putting an SQL query inside XData block is not suitable for a Data Connector that supports updates.Later it also suggests that to enable updates your SQL query must include #ObjectScript #SQL #InterSystems IRIS BI (DeepSee) 0 2 0 239
Question Evgenii Ermolaev · Jan 26, 2021 Individual Backup List for every Backup Task Currently running on limited hardware, Online Backups are becoming a bottleneck for our system. For now, we are exploring an option to backup individual databases, or groups of them, thus reducing RAM requirements per individual backup task. To do that, however, we'd need a separate Backup List for our Backup Tasks. We did not find an option to do so in web portal, so currently we are looking at inheriting from system backup tasks and Backup.General classes to generate Backup List before backing up and then performing the backup as normal. #Backup #Caché 1 3 0 456