Question Kurro Lopez · Feb 25, 2021 Export partial JSon to a response message Hi all, I have a API operation that is calling to a external process. The answer is a big json but I only want a pice of the full content. My first attempt is: #Caché 1 2 0 228
Question Kurro Lopez · Aug 25, 2020 Search an object in a ListOfObj Hi all. I have a reponse message that has a property of the type %Collection.ListOfObj and I need to search for an item in this list. Let me show you. #ObjectScript #Caché 1 5 0 346
Question Kurro Lopez · Apr 17, 2020 Failed to acquire exclusive lock error Hi all, I have a class that has been working so far :( The class extends the EnsLib.RecordMap.Service.FTPService class and add some information for each rows. Now, when it saves the object it is raising the following error ERROR #5803: Failed to acquire exclusive lock error I've seen the other question in the community and I've tried to unlock #Interoperability #Caché #Ensemble 1 5 0 1.2K
Question Kurro Lopez · Oct 30, 2019 API RESTful Version Hello, We need to create a versioning of an existing API, so we going to set a default version (so far) for current connections to version 1 My first attempt is: #Business Service #REST API #Ensemble 3 5 0 391
Question Kurro Lopez · Sep 4, 2019 BS FTP error waiting for files Hello everyone,We have a process that is listening to an FTP service to collect some CSV files and process them. The process works correctly and when it ends it clears the directory waiting for it to enter some other file.We have been receiving the following error message for a long time: #Business Service #FTP #Ensemble 1 4 0 835
Question Kurro Lopez · Jun 24, 2019 Create a Pass-through SOAP WebService Hi all,I'm triying to create a SOAP Pass-through acording to Configuring Pass-through Business Services instructions, but I'm not able to run it I'm using the following WebServicehttp://www.dneonline.com/calculator.asmx?wsdl #Interoperability #SOAP #Ensemble 2 3 2 923
Question Kurro Lopez · May 24, 2019 How to copy array values from JSon to object using DTL? Hi community,I need to create a DTL to get values from a JSon (%DynamicObject) to a class.Thre first items is copied fine, however when it tries to get the values from an array it raises an error. #DTL #Ensemble 1 5 1 806
Question Kurro Lopez · May 22, 2019 How to delete an item from a production by code? Hi all,I am trying to delete an item from a production through a routine that installs and disables items.To add any item, I have no problems, even to enable and disable some particular items.The problem arises when I try to eliminate the production item, because when it does, the production become unstable and only works again when this item is added again in the collection (or the item is deleted manually in the production.cls)This is my code attempt: #Ensemble #InterSystems IRIS 1 11 0 667
Question Kurro Lopez · May 20, 2019 How to sync Server and local cache code using Visual Studio Code Hi all,I wonder how to sync my server code to my local code using Visual Studio Code.Previously, using Atelier, you could open a view of server and can copy the code to the current project, also if I change a BP, I could sync the code because I had a signal that It's warning me that there was a change and it needs to be updated.I thing i shouls opening the ObjectScript: Explorer and select the code directaly, and right click -> Import and compile current file (Ctrl + F7)If I use this command, the ouptut window shows: #VSCode #Caché 1 16 0 1.6K
Question Kurro Lopez · May 16, 2019 How to ignore serialize a property in a class to JSon Hi all,I have a class that I want to serialize to JSon. So I'm using the object %ZEN.Auxiliary.jsonProvider) #JSON #ObjectScript #Caché 1 8 0 584
Question Kurro Lopez · May 10, 2019 Get parent classname Hi community. I need to get the parent classname of a class, but I don't find how to do it. I have a class Parent (MyLibrary.ParentClass) and two classes inherited from the parent class #Business Process (BPL) #Ensemble 1 3 0 507
Question Kurro Lopez · Feb 20, 2019 Extend XData UrlMap Hi all, I'm wondering if is possible to extend the UrlMap. I want to create a base class and one method will be in all extended classes, so I've tried to create the map route in parent class, and the specific methods in extended class. But it doesn't work. I've create the method in parent class and I've wrote the map in extended class. It works, but I want to put it in base class to prevent forget this call. Note: The base class extend to %CSP.RES Best regards, Francisco Lopez #Business Service #REST API #Ensemble 1 5 1 601
Question Kurro Lopez · Oct 30, 2018 FTP.Rename doesn't work in SFTP Hi all,I have a FTP.Inbounding service that read a file and move it to a other folder when it is processed. The problem is that is not working fine in SFTP server.The code is coppied from How to - Customize Ensemble Settings article. #Ensemble #Business Service #FTP 1 4 0 1.7K
Question Kurro Lopez · Sep 13, 2018 Purge Task History manually Hi,I've read into console.log that there is some problems writing the global Task History 09/13/18-09:33:00:109 (9052) 0 Error al escribir en global de historial de tareas - Error (ERROR #5002: Error de cache: <DATABASE>%SaveData+20^%SYS.Task.History.1 ^SYS("Task","HistoryD",66179),c:\intersystems\healthshare\mgr\) #Globals #Ensemble 1 2 0 384
Question Kurro Lopez · Sep 5, 2018 Error when displaying message in a production Hi all,We have a big problem because we have the following message when I try to open the messages in a production. ERROR <Ens>ErrException: <DATABASE>zfindStatement+29^%SQL.DynamicStatement.1 ^%sqlcq("MYNAMESPACE","Query",8,"Gns8AZO5dJclytqv13l9gUuLUyo=",""),c:\intersystems\healthshare\mgr\cache\ -- logged as '-' number - @'' SOURCE ELEMENT: %ZEN.Component.tablePane (resultsTable) #Ensemble #SQL #System Administration 1 4 0 464
Question Kurro Lopez · Aug 29, 2018 Error when FTP folder is empty EnsLib.FTP.InboundAdapter Hi community,I've created a BS that uses FTP InboundAdapter. It works, read the file and process it.The problem is when there not any file in the FTP folder, it raises the following error: ERROR <Ens>ErrFTPListFailed: FTP: error en List para *.csv (mensaje='No-transfer-time exceeded. Closing control connection.',código=421)I think it is something about the configuration, but I don't find what is the problem. #Ensemble #Business Service #FTP 1 4 0 663
Question Kurro Lopez · Jul 26, 2018 Export all code in one file Hi all,I want to export a production in one file, but it has some code in macros, include and class files. I'm exporting using portal (Classes / Select All / Export) but I need the same in macro's tab and copy the content in one file. #Caché #Change Management #Deployment #Ensemble 3 6 2 1.8K
Question Kurro Lopez · Jun 12, 2018 "IF THEN - $SELECT - $CASE" - What is the best way? Hi all,I'm wonder what could be the best way convert the sentence "Switch" C# into Cache code. int caseSwitch = 1; switch (caseSwitch) { case 1: Console.WriteLine("Case 1"); break; case 2: Console.WriteLine("Case 2"); break; default: Console.WriteLine("Default case"); break; } My first attempt was: #Caché #Coding Guidelines 1 16 1 2.7K
Question Kurro Lopez · Feb 21, 2018 Migration to Healthshare 2017.2.1 problem %SuperSession ID Hi all, We have migrated our Ensemble instance from Healthshare 2016.2.1 to 2017.2.1, after all process we are checking that all namespaces are working propertly. The first problema was checking a business operation that calls to a WebApi with the following error message: #Ensemble #HealthShare 1 6 0 491
Question Kurro Lopez · Jan 10, 2018 Configure IIS for WebApplication in Ensemble Hi all, I've configured my Ensemble instance to use IIS 7, according to the instructions CSP Gateway configuration Guide and I've configure the CSP Virtual application. All the process about Native modules is done. #Development Environment #System Administration #Web Gateway #Ensemble 1 7 0 1.2K