go to post Enrico Parisi · Feb 12 Embedded SQL build the cached query ONCE while you compile This is no longer true since some time/version, please check relevant documentation: Embedded SQL is not compiled when the routine that contains it is compiled. Instead, compilation of Embedded SQL occurs upon the first execution of the SQL code (runtime). First execution defines an executable cached query. This parallels the compilation of Dynamic SQL, where the SQL code is not compiled until the SQL Prepare operation is executed. As a result, some assumptions, even in the main post, are no longer accurate. My suggestion is to read the article in this community from @Benjamin De Boe : New in 2020.1: the Universal Query Cache
go to post Enrico Parisi · Feb 11 That's not the WebGateway port, it's the web server port, so you can change it in the web server configuration. From the port you mentioned (57773) It seems you are using PWS (aka Private Web Server) that used to be installed with IRIS before version 2023.2 (if I recall it correctly). Since you are using version 2024.3 my guess (I can be wrong) is that your system was upgraded from a previous version, so the PWS is still installed. If so (you are using PWS), I suggest to install a proper "web server" (Apache or, if Windows, IIS) and use it instead of the deprecated, no longer installed, PWS. It has been announced that future version (2025.??) PWS will be removed during IRIS install.
go to post Enrico Parisi · Feb 11 Well...it's still valid for old versions 😉 You may want to edit and add at the beginning that IRIS can use VSS with a link to documentation.
go to post Enrico Parisi · Feb 11 Yes, absolutely true, if you are not using an old version/product like Caché/Ensemble. Windows VSS support was introduced few years ago, maybe with IRIS? So, if your backup solution has VSS quiescence enabled, you can simply rely on it and you are good to go without any script/freeze/thaw. It's authomatic. You can check messages.log file during backup, look for something like: [Utility.Event] Backup.General.ExternalFreeze: Start a journal restore for this backup with journal file: e:\intersystems\iris\mgr\journal\20250210.004 [Utility.Event] Backup.General.ExternalFreeze: System suspended [Generic.Event] VSS Writer: OnThaw [Utility.Event] Backup.General.ExternalThaw: Resuming system [Utility.Event] Backup.General.ExternalThaw: System resumed
go to post Enrico Parisi · Feb 10 Backup.Task is a system class located in %SYS, I'm not sure if creating a Backup.Task in another namespace (hopefully!!) address his issue.
go to post Enrico Parisi · Feb 10 That property contains the last run status of a specific task, so first you need to know what task you are interested and then open that task and get the last status, like: Set BckTask=##class(Backup.Task).%OpenId("FullDBList") Set status=BckTask.LastRunStatus
go to post Enrico Parisi · Feb 10 What are you using to read the csv file in IRIS? Can you provide a small sample code?
go to post Enrico Parisi · Feb 7 To support longer then 500 lines you may use an hash instead of the actual line.
go to post Enrico Parisi · Feb 3 If you want/need to keep the generated .int, then: set sts = ##class(%Routine).CompileList("*.int","/keepsource=1") or set sts = ##class(%Routine).CompileList("*.int","k")
go to post Enrico Parisi · Feb 3 Please follow the documentation starting from Visual Studio Code (VS Code) Introduction First thing to decide if you want to use client-side editing or server-side editing. server-side editing is more similar to working with InterSystems Studio. Then, if you encounter problems, please come back and provide details on what you have done, what the problem you encountered, any error you get etc.
go to post Enrico Parisi · Feb 2 I think/guess you are using the wrong port number in vs code. Vs code uses the web server port to connect to IRIS. What port do you use to connect to the IRIS Management Portal? Likely you are using port 80 and/or 443, the same port should be used in vs code.
go to post Enrico Parisi · Jan 23 Please translate to English or publish your question in French Community
go to post Enrico Parisi · Jan 22 There is no such a stream you are looking for. Data is sent to the browser (via WEB Gateway and WEB Server) as you write it from your CSP page/application, IS NOT held in a stream and sent "at the end" (what's the end BTW?).
go to post Enrico Parisi · Jan 22 Here is the corresponding (as per @Stephen Canzano post) IRIS documentation (no password required): Version Checking (Alternative to Concurrency Argument)
go to post Enrico Parisi · Jan 17 Hi @Stephen Canzano, it's my understanding that none of the counters described in the doc page you linked is incremented using UPDATE, nor can be modified by user code/SQL.
go to post Enrico Parisi · Jan 17 I doubt it's possible to change the prefix in your use case (using virtual XML doc.). The produced xml is perfectly valid and compliant to the xds, changing the prefix makes no sense.
go to post Enrico Parisi · Jan 16 xsd_2 is simply the prefix assigned to the namespace http://voicetechnologies.co.uk/winvoice/importation Formally your xml looks OK to me. What problem are you having?
go to post Enrico Parisi · Jan 16 Can you provide some more details? What kind of object holds your received "File"?
go to post Enrico Parisi · Jan 16 You should never concatenate query parameters in the query text, instead use placeholders and parameters. Like this: set tQuery="SELECT ProvId, AllwOpenSchYN, IsAllwSchedYN FROM "_context.EpicClaritySerMycTable_" WHERE ProvId=? AND Market=?" set tStatement = ##class(%SQL.Statement).%New() set qStatus = tStatement.%Prepare(tQuery) set rset = tStatement.%Execute(context.ProvId,context.Market) do rset.%Next() if rset.%SQLCODE<0 { $$$TRACE("SQL Query ["_tQuery_"] FAILED") } else { set tAllwOpenSchYN = rset.AllwOpenSchYN set tIsAllwSchedYN = rset.IsAllwSchedYN set tProvId = rset.ProvId } Suggested reading: Dynamic SQL Best Practices
go to post Enrico Parisi · Jan 16 To me it looks that the remote system (147.185.133.137) it's connecting and then disconnect before sending any data.Maybe setting Archive IO can provide some hint, but I'm not sure what happen with Archive IO when no data is received, like seems in this case. I would try to test/connect using something like Postman and see if it works as expected. Please note that %GlobalCharacterStream class in deprecated in favor of %Stream.GlobalCharacter class. I'm puzzled by the line: That method convert an object to a stream, but in fact you are passing a stream and it seems you expect it returns an object. Also note that this two lines: don't do anything, you can safely remove them.