John Murray · Jul 5, 2018 go to post

Interesting! I've been suffering from the same problem, so I've just added those two lines in the hope they're a solution. Time will tell...

John Murray · Jun 29, 2018 go to post

FWIW, my money is still on this being  caused by the Linux firewall on the server not allowing incoming TCP connections to port 1972.

John Murray · Jun 29, 2018 go to post

Those look correct.

Is there perhaps a firewall blocking your Studio host's TCP/IP access to port 1972 on your server?

Is the %Service_Bindings service enabled? Does it have any IP restrictions specified?

John Murray · Jun 29, 2018 go to post

Probably not. But prior to 2010.1 we didn't have $NAMESPACE, and its forerunner $ZNSPACE couldn't be NEWed. So code might look like this:

set currentNamespace = $znspace
znspace "%SYS"
// do stuff
znspace currentNamespace
John Murray · Jun 29, 2018 go to post

If you are indeed telling Studio to use the same Web Server Port that you're successfully using with Atelier, then that's your problem. Studio connections are handled by the Superserver port (e.g. 1972), not the Web Server one (e.g. 57772).

John Murray · Jun 18, 2018 go to post

Alongside the CACHE.DAT file is there a cache.lck file? If so, this could be preventing the new Cache instance from mounting the CACHE.DAT file by indicating that the database is currently mounted by another instance.

John Murray · Jun 18, 2018 go to post

How about also updating the beta repo to 1.2.119 ? As things stand I had to add the 1.2 Stable repo to my list of sites in order to update my 1.2.118 beta to 1.2.119

John Murray · Jun 15, 2018 go to post

I doubt if Studio will be able to compile them faster than Terminal can. After all, when Studio compiles them, it asks the server to do the work. That's also where your Terminal compile happens.

John Murray · Jun 13, 2018 go to post

It sounds like you're seeing the same value in the "License Id" column as in the "ID" column. So I guess your Cache was installed with Minimal security and you're not requiring Portal users to supply credentials, right?

It's my experience that when CSP users (e.g. Portal users) have to authenticate, the "License Id" field of their CSP Session record includes the IP address they're connecting from, as well as the username they logged in with. This can be useful in working out who is using all the sessions.

John Murray · Jun 13, 2018 go to post

When you view the CSP Sessions page in Portal, does the "License Id" column give you any useful information?

John Murray · Jun 12, 2018 go to post

If you use the IF style, I suggest you also consider using the ELSEIF clause. See doc here.

 set caseSwitch = 1

 if (caseSwitch = 1)
 {
   write "Case 1"
 }
 elseif (caseSwitch = 2)
 { 
   write "Case 2"
 }
 else
 {
    write "Default case"
 }
John Murray · Jun 12, 2018 go to post

Yes, the badges seem to get awarded retrospectively. But for some reason the Challenges section of my Global Masters page still lists the associated challenges for two badges I've already received:

John Murray · May 31, 2018 go to post

Manish, IMO you really need to open a support ticket with InterSystems about this kind of issue. DC isn't a substitute for the excellent support that InterSystems WRC can offer.

John Murray · May 29, 2018 go to post

Nicole, this inconsistency between Atelier Explorer (where some packages are shown as white) and Server Explorer (where none are) still exists in 1.2. For example, in AE the %Compiler package is white because it contains no classes, only subpackages:

In SE this doesn't happen:

Is it still on someone's radar there?

John Murray · May 29, 2018 go to post

Nicole, after starting once with the -clearPersistedState command-line switch I am now able to use my original workspace.

Intriguingly, after doing this both my original workspace and the fresh one I had created after upgrading to 1.2 now complain about connecting to a server whose /api/atelier web app only accepts Unauthenticated access. Before "-clearPersistedState" my freshly-created workspace was willing to connect to such a server (incidentally, that server was a fresh install of IRIS 2018.1.1, which still offers Minimal Security as an install option).

John Murray · May 29, 2018 go to post

Thanks for posting the 1.2 info Joyce.

Beta testers upgrading from a previous version may find useful additional info in my earlier post here.

John Murray · May 29, 2018 go to post

This seems to have been addressed in Atelier 1.2. Using build 118 from the beta repo I get the following when testing a connection to a server installed with Minimal security (which somewhat surprisingly is still an option when installing IRIS 2018.1.1)

To resolve this I must enable another authentication method (e.g. Password) on the /api/atelier web app:

Probably a good idea to deselect Unauthenticated. Even though Atelier doesn't seem to allow anonymous connection to /api/atelier REST service I guess it'd be possible to do this directly.

John Murray · May 25, 2018 go to post

I switched to my upgraded 1.1 workspace and tried a couple of times launching Eclipse with 'eclipse -clean' but still get the errors. It's not critical for me, as it was only a play workspace. But it might matter more to other folk if they have the same experience.

John Murray · May 23, 2018 go to post

I'm not sure that GBLOCKCOPY is able to cope with you specifying the same filepath for the source and destination databases.

GBLOCKCOPY doc for 2008.1 is here.

John Murray · May 22, 2018 go to post

Where are you running the GBLOCKCOPY? If on your 2014 environment I think you'll be having the same problem as when you just tried to mount the database there. GBLOCKCOPY needs to mount it before it can copy block from it to your new database.

Most likely, your original database has 2KB blocks. Your problem then is, 2014 can't mount any databases with 2KB blocks. The last version supporting 2KB block databases was 2011.1. See here.

John Murray · May 16, 2018 go to post

Do you have login credentials for WRC Online at http://wrc.intersystems.com/ ?

Once you have logged in, use the "Online Distributions" link. You'll need to contact your InterSystems account manager to request a license key.

Alternatively, get your hands on InterSystems IRIS in the cloud here.

John Murray · May 16, 2018 go to post

Might be wise to amend your code so you check the status code returned by each of the methods you're calling.

John Murray · May 15, 2018 go to post

The TROLLBACK command doesn't automatically release LOCKs that were acquired within the transaction. The TROLLBACK documentation is a bit confusing in this regard. At one point it says this:

Then later on the same page this text seems to say that both TROLLBACK and TCOMMIT do release locks.

Jordi, in your example:

TSTART

Do ##class(MyTable).%OpenId(<TableID>, 4) (This internally is creating a Lock +^User.MyTable(<TableID>)

TROLLBACK (This action removes the previous lock)

I don't think it's the TROLLBACK that's releasing the lock, but rather the destruction of the oref that the %OpenId method created. Indeed, if tested exactly as you wrote it that oref doesn't even get stored in a local variable, so ceases to exist as soon as the method call completes.