Error thrown while executing JCo from Lotus domino

I am trying to use JCo in Java agents in a lotus domino application. Here is my code:(This Java agent calls a Remote enabled function module in SAP which gives the sum of two given numbers)
import lotus.domino.*;
import java.util.*;
import java.io.*;
import com.sap.mw.jco.*;
public class JavaAgent extends AgentBase
private static JCO.Client jClient;
public JCO.Client getJCOClient(String poolName) throws IOException, JCO.Exception
System.out.println("Inside getJCOClient method");
System.out.println("Pool Name : "+ poolName);
boolean poolExists = false;
JCO.PoolManager poolManager = JCO.PoolManager.singleton();
String poolNames[] = poolManager.getPoolNames();
// To check whether the given pool name already exists
if(poolNames != null)
for(int poolIter = 0;poolIter<poolNames.length;poolIter++)
if(poolNames[poolIter].equals(poolName))
System.out.println("POOL ID =====>> "+poolName);
System.out.println("POOL NAMES["+ poolIter "] ========>>"poolNames[poolIter]);
poolExists = true;
break;
String s = String.valueOf( poolExists );
System.out.println("pool Exists :" + s );
if(poolExists == false)
try
int maxConnections = 50;
String JCOClient = "111";
String user = "apabap4";
String password = "sap123";
String language = "en";
String ashost = "172.25.10.68";
String sysnr = "00";
//To create an instance of a client pool to the remote SAP system
System.out.println("Before addClientPool");
System.out.println("Pool Name : " + poolName);
JCO.addClientPool(poolName,maxConnections,JCOClient,user,password,language,ashost,sysnr);
// JCO.createClient(JCOClient, user,password,language, "172.25.10.68");
System.out.println("New Connection Pool Created");
catch(JCO.Exception jcoe)
throw new JCO.Exception(jcoe.getGroup(),jcoe.getKey(),"Error in client pool creation "+jcoe.toString());
try
//getClient() method returns a client connection from the specified spool
jClient = JCO.getClient(poolName);
catch(JCO.Exception jcoe1)
throw new JCO.Exception(jcoe1.getGroup(),jcoe1.getKey(),"Error in getting JCO client "+jcoe1.toString());
return jClient;
// End of method getJCOClient()
public void releaseJCOClient() throws JCO.Exception
try
JCO.releaseClient(jClient);
catch(JCO.Exception jcoe2)
throw new JCO.Exception(jcoe2.getGroup(),jcoe2.getKey(),"Error in releasing client "+jcoe2.toString());
public void NotesMain()
try {
Session session = getSession();
AgentContext agentContext = session.getAgentContext();
Document doc = agentContext.getDocumentContext();
JavaAgent jcoObj = new JavaAgent();
JCO.Client jClient = null;
String poolId = new String("EG_POOL");
IFunctionTemplate ifun;//For function object
JCO.Function func;
JCO.ParameterList importParams,exportParams,tableParams;
try{
jClient = jcoObj.getJCOClient(poolId);
System.out.println("After Getting Connection");
System.out.println("Attributes:" + jClient.getAttributes());
//Create a repository object
JCO.Repository mRepository = new JCO.Repository("myJCO_REPOSITORY", jClient);
//Creating a function object
ifun = mRepository.getFunctionTemplate("ZSUM");// The Function Name
func = ifun.getFunction();
System.out.println("Function name " + func.getName());
//To get the import parameters in the function module
importParams = func.getImportParameterList();
System.out.println("Import parameters"+ importParams);
importParams.appendValue("OPERAND1",importParams.TYPE_INT,4,"25");
importParams.appendValue("OPERAND2",importParams.TYPE_INT,4,"25");
jClient.execute(func);//Executing the function
//To get the export parameters in the function module
exportParams = func.getExportParameterList();
System.out.println("Export parameters" + exportParams);
int sumVl = exportParams.getInt("SUM");
Integer sumValue = new Integer(sumVl);
System.out.println("Sum Value" + sumValue);
doc.replaceItemValue("txtSum", sumValue.toString());
//releaseJCOClient();
catch(IOException ioe)
ioe.printStackTrace();
catch(JCO.Exception jcoe1)
jcoe1.printStackTrace();
} catch(Exception e) {
e.printStackTrace();
While executing this agent I am getting the following exception.
08/25/2004 06:27:45 PM HTTP JVM: java.lang.ExceptionInInitializerError: JCO.classInitialize(): Could not load middleware layer 'com.sap.mw.jco.rfc.MiddlewareRFC' Native Library C:\Lotus\Domino\sapjcorfc.dll already loaded in another classloader
08/25/2004 06:27:45 PM HTTP JVM: at com.sap.mw.jco.JCO.<clinit>(Unknown Source)
08/25/2004 06:27:45 PM HTTP JVM: at JCoCallTrans.getJCOClient(JCoCallTrans.java:42)
08/25/2004 06:27:45 PM HTTP JVM: at JCoCallTrans.NotesMain(JCoCallTrans.java:88)
08/25/2004 06:27:45 PM HTTP JVM: at lotus.domino.AgentBase.runNotes(Unknown Source)
08/25/2004 06:27:45 PM HTTP JVM: at lotus.domino.NotesThread.run(NotesThread.java:208)
08/25/2004 06:27:45 PM HTTP JVM: Error cleaning up agent threads
Also I have placed the jco.jar in lib of jvm in Domino directory i.e.,
Lotus\Domino\jvm\lib and
sapjcorfc.dll and librfc32.dll in system32 of WINNT folder.
Kindly help me to rectify this problem
Arokiaraj.S

Hi,
It is clearly an issue in your map. You can test your map out of Orchestration to make sure it is working.
"Exception has been thrown by the target of an invocation" is a very generic exception. you
need the inner exception to see the actual error. You can also try to test the map in the MapTester tool. It also shows also the inner exception. It's designed for BizTalk 2010 but with the .exe file you maybe also can test BizTalk 2006 maps,.
http://code.msdn.microsoft.com/Execute-a-BizTalk-map-from-26166441
If this answers your question please mark as answer. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply.

Similar Messages

  • Jco exception thrown while executing function "BICS_PROV_OPEN" against syst

    Hi,
         Am implementing SAP EP, BI Integration. The BI Querys are running fine, but when i try to run a BEx Application Query am thrown with this exception in portal.
    Exception caught: com.sap.ip.bi.base.exception.BIBaseRuntimeException: Jco exception thrown while executing function "BICS_PROV_OPEN" against system "SAP_BW" com.sap.ip.bi.base.exception.BIBaseRuntimeException: Jco exception thrown while executing function "BICS_PROV_OPEN" against system "SAP_BW" at
    I've done all the configuration for the integration and the BI Diagnostic tool is showing all the configurations to GREEN.
    Please help me on this...
    Regards,
    mcsekar

    Exception caught: com.sap.mw.jco.JCO$Exception: (104) RFC_ERROR_SYSTEM_FAILURE: The current application triggered a termination with a short dump. com.sap.mw.jco.JCO$Exception: (104) RFC_ERROR_SYSTEM_FAILURE: The current application triggered a termination with a short dump. at com.sap.mw.jco.MiddlewareJRfc.generateJCoException(MiddlewareJRfc.java:516) at com.sap.mw.jco.MiddlewareJRfc$Client.execute(MiddlewareJRfc.java:1514) at com.sap.mw.jco.JCO$Client.execute(JCO.java:3980) at com.sap.mw.jco.JCO$Client.execute(JCO.java:3417) at com.sap.ip.bi.base.application.service.rfcproxy.impl.jco640.Jco640Proxy.executeFunction(Jco640Proxy.java:362) at com.sap.ip.bi.base.application.service.rfcproxy.impl.jco640.Jco640Function.executeRfc(Jco640Function.java:75) at com.sap.ip.bi.base.application.service.rfcproxy.base.RfcFunction.execute(RfcFunction.java:46) at com.sap.ip.bi.bics.dataaccess.resource.impl.bi.selector.variableprocessor.RfcServiceWithVariables.executeCreationFunctionForVariableHandling(RfcServiceWithVariables.java:64) at com.sap.ip.bi.bics.dataaccess.resource.impl.bi.selector.ProviderSelectionObject.isApplicable(ProviderSelectionObject.java:339) at com.sap.ip.bi.base.application.impl.Application.checkAndCreateService(Application.java:709) at com.sap.ip.bi.base.application.impl.Application.createService(Application.java:634) at
    Exception caught: com.sap.ip.bi.base.exception.BIBaseRuntimeException: Jco exception thrown while executing function "BICS_PROV_OPEN" against system "SAP_BW" com.sap.ip.bi.base.exception.BIBaseRuntimeException: Jco exception thrown while executing function "BICS_PROV_OPEN" against system "SAP_BW" at com.sap.ip.bi.base.application.service.rfcproxy.base.RfcFunction.execute(RfcFunction.java:48) at com

  • Error encountered while executing the transform

    My message failed at orchestration with the following error. Kindly help in finding the issue.
    xlang/s engine event log entry: Uncaught exception (see the 'inner exception' below) has suspended an instance of service 'Ibox.UNEDIFACT.CODECO.Orchestration.CodecoDownload(df91e55f-c6aa-914d-f042-acdb45bdcaf4)'.
    The service instance will remain suspended until administratively resumed or terminated.
    If resumed the instance will continue from its last persisted state and may re-throw the same unexpected exception.
    InstanceId: cc8fac84-47dc-4d31-be15-80c9f86ffaac
    Shape name: CodecoMapping
    ShapeId: 32b0a92d-82f7-4b3a-8e22-a94b53bf2804
    Exception thrown from: segment 1, progress 22
    Inner exception: Error encountered while executing the transform Ibox.UNEDIFACT.CODECO.Orchestration.CodecoMap. Error:Transformation failed..
    Exception type: XTransformationFailureException
    Source: Microsoft.XLANGs.Engine
    Target Site: Void ApplyInMemoryTransform(System.Type, Microsoft.XLANGs.RuntimeTypes.TransformMetaData, System.Object[], System.IO.Stream[])
    The following is a stack trace that identifies the location where the exception occured
       at Microsoft.XLANGs.Core.Service.ApplyInMemoryTransform(Type mapRef, TransformMetaData trfMetaData, Object[] outParams, Stream[] inStreams)
       at Microsoft.XLANGs.Core.Service.ApplyTransform(Type mapRef, Object[] outParams, Object[] inParams)
       at Ibox.UNEDIFACT.CODECO.Orchestration.CodecoDownload.segment1(StopConditions stopOn)
       at Microsoft.XLANGs.Core.SegmentScheduler.RunASegment(Segment s, StopConditions stopCond, Exception& exp)
    Additional error information:
            Exception has been thrown by the target of an invocation.
    Exception type: TargetInvocationException
    Source: mscorlib
    Target Site: System.Object InvokeMethod(System.Object, System.Object[], System.Signature, Boolean)
    The following is a stack trace that identifies the location where the exception occured
       at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
       at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
       at Microsoft.XLANGs.BaseTypes.CompiledXsltWrapperTransform.Transform(IXPathNavigable input, XsltArgumentList arguments, XmlWriter results, XmlResolver resolver)
       at Microsoft.XLANGs.BaseTypes.CompiledXsltWrapperTransform.Transform(IXPathNavigable input, XsltArgumentList arguments, Stream output, XmlResolver resolver)
       at Microsoft.XLANGs.Core.Service.ApplyInMemoryTransform(Type mapRef, TransformMetaData trfMetaData, Object[] outParams, Stream[] inStreams)
    Additional error information:
            Attribute and namespace nodes cannot be added to the parent element after a text, comment, pi, or sub-element node has already been added.
    Exception type: XslTransformException
    Source: System.Data.SqlXml
    Target Site: Void ThrowInvalidStateError(System.Xml.XPath.XPathNodeType)
    The following is a stack trace that identifies the location where the exception occured
       at System.Xml.Xsl.Runtime.XmlQueryOutput.ThrowInvalidStateError(XPathNodeType constructorType)
       at System.Xml.Xsl.Runtime.XmlQueryOutput.ConstructInEnumAttrs(XPathNodeType rootType)
       at System.Xml.Xsl.Runtime.XmlQueryOutput.WriteStartAttribute(String prefix, String localName, String ns)
       at <xsl:template name="compiler:generated"> (36)(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}runtime, XPathNavigator {urn:schemas-microsoft-com:xslt-debug}current, Double {http://schemas.microsoft.com/BizTalk/2003/var}var:v237,
    Boolean {http://schemas.microsoft.com/BizTalk/2003/var}var:v239, Boolean {http://schemas.microsoft.com/BizTalk/2003/var}var:v240, Boolean {http://schemas.microsoft.com/BizTalk/2003/var}var:v242, Boolean {http://schemas.microsoft.com/BizTalk/2003/var}var:v244,
    Boolean {http://schemas.microsoft.com/BizTalk/2003/var}var:v246, Boolean {http://schemas.microsoft.com/BizTalk/2003/var}var:v248, Boolean {http://schemas.microsoft.com/BizTalk/2003/var}var:v250, Boolean {http://schemas.microsoft.com/BizTalk/2003/var}var:v252,
    Boolean {http://schemas.microsoft.com/BizTalk/2003/var}var:v255, Boolean {http://schemas.microsoft.com/BizTalk/2003/var}var:v256, Boolean {http://schemas.microsoft.com/BizTalk/2003/var}var:v258, Boolean {http://schemas.microsoft.com/BizTalk/2003/var}var:v259,
    Boolean {http://schemas.microsoft.com/BizTalk/2003/var}var:v261, Boolean {http://schemas.microsoft.com/BizTalk/2003/var}var:v262, Boolean {http://schemas.microsoft.com/BizTalk/2003/var}var:v264, Boolean {http://schemas.microsoft.com/BizTalk/2003/var}var:v265,
    Boolean {http://schemas.microsoft.com/BizTalk/2003/var}var:v267, Boolean {http://schemas.microsoft.com/BizTalk/2003/var}var:v268, Boolean {http://schemas.microsoft.com/BizTalk/2003/var}var:v271, Boolean {http://schemas.microsoft.com/BizTalk/2003/var}var:v272,
    Boolean {http://schemas.microsoft.com/BizTalk/2003/var}var:v281, Boolean {http://schemas.microsoft.com/BizTalk/2003/var}var:v283, Boolean {http://schemas.microsoft.com/BizTalk/2003/var}var:v284, Boolean {http://schemas.microsoft.com/BizTalk/2003/var}var:v286,
    Boolean {http://schemas.microsoft.com/BizTalk/2003/var}var:v287, Boolean {http://schemas.microsoft.com/BizTalk/2003/var}var:v289, Boolean {http://schemas.microsoft.com/BizTalk/2003/var}var:v290, Boolean {http://schemas.microsoft.com/BizTalk/2003/var}var:v292,
    String {http://schemas.microsoft.com/BizTalk/2003/var}var:v295)
       at <xsl:template name="compiler:generated"> (12)(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}runtime, XPathNavigator {urn:schemas-microsoft-com:xslt-debug}current)
       at <xsl:template match="/s2:Root">(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}runtime, XPathNavigator {urn:schemas-microsoft-com:xslt-debug}current)
       at <xsl:template match="/">(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}runtime, XPathNavigator {urn:schemas-microsoft-com:xslt-debug}current)
       at Root(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}runtime)
       at Execute(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}runtime)
       at System.Xml.Xsl.XmlILCommand.Execute(Object defaultDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlSequenceWriter results)
       at System.Xml.Xsl.XmlILCommand.Execute(Object defaultDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlWriter writer)
       at System.Xml.Xsl.XslCompiledTransform.Transform(IXPathNavigable input, XsltArgumentList arguments, XmlWriter results, XmlResolver documentResolver)

    Hi,
    It is clearly an issue in your map. You can test your map out of Orchestration to make sure it is working.
    "Exception has been thrown by the target of an invocation" is a very generic exception. you
    need the inner exception to see the actual error. You can also try to test the map in the MapTester tool. It also shows also the inner exception. It's designed for BizTalk 2010 but with the .exe file you maybe also can test BizTalk 2006 maps,.
    http://code.msdn.microsoft.com/Execute-a-BizTalk-map-from-26166441
    If this answers your question please mark as answer. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply.

  • An unknown error occurred while executing the PowerShell script:

    Hello all,
    Not the most descriptive title, granted. I'm hoping this may prompt the next version toprovide additional valuable content.
    Kindly requesting any help on this problem. I'm running VMM 2012 R2 version 3.2.7668
    When I try to look at properties of an existing Private Cloud, I get this error, only if I "look" at certain attributes. If I stay away from the specific attributes, everything is hunky dory. For reasons unknown, after I get this error, I have
    to exit and go back into VMM in order to get anything else to run.
    The text in the error dialogue box is not entirely applicable because I was connected to the VMM server and will connect again, when I exit/relaunch.
    An unknown error occurred while executing the PowerShell script:
    The connection to the VMM management server scvmm2.mmmmmm.com was lost.
    Ensure that scvmm2.mmmmmm.com is online and that you can access the server remotely from your computer. Then connect to scvmm2.mmmmmm.com and try the command again using the new connection. Or, you can ensure that the Virtual Machine Manager service is started
    on scvmm2.mmmmmm.com. Then connect to scvmm2.mmmmmm.com and try the command again using the new connection. If the command fails again because of a connection failure, restart the Virtual Manager service and then try the operation again.
    Try the operation again. If the issue persists, contact Microsoft Help and Support.
    ID: 27235
    This is what I get in Events
    Warning 4/9/2015 3:27:04 PM PowerShell (Microsoft-Windows-PowerShell) 4100 Executing Pipeline
    Log Name:      Microsoft-Windows-PowerShell/Operational
    Source:        Microsoft-Windows-PowerShell
    Date:          4/9/2015 3:27:04 PM
    Event ID:      4100
    Task Category: Executing Pipeline
    Level:         Warning
    Keywords:      None
    User:          mmmmmm\paufra
    Computer:      tools-francis.mmmmmm.com
    Description:
    Error Message = The connection to the VMM management server scvmm2.mmmmmm.com was lost. (Error ID: 1610)
    Ensure that scvmm2.mmmmmm.com is online and that you can access the server remotely from your computer. Then connect to scvmm2.mmmmmm.com and try the command again using the new connection. Or, you can ensure that the Virtual Machine Manager service is started
    on scvmm2.mmmmmm.com. Then connect to scvmm2.mmmmmm.com and try the command again using the new connection. If the command fails again because of a connection failure, restart the Virtual Manager service and then try the operation again.
    Fully Qualified Error ID = 1610,Microsoft.SystemCenter.VirtualMachineManager.Cmdlets.GetSCReplicationGroupCmdlet
    Recommended Action = Ensure that scvmm2.mmmmmm.com is online and that you can access the server remotely from your computer. Then connect to scvmm2.mmmmmm.com and try the command again using the new connection. Or, you can ensure that the Virtual Machine Manager
    service is started on scvmm2.mmmmmm.com. Then connect to scvmm2.mmmmmm.com and try the command again using the new connection. If the command fails again because of a connection failure, restart the Virtual Manager service and then try the operation again.
    Context:
            Severity = Warning
            Host Name = Default Host
            Host Version = 4.0
            Host ID = 94963cd4-5979-4786-9da2-c8814de8c7c3
            Host Application = C:\Program Files\Microsoft System Center 2012 R2\Virtual Machine Manager\Bin\VmmAdminUI.exe
            Engine Version = 4.0
            Runspace ID = 359d7a46-3752-4929-8c09-0de4152d10e4
            Pipeline ID = 16
            Command Name = Get-SCReplicationGroup
            Command Type = Cmdlet
            Script Name =
            Command Path =
            Sequence Number = 91
            User = mmmmmm\paufra
            Shell ID = Microsoft.PowerShell
    User Data:
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name="Microsoft-Windows-PowerShell" Guid="{A0C1853B-5C40-4B15-8766-3CF1C58F985A}" />
        <EventID>4100</EventID>
        <Version>1</Version>
        <Level>3</Level>
        <Task>106</Task>
        <Opcode>19</Opcode>
        <Keywords>0x0</Keywords>
        <TimeCreated SystemTime="2015-04-09T22:27:04.993655700Z" />
        <EventRecordID>285</EventRecordID>
        <Correlation ActivityID="{48059811-1A63-41E1-9057-7498D0E4FC20}" />
        <Execution ProcessID="2344" ThreadID="4076" />
        <Channel>Microsoft-Windows-PowerShell/Operational</Channel>
        <Computer>tools-francis.mmmmmm.com</Computer>
        <Security UserID="S-1-5-21-4008432563-1984933819-4238309236-2721" />
      </System>
      <EventData>
        <Data Name="ContextInfo">        Severity = Warning
            Host Name = Default Host
            Host Version = 4.0
            Host ID = 94963cd4-5979-4786-9da2-c8814de8c7c3
            Host Application = C:\Program Files\Microsoft System Center 2012 R2\Virtual Machine Manager\Bin\VmmAdminUI.exe
            Engine Version = 4.0
            Runspace ID = 359d7a46-3752-4929-8c09-0de4152d10e4
            Pipeline ID = 16
            Command Name = Get-SCReplicationGroup
            Command Type = Cmdlet
            Script Name =
            Command Path =
            Sequence Number = 91
            User = mmmmmm\paufra
            Shell ID = Microsoft.PowerShell
    </Data>
        <Data Name="UserData">
        </Data>
        <Data Name="Payload">Error Message = The connection to the VMM management server scvmm2.mmmmmm.com was lost. (Error ID: 1610)
    Ensure that scvmm2.mmmmmm.com is online and that you can access the server remotely from your computer. Then connect to scvmm2.mmmmmm.com and try the command again using the new connection. Or, you can ensure that the Virtual Machine Manager service is started
    on scvmm2.mmmmmm.com. Then connect to scvmm2.mmmmmm.com and try the command again using the new connection. If the command fails again because of a connection failure, restart the Virtual Manager service and then try the operation again.
    Fully Qualified Error ID = 1610,Microsoft.SystemCenter.VirtualMachineManager.Cmdlets.GetSCReplicationGroupCmdlet
    Recommended Action = Ensure that scvmm2.mmmmmm.com is online and that you can access the server remotely from your computer. Then connect to scvmm2.mmmmmm.com and try the command again using the new connection. Or, you can ensure that the Virtual Machine Manager
    service is started on scvmm2.mmmmmm.com. Then connect to scvmm2.mmmmmm.com and try the command again using the new connection. If the command fails again because of a connection failure, restart the Virtual Manager service and then try the operation again.
    </Data>
      </EventData>
    </Event>

    Hi Sir,
    First , please try to run the VMM configuration analyzer on that computer :
    http://www.microsoft.com/en-us/download/details.aspx?id=41555
    In addition , please try to use "VMMTrace" mentioned in following article to collect trace log and find some useful information :
    http://blogs.technet.com/b/jonjor/archive/2011/01/07/vmmtrace-simplified-scvmm-tracing.aspx
    Best Regards,
    Elton Ji
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected] .

  • [0098]SQL*Plus encountered oracle error 100 while executing SQL Statement

    Hi,
    i'm trying to delete duplicate records from a table and running following script. this script is triggered from a unix script. it successfully deletes the records but in the last throws following error message,
    :[0098]SQL*Plus encountered oracle error 100 while executing SQL Statement:2:Investigation required:
    can anybody please help? below is the script.
    DECLARE
    --CURSOR FOR DUPLICATE ROWS
    CURSOR CUR_DUPLICATE_ROWS IS
    Select RMS_NOTE_ID, RMS_SUMMARY_NOTE_ID, count(*) cnt from PARTY_NOTE
    group by RMS_NOTE_ID,RMS_SUMMARY_NOTE_ID having count(*) > 1;
    var_date PARTY_NOTE.PARTY_NOTE_CREATED_DATE%TYPE;
    BEGIN
    FOR DUPLICATE_ROWS_REC IN CUR_DUPLICATE_ROWS
    LOOP
    delete from party_note
    where RMS_NOTE_ID= DUPLICATE_ROWS_REC.RMS_NOTE_ID
    and RMS_SUMMARY_NOTE_ID= DUPLICATE_ROWS_REC.RMS_SUMMARY_NOTE_ID
    and rowid not in (select max(rowid) from party_note
    where RMS_NOTE_ID= DUPLICATE_ROWS_REC.RMS_NOTE_ID and RMS_SUMMARY_NOTE_ID= DUPLICATE_ROWS_REC.RMS_SUMMARY_NOTE_ID);
    commit;
    END LOOP;
    EXCEPTION
    WHEN NO_DATA_FOUND THEN
    NULL;
    WHEN OTHERS THEN
    DBMS_OUTPUT.PUT_LINE(SQLERRM);
    ROLLBACK;
    END;

    Try this:
    delete party_note
    where  rowid not in (select max(rowid)
                         from   party_note
                         group  by rms_note_id, rms_summary_note_id
    commit;No need for cursors and loops.
    And when that's completed, consider ALTERing the table to add a unique index (or even a primary key) so you'll never need to do this again.

  • SCSM2012 Beta installation problem: An error occurred while executing a custom action:_PopulateUserRoles

    I'm installing the SCSM2012 Management Server
    component on a SQL dev box.  During the installation, the very last step (Import Management Packs) fails with this error:
    An error occurred while executing a custom action:_PopulateUserRoles
    This upgrade attempt has failed before permanent modifications were made. Upgrade has successfully rolled back to the original state of the system. Once the correction are made, you can retry upgrade for this role.
    I've already verified that the account I'm logged in with has SA access to the SQL database.  Windows 2008 R2 firewall is turned off.....
    Has anybody else run into this problem?

    I don't see anything indicative in the setup log.  The setup seems to get all the way to the part where it installs the management packs.  Then right after that is when the installation fails and it rolls back.
    From the setup log, towards the end:
    Property(S): ACTIONSUSER = NETWORK SERVICE
    Property(S): ACTIONSDOMAIN = NT AUTHORITY
    Property(S): ACTIONSUSER_FOR_DB = NETWORK SERVICE
    Property(S): ACTIONSDOMAIN_FOR_DB = NT AUTHORITY
    Property(S): SOURCEDIR = C:\SCSM\SCSM2012_Beta\Setup\Server\
    Property(S): SourcedirProduct = {295201AE-EAB6-416C-8252-7C065243EF55}
    Property(S): ProductToBeRegistered = 1
    MSI (s) (9C:54) [17:33:22:951]: Note: 1: 1708
    MSI (s) (9C:54) [17:33:22:951]: Product: Microsoft System Center Service Manager 2012 -- Installation failed.
    MSI (s) (9C:54) [17:33:22:959]: Windows Installer installed the product. Product Name: Microsoft System Center Service Manager 2012. Product Version: 7.5.1354.0. Product Language: 0. Manufacturer: Microsoft Corporation. Installation success or error status:
    1603.
    MSI (s) (9C:54) [17:33:23:010]: Deferring clean up of packages/files, if any exist
    MSI (s) (9C:54) [17:33:23:013]: MainEngineThread is returning 1603
    MSI (s) (9C:20) [17:33:23:061]: RESTART MANAGER: Session closed.
    MSI (s) (9C:20) [17:33:23:061]: No System Restore sequence number for this installation.
    === Logging stopped: 11/7/2011  17:33:22 ===
    MSI (s) (9C:20) [17:33:23:065]: User policy value 'DisableRollback' is 0
    MSI (s) (9C:20) [17:33:23:065]: Machine policy value 'DisableRollback' is 0
    MSI (s) (9C:20) [17:33:23:065]: Incrementing counter to disable shutdown. Counter after increment: 0
    MSI (s) (9C:20) [17:33:23:065]: Note: 1: 1402 2: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\Rollback\Scripts 3: 2
    MSI (s) (9C:20) [17:33:23:066]: Note: 1: 1402 2: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\Rollback\Scripts 3: 2
    MSI (s) (9C:20) [17:33:23:067]: Decrementing counter to disable shutdown. If counter >= 0, shutdown will be denied.  Counter after decrement: -1
    MSI (s) (9C:20) [17:33:23:067]: Restoring environment variables
    MSI (s) (9C:20) [17:33:23:089]: Destroying RemoteAPI object.
    MSI (s) (9C:28) [17:33:23:089]: Custom Action Manager thread ending.
    MSI (c) (C8:B4) [17:33:23:144]: Decrementing counter to disable shutdown. If counter >= 0, shutdown will be denied.  Counter after decrement: -1
    MSI (c) (C8:B4) [17:33:23:175]: MainEngineThread is returning 1603
    === Verbose logging stopped: 11/7/2011  17:33:23 ===

  • Unexpected error [0x8CFB0B0] while executing command 'Get-LinkedRoleGroupForLogonUser'

    Hi Experts....
    I am facing a weired error when connecting to Exchange On-Premises...
    I have 2 virtual machines in Virtual-Box .On 1st machine I has installed Active Directory..
    On 2nd machine I have to install Exchange Server.I have joined the second machine in the domain.
    After Installing all the pre-requisites and updates for Exchange when I open the exchange management console I faced the following error....
    Initialization Failed
    The following error occurred when retreiving user information for 'ABC\Administrator':
    Unexpected error [0x8CFB0B0] while executing command 'Get-LinkedRoleGroupForLogonUser'
    Click here to Retry
    Can anyone help me in this regard....!!!!
    Thank You...!!!!

    Hi,
    From the error description, I recommend open C:\Program Files\Microsoft\Exchange Server\V14\RemoteScripts, check the ConsoleInitialize.ps1 file, find "function global:Get-LinkedRoleGroupForLogonUser()", here is the right file of this part for your reference.
    foreach ($sid in $sids)
             try
               $accountName = $sid.Translate([System.Security.Principal.NTAccount]).Value
             catch
               continue
             if ($accountName -ne $null)
               foreach ($roleGroup in $allLinkedRoleGroups)
                 if ([string]::Compare($roleGroup.LinkedGroup,$accountName,$True) -eq 0)
                   $roleGroup
    Hope it helps.
    Best regards,
    Amy
    Amy Wang
    TechNet Community Support

  • App-V 5: Error encountered while executing command Mount-AppvClientPackage

    I am getting this error in which no Google search reveals anyone else as having reported it anywhere.  In fact, after having posted this, it was the only search result that came up with either of these two event ID's or errors.
    I am trying to sequence an in house application. It's a manual install. The application runs perfectly prior to creating the package so I am not sure what this "specified file" is that it can't find.  It says to refer to the AppV Client Event
    Log for more details. This event was *IN* the AppV Client Event Log and there was another event along side it.
    Event ID 9001
    Error encountered while executing command Mount-AppvClientPackage -PackageId eb77be98-bc44-45fd-a0e5-95e0c315808b -VersionId c5013ec7-0456-401b-b99e-d988d97bfa55. Error: Application Virtualization Service failed to complete requested operation. 
    Operation attempted: Mount Package. 
    Windows Error: 0x80070002 - The system cannot find the file specified
    Error module: Streaming Manager. Internal error detail: 74F0262C80070002. 
    Please consult AppV Client Event Log for more details.
    Event ID 14016
    The package {eb77be98-bc44-45fd-a0e5-95e0c315808b}
    version {c5013ec7-0456-401b-b99e-d988d97bfa55} could not be mounted
    because the network connection has been lost or is unavailable.  Check your network connection and try again.
    The network connection is still quite alive on the client and the firewall is disabled on the App-V server. I can still reach and view the xml file when browsing to the web service on the App-V server.  I can also run Sync-AppVPublishingServer from
    powershell without error.
    For more inside info on the app: 
    1. It is a manual install. A directory is simply copied to the hard drive manually.
    2. An ocx file gets registered from the Syswow64 directory.
    3. MySQL 5.1.13 client is installed.
    4. Shortcuts are created.
    5. A system DSN is created using C:\Windows\SysWOW64\odbcad32.exe
    6. The app runs perfectly on the sequencer prior to creating and publishing.
    UPDATE:
    Get-AppVClientPackage reveals this:
    PackageId            : eb77be98-bc44-45fd-a0e5-95e0c315808b
    VersionId            : c5013ec7-0456-401b-b99e-d988d97bfa55
    Name                 : Tietan
    Version              : 0.0.0.1
    Path                 : \\wuspappv01\appv1\TietanProd\Tietan.appv
    IsPublishedToUser    : True
    UserPending          : False
    IsPublishedGlobally  : False
    GlobalPending        : False
    InUse                : False
    InUseByCurrentUser   : False
    PackageSize          : 217155655
    PercentLoaded        : 0
    IsLoading            : False
    HasAssetIntelligence : True
    The path is accessible from the client server. I can see the file. It's there.

    Hello,
    If you execute get-appvclientpackage
    And then check what is the value for Path for the package you have an issue with.
    Most likely the error message means that the file in Path isn't reachable.
    As indicated here;
    The package {eb77be98-bc44-45fd-a0e5-95e0c315808b}
    version {c5013ec7-0456-401b-b99e-d988d97bfa55} could not be mounted
    because the network connection has been lost or is unavailable.  Check your network connection and try again.
    Nicke Källén | The Knack| Twitter:
    @Znackattack

  • Error during Portal Setup: An error occurred while executing a custom action:_GrantLocalPermissionsToWCSAccount

    Error:
    Configure Portal Setup
    An error occurred while executing a custom action:_GrantLocalPermissionsToWCSAccount.11EE91AB_EABF_48A6_9973_4DCD73190AC6
    This upgrade attempt has failed before permanent modifications were made. Upgrade has successfully rolled back to the original state of the system. Once the correction are made, you can retry upgrade for this role.
    Errors in the Log:
    MSI (s) (38:14) [21:30:36:094]: NOTE: custom action _GrantLocalPermissionsToWCSAccount.11EE91AB_EABF_48A6_9973_4DCD73190AC6 unexpectedly closed the hInstall handle (type MSIHANDLE) provided to it. The custom action should be fixed to not close that handle.
    CustomAction _GrantLocalPermissionsToWCSAccount.11EE91AB_EABF_48A6_9973_4DCD73190AC6 returned actual error code 1603 (note this may not be 100% accurate if translation happened inside sandbox)
    MSI (s) (38:94) [21:30:36:115]: User policy value 'DisableRollback' is 0
    MSI (s) (38:14) [21:30:36:094]: NOTE: custom action _GrantLocalPermissionsToWCSAccount.11EE91AB_EABF_48A6_9973_4DCD73190AC6 unexpectedly closed the hInstall handle (type MSIHANDLE) provided to it. The custom action should be fixed to not close that handle.
    CustomAction _GrantLocalPermissionsToWCSAccount.11EE91AB_EABF_48A6_9973_4DCD73190AC6 returned actual error code 1603 (note this may not be 100% accurate if translation happened inside sandbox)
    MSI (s) (38:94) [21:30:36:115]: User policy value 'DisableRollback' is 0
    I cannot get past this error. I am running Sharepoint Foundation 2010 with Sp1. This is on a Windows Server 2008 R2 Server +Sp1.
    Any ideas?
    David Baur

    I finally figured this out, The issue was that I had put in the Self Service Portal Computer Name and Service account into the Service Manager SQL as SysAdmin, once I removed it flew through just fine.
    David Baur

  • "An error occurred while extracting files from the package "BaseSystem.pkg".

    Hello!
    I have a
    MacBookPro5,5
    Prozessortyp:Intel Core 2 Duo
    Prozessorgeschwindigkeit:2.26 GHz
    Anzahl der Prozessoren:1
    Gesamtzahl der Kerne:2
    L2-Cache:3 MB
    Speicher:2 GB
    Busgeschwindigkeit:1.07 GHz
    Boot-ROM-Version:MBP55.00AC.B03
    SMC-Version (System):1.47f2
    Hardware-UUID:A2DD27C4-9829-5A4D-854B-485EF8A6B20F
    Problem:
    I upgraded Leopard to Snow Leopard. Everything worked fine for a month. To free up disk space I deleted some of the iPhoto flders (modfied and original images). Everything worked still fine. Shut down the computer. Next day it was incredibly slow. At the same time the indexing was running. I stopped indexing, but stll slow. Every operation took minutes. I tried all the tricks that I found in the internet (repaired file permissions, repaired disk, cleared PRAM , moved big filed from desktop, etc.). After 24 full hours of trying all this I decided to erase the hard drive and reinstall, directly from the Snow Leopard Install disk, but it fails after downloading the packages. Below is the part of the log. Then I tried to use the old Leopard install DVD to reinstall Leopard, it then sais estimated time 12 hours or so and eventually crashed, spitting out a lot of "reportcrash" in the log. What is going on? I'm running out of options. Any advice? Would zeroing the hard drive help? If nothing else I plan to buy a new hard drive, since the only explanation I have is that there is a problem with the hard driven although the disk utility says it is OK. I need a bigger one anyway. Any ideas? Thank you!
    Aug 16 05:17:31 localhost OSInstaller[139]: IFPKInstallElement (191 packages)
    Aug 16 05:17:35 localhost OSInstaller[139]: PackageKit: ----- Begin install -----
    Aug 16 05:17:35 localhost OSInstaller[139]: PackageKit: request=PKInstallRequest <191 packages, destination=/Volumes/Macintosh HD>
    Aug 16 05:17:36 localhost OSInstaller[139]: PackageKit: Extracting /Volumes/Macintosh HD/Mac OS X Install Data/BaseSystem.pkg (destination=/Volumes/Macintosh HD/.OSInstallSandbox-tmp/Root, uid=0)
    Aug 16 05:31:59 localhost Unknown[80]: /SourceCache/AppleFSCompression/AppleFSCompression-24.0.1/Common/DataPool.c:116 : Error: finished pool without filling it
    Aug 16 05:31:59 localhost Unknown[80]: /SourceCache/AppleFSCompression/AppleFSCompression-24.0.1/Common/commonUtils.c: 315: Error: fh_pread -1
    Aug 16 05:31:59 localhost Unknown[80]: /SourceCache/AppleFSCompression/AppleFSCompression-24.0.1/Common/StreamCompress or.c:236: Error: write failed for /Volumes/Macintosh HD/.OSInstallSandbox-tmp/Root//System/Library/Frameworks/OpenCL.framework/Versi ons/A/Resources/runtime.amdil.bc: Invalid argument
    Aug 16 05:31:59 localhost Unknown[80]: /SourceCache/AppleFSCompression/AppleFSCompression-24.0.1/Common/StreamCompress or.c:260: Error: futimes failed for /Volumes/Macintosh HD/.OSInstallSandbox-tmp/Root//System/Library/Frameworks/OpenCL.framework/Versi ons/A/Resources/runtime.amdil.bc: Invalid argument
    Aug 16 05:31:59 localhost Unknown[80]: /SourceCache/AppleFSCompression/AppleFSCompression-24.0.1/Common/StreamCompress or.c:829: Error: returning errno 22 from FinishStreamCompressorQueue
    Aug 16 05:32:10 localhost OSInstaller[139]: PackageKit: Install Failed: PKG: extracting "com.apple.pkg.BaseSystem"\nError Domain=PKInstallErrorDomain Code=110 UserInfo=0x12c8366a0 "An error occurred while extracting files from the package “BaseSystem.pkg”." Underlying Error=(Error Domain=BOMCopierFatalError Code=22 UserInfo=0x12e703300 "The operation couldn’t be completed. FinishStreamCompressorQueue error") {\n    NSFilePath = "/Volumes/Macintosh HD/.OSInstallSandbox-tmp/Root";\n    NSLocalizedDescription = "An error occurred while extracting files from the package \U201cBaseSystem.pkg\U201d.";\n    NSURL = "BaseSystem.pkg -- file://localhost/Volumes/Macintosh%20HD/Mac%20OS%20X%20Install%20Data/index.pro duct";\n    NSUnderlyingError = "Error Domain=BOMCopierFatalError Code=22 UserInfo=0x12e703300 \"The operation couldn\U2019t be completed. FinishStreamCompressorQueue error\"";\n    PKInstallPackageIdentifier = "com.apple.pkg.BaseSystem";\n}
    Aug 16 05:32:10 localhost OSInstaller[139]: install:didFailWithError:Error Domain=PKInstallErrorDomain Code=110 UserInfo=0x12c8366a0 "An error occurred while extracting files from the package “BaseSystem.pkg”." Underlying Error=(Error Domain=BOMCopierFatalError Code=22 UserInfo=0x12e703300 "The operation couldn’t be completed. FinishStreamCompressorQueue error")
    Aug 16 05:32:11 localhost OSInstaller[139]: Install failed: Die Installation ist aufgrund eines Fehlers fehlgeschlagen. Wenden Sie sich an den Hersteller der Software.
    Aug 16 05:32:13 localhost OSInstaller[139]: Allowing machine sleep.
    Aug 16 05:32:15 localhost OSInstaller[139]: Memory statistics for 'Installation ist fehlgeschlagen' pane:
    Aug 16 05:32:15 localhost OSInstaller[139]: Physical Memory Allocation:   139 MB wired,   259 MB trapped,   397 MB active,     7 MB inactive,  1246 MB free,  1650 MB usable,  2048 MB total

    It sounds to me like your Internal Hard Drive is failing.
    I recommend you buy a new one, that is a good candidate for replacing the old one, but install it in an External enclosure and Install a fresh Mac OS X on it from the DVD. You can boot your Mac from any attached drive.
    The new System can be used to get some work done, check your emails, and takes the pressure off resolving this immediately. You can also attempt to salvage files off the old drive if needed.
    Once things seem to be working, then move the new drive inside the computer. Failures at this point may be due to bad cable, which has been a problem in some of these MacBooks.
    Use security erase, write Zeroes, one pass, to re-write every block on the old drive. Any block discovered to be bad will be replaced with spares the drive holds in reserve for this purpose. If more than 10 blocks are pared on one pass, "Initialization Failed!" will be the result. Although you can try the erase again, there is some question whether you want to trust this drive with your precious data.

  • HT1222 hi i have a apple imac 27 2009 and i have purchased mountain lion but near the end it says An error occurred while running scripts from the package "mzps6175750011235388779.pkg"

    hi i have a apple imac 27 2009 and i have purchased mountain lion but near the end it says An error occurred while running scripts from the package “mzps6175750011235388779.pkg”
    can you please advise me what should i do to fix this

    Some ideas.
    https://discussions.apple.com/message/20034600#20034600

  • Receiving the error message while executing the Real Time DTP

    Hi,
    I am receiving the error message while executing the Real time DTP for Billing data.
    Error Message - Record filtered in advance as error records with the same key exist     RSM2     722
    When I check the logs below is the message I am able to see. Can someone suggest as how to proceed further.
    Diagnosis
    The existing DTP requires a serialized update because fields are updated
    non-commutatively during the processing run (for example, MOVE).
    Therefore all new data records that have the same semantic key as
    incorrect records that have not yet been corrected in earlier requests
    or earlier data packages of the same request, are filtered out after the
    extraction in a special step. In this way the system ensures that
    incorrect data records are not repeated for your changes, which may not
    contain errors themselves.
    System Response
    The data record is not updated but is written to an error stack.
    Procedure
    Procedure
    Correct all incorrect data records and update them using an error DTP.
    Procedure for System Administration
    I checked the error stack and corrected the entries and let me know as how to proceed further. I am unable to execute the Error DTP as its not allowing me to edit and has only display options.
    Regards,
    Ram

    Hi Arvindh,
    Its  write optimized DSO.. there is no option to generate SIDs.
    Hi Kiran,
    I checked the link u sent me. Here the main issue is..The function module is standard  and its not allowing me  to do enhancement  point..
    Any idea in using Badi's??
    Thanks all...

  • Get "An Error occurred while retrieving data From ProjectWebApp.." when searching content on an External Content Type

    I have set-up an ECT in SPD2013 on SP2013.  It is a SQL Data source called ProjectWebApp.   I have BCS/SSS set-up.  I can create an ECT OK in SPD.  I can add the ECT to a custom list.
    The problem is when I add a new item in the list the following error message appears in red
    An error occurred while retrieving data from ProjectWebApp. Administrators, see the server log for more information
    I cannot filter or return any results.  There is data in the DB.
    Another test I do is to try and create a new App/List using the "External List" template.  When
    I select the ECT a red message appears "External Content Types are not available".  which is odd since I can add an ECT to a list as mentioned above.
    Any ideas?
    Tx
    Andrew
    Andrew Payze

    Hi Andrew,
    Please try the option Allow unlimited length in document libraries in the column settings:
    http://littletalk.wordpress.com/2011/08/18/external-content-type-an-error-occurred-while-retrieving-data-from-a-system-administrators-see-the-server-log-for-more-information/
    If it doesn't help, please refer to the link below and raise the External content type Read List operation thresholds:
    http://lightningtools.com/bcs/business-connectivity-services-end-user-implications-part-one-threshold-limit-errors/
    Please provide error message in ULS log for further troubleshooting.
    Regards,
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected] .
    Rebecca Tu
    TechNet Community Support

  • XL reporter error occurred while executing report! Rows: 25203 Columns: 30

    An error occurred while executing report! Rows: 25203 Columns: 30 Unspecified error
    One user gets this error when trying to run a custom XL report. It works for other users(on different PCs). The user can run other XL reports successfully.

    Hello  pls
    follow below procedure
    start->my computer>cdrive>program files >sap>sap business one> remove these two files 1).AddOnsInstall.sbo and 2).AddOnsLocalRegistration.sbo and clear all ur %temp%Files,prefetch,recent files and restart and open sap then u will get connected to xl reporter add on. and u will not get any errors
    regards
    Jenny

  • Need solution for the following sync error: "iTunes could not sync calendars to the iPad "iPad name" because an error occurred while sending data from the iPad"

    Need solution for the following sync error: "iTunes could not sync calendars to the iPad "iPad name" because an error occurred while sending data from the iPad"

    I want to add that I deleted all the old back-ups and created a new back-up without any issues except sync problem.

Maybe you are looking for