Category Archives: ECM

Select all results in the ACCE search

Today I had a really stupid problem. I usually use the FEM or the Java API to do batch operations. But today I thought I would try the ACCE search, since it has a query builder like the FEM.

I built my search and launched it and it worked perfectly, which is great, and then I felt really stupid, looking at my browser and thinking, how the hell am I supposed to select all results to launch my batch operation. I didn’t see any checkbox in the header, nor a “select all” option. Of course ctrl+A doesn’t work, so how?!!

It drove me crazy for a while and I finally gave up and thought I still need something. Well this is the workaround I came up with. I have to stay it seems really weird having to do that, so if I missed something and this is actually doable from the UI please tell me!!!

To use the workaround, you need to scroll the list until the bottom to load all lines and these results won’t be selected, then open your developer tool on your browser (usually F12) and copy/paste this in the javascript console, then run it. It should check all checkboxes for you. I didn’t bother, it just clicks all checkboxes from the ACCE so after you did that and run your batch operation, you should refresh the ACCE so the other checked checkboxes do not mess with your settings or anything.

dojo.query(".dijitCheckBox").forEach(function(node, index, arr){node.click();});

Again, if there is another solution please tell me and I will be more than happy to delete this post for good!

Entry Templates inheritance not working

I had to refactor this article because it didn’t make as much sense as now in my mind when I first wrote it. This is now split in two with a main post being this one. Hopefully it will be more understandable for everyone!

Symptom

You have associated an entry template to a folder, or the ObjectStore itself. You tried to add a document into a subfolders, but your entry template never appears in the selection list of entry templates. If you go into the properties of the subfolders to see if the entry templates are correctly inherited, you can see either an empty list, or it says there are inherited entry templates but the File Types are really strange and error is displayed. Here are what you see and what you were expecting to see.

ICN_EntryTemplateIssue

What you see of one subfolder of the one you applied entry template on

ICN_EntryTemplateIssue2

What you see on a subfolder of the folder you saw the above screen shot

ICN_EntryTemplateIssue3

What you are expecting to see on your folder

Here is a video describing the problem, so you can understand better.

Cause

Continue reading

What to do after a P8 CPIT installation

After a CPIT installation, you will have a few more steps to do before your platform is fully operational. If you don’t, you will mainly have two errors:

  • A user authenticated as anonymous has attempted to access a session owned by user... in the WebSphere logs, resulting to be always disconnected in TDS console, and a really unstable platform (a lot of errors in the ACCE)
  • Failed to get configuration file WcmApiConfig.properties when trying to configure the Workflow system (along with a login window you shouldn’t get)

Here are the steps to follow. Since the new CPIT installer now has two WAS profiles (one for FileNet and the other for ICN, I will add for each step if they should be executed on server A (FileNet), B (Icn), or both (AB). In the IBM WebSphere administration console:
Continue reading

Custom MIME Type not working

Symptom

You want to use a new MIME Type in IBM Content Navigator, for example application/dita+xml. You did add a File Type filter under the settings panel from the administrator (DITA files using the dita MIME Type you just created).

ICN_customMIMEType

Then you used this file type filter to filter an entry template associated on a folder.

ICN_customMIMEType2

However the entry template is never displayed when adding a document. Instead you only see entry templates for Any type of file, or no entry template at all if you have none without filter.

ICN_customMIMEType3

Here we were expecting our entry template associated to the DITA file type filter

You’ve tried adding a MIME Type mapping to inform ICN in WebSphere virtual host, ICN’s web.xml and modify CE’s mimetypes.properties but nothing worked (well if you didn’t try these I can tell you it doesn’t).
Continue reading

Install FileNet P8 (with Composite Platform Installation Tools)

Update: This post is now super-seeded by the last version, installing FileNet P8. I will still be answering any question you might have though.

IBM came up with something that sounds really nice: The Composite Platform Installation Tools or also called CPIT. And it is true, being able to have a running platform (for test and development only) in less than one hour sounds like a dream, especially when you know how installing P8 is a nightmare. Except it never works…

And from the one hour expected, we fall back to a few days like before. It is actually impressive how many errors this thing can produce. That’s why I write this post, trying to summarize all errors that can occur.

Continue reading

Understand the Page Size parameter

Until now I thought that Page Size was really useful for queries only. As often, I was wrong… Of course it matters a lot for queries, but it actually matters when working on one object too. I discovered this when I was writing my other post on the Property Filter and did some benchmarks.

I noticed that every 500 items I had a small pause in my execution, even with using properly the Property Filters. So my dream of one light call, hoping to get my all 5000 subfolders in one light call and then iterate super fast on it wasn’t completely true.

Continue reading

Understand the FileNet property filters

Since I started to work with FileNet, I had the chance to see my share of code using the Java API, most of the time written by someone else. And something I noticed is how often people use null or 0 in the recursion argument of the FilterElement. There are positive and negative effects of using these values, but I am not sure people who writes this always knows what it does, so I thought I would explain, even if the P8 Knowledge Center documentation on this topic is quite good I have to say. But it might give you another point of view.
Continue reading

Upgrading IBM Content Navigator from 2.0.1 to 2.0.3

Since as usual, I encountered a few issues while doing an upgrade from ICN 2.0.1 to ICN 2.0.3, I thought I would describe the procedure here. Also the whole platform has been installed by a CPIT installer, therefore with all defaults settings.

Before upgrading

Backup the profile you used to configure ICN 2.0.1

cp /opt/IBM/cpit/install-scripts/profiles/NexusConfig /opt/IBM/cpit/install-scripts/profiles/NexusConfigBackup

As usual, take a snapshot of your VM before you start!
Continue reading

FileNet Enterprise Manager (FEM) – HTTPS is required

Most of the time when I deploying a sandbox platform, I don’t bother with configuring HTTPS. I had this problem for the fist tine not long ago, because as you know, with p8 5.2, the FEM became almost useless. But I needed it anyway and had this problem:

http://hostname:9080/wsi/FNCEWS40MTOM' HTTPS is required

After some research, it actually comes from WCF which requires a secured connection to work. You actually just have to install WSE, which is the ancestor of WCF and does have this requirement. This is for test platform only obviously because of the security issue, but for sandbox without security issue, it can be nice to not have to set up SSL.

You can download WSE here, install it and just try to connect again with FEM, no need to reboot or anything