Archiver Cannot Evaluate Custom Idoc Script Condition In a Rule; Error: "Could not find the parameter 'IdcService'" (Doc ID 806371.1)

Last updated on MAY 17, 2017

Applies to:

Oracle WebCenter Content - Version 10.1.3.3.1 to 10.1.3.3.4 [Release 10gR3]
Information in this document applies to any platform.

Symptoms

Create a global rule (for example, to hide the dDocAuthor field).  You only want the global rule to fire on Info and Update fields, so set the condition:

(dpAction like "Info" or dpAction like "Update")


You also want the rule to fire when you update Folder information, so add COLLECTION_EDIT to the condition clause like this:

( (dpAction like "Info" or dpAction like "Update") or strEquals(IdcService,"COLLECTION_EDIT"))


The Rule works as expected.  dDocAuthor is hidden on the Doc Info and Update pages for content, and on the Update Folder Info page.

Now create an Archive and export some content.  This also works as expected.

However, when you try to import the content back in, the import fails and you get an error as follows:

Import error for archive 'test' in collection '10gr3_2': Unable to evaluate the activation condition script for the rule Hide_Author. Evaluated value: <$if ( (dpAction like "Info" or dpAction like "Update") or strEquals(IdcService,"COLLECTION_EDIT"))$> <$isActive=1$> <$endif$>. Offset in runtime evaluation is at character 70. Could not find the parameter 'IdcService'&#8206;. Details
An error has occurred. The stack trace below shows more information.

!csImportErrorForArchiveInCollection,test,10gr3_2!$!csDpComputeActivation,Hide_Author!csDynHTMLArgumentMessage2,70,<$if ( (dpAction like "Info" or dpAction like "Update") or strEquals(IdcService\,"COLLECTION_EDIT"))$> <$isActive=1$> <$endif$>!syParameterNotFound,IdcService!$intradoc.common.ServiceException:
!csDpComputeActivation,Hide_Author!csDynHTMLArgumentMessage2,70,<$if ((dpAction like "Info" or dpAction like "Update") or strEquals(IdcService\,"COLLECTION_EDIT"))$> <$isActive=1$> <$endif$>!syParameterNotFound,IdcService!$

at intradoc.server.DocProfileStates.computeIsRuleActivated(DocProfileStates.java:615)
at intradoc.server.DocProfileStates.evaluateGlobalRulesAndProfile(DocProfileStates.java:267)
at intradoc.server.DocProfileStates.loadDocumentProfile(DocProfileStates.java:181)
at intradoc.server.DocProfileManager.loadDocumentProfile(DocProfileManager.java:252)
at intradoc.server.DocServiceHandler.validateCheckinData(DocServiceHandler.java:1237)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at intradoc.common.IdcMethodHolder.invokeMethod(ClassHelperUtils.java:466)
at intradoc.common.ClassHelperUtils.executeMethodReportStatus(ClassHelperUtils.java:142)
at intradoc.server.ServiceHandler.executeAction(ServiceHandler.java:77)
at intradoc.server.Service.doCodeEx(Service.java:490)
at intradoc.server.Service.doCode(Service.java:472)
at intradoc.server.ServiceRequestImplementor.doAction(ServiceRequestImplementor.java:1353)
at intradoc.server.Service.doAction(Service.java:452)
at intradoc.server.ServiceRequestImplementor.doActions(ServiceRequestImplementor.java:1194)
at intradoc.server.Service.doActions(Service.java:447)
at intradoc.server.ServiceRequestImplementor.executeSubServiceCode(ServiceRequestImplementor.java:1064)
at intradoc.server.Service.executeSubServiceCode(Service.java:3459)
at intradoc.server.ServiceRequestImplementor.executeServiceEx(ServiceRequestImplementor.java:942)
at intradoc.server.Service.executeServiceEx(Service.java:3454)
at intradoc.server.Service.executeService(Service.java:3438)
at intradoc.server.ArchiveCheckinHandler.processCheckinArchive(ArchiveCheckinHandler.java:140)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at intradoc.common.IdcMethodHolder.invokeMethod(ClassHelperUtils.java:466)
at intradoc.common.ClassHelperUtils.executeMethodReportStatus(ClassHelperUtils.java:142)
at intradoc.server.ServiceHandler.executeAction(ServiceHandler.java:77)
at intradoc.server.Service.doCodeEx(Service.java:490)
at intradoc.server.Service.doCode(Service.java:472)
at intradoc.server.ServiceRequestImplementor.doAction(ServiceRequestImplementor.java:1353)
at intradoc.server.Service.doAction(Service.java:452)
at intradoc.server.ServiceRequestImplementor.doActions(ServiceRequestImplementor.java:1194)
at intradoc.server.Service.doActions(Service.java:447)
at intradoc.server.ServiceRequestImplementor.executeActions(ServiceRequestImplementor.java:1114)
at intradoc.server.Service.executeActions(Service.java:433)
at intradoc.server.ServiceRequestImplementor.doRequestInternalEx(ServiceRequestImplementor.java:722)
at intradoc.server.Service.doRequestInternal(Service.java:1726)
at intradoc.server.archive.ArchiveHandler.executeCommand(ArchiveHandler.java:1464)
at intradoc.server.archive.ArchiveHandler.processBatch(ArchiveHandler.java:2331)
at intradoc.server.archive.ArchiveHandler.importExportFile(ArchiveHandler.java:1920)
at intradoc.server.archive.ArchiveHandler.doImport(ArchiveHandler.java:1757)
at intradoc.server.archive.ArchiveHandler.doArchiving(ArchiveHandler.java:259)
at intradoc.server.archive.ArchiverMonitor.doArchiving(ArchiverMonitor.java:541)
at intradoc.server.archive.ArchiverMonitor$4.run(ArchiverMonitor.java:626)
at java.lang.Thread.run(Thread.java:595)

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms