XRef Issue

Hi ,
We are facing an issue with XRef inour Planning Application. We have three PlanTypes and trying to get data from One PlanType to Other Plan Type.
The issue which we are facing with XRef is as follows:
The following are dimensions in Source Plan Type(Workforce):
Account,Scenario,Version,Year,Period,Employee,Currency,Entity,State/Province,LegalEntity
The following are dimensions in Target Plan Type(BasicExpense):
Account,Scenario,Version,Year,Period,Currency,Entity,LegalEntity,Project,Product,Channel,Ledger
Scenario 1:
We are getting data in Target Plan Type (Basic Expense) when we input data in Source Plan Type (Workforce) as shown below:
Input Data at Source Plan Type (Workforce) is as follows:
Account Scenario Version Year Period Employee Currency Enity State/Province LegalEntity
HA_8000001 QF1 Version1 FY11 Jan Employee Local 10011 State/Province CA100 200$
Output Data at Target Plan Type (BasicExpense) is as follows:
Account Scenario Version Year Period Currency Entity LegalEntity Project Product Channel Ledger
HA_8000001 QF1 Version1 FY11 Jan Local 10011 CA100 0000 HP_000000 HC_00000 IFRS Planning Ledger 200$
Scenario 2:
We are not getting data in Target Plan Type (Basic Expense) when we input data in Source Plan Type (Workforce) as shown below:
Input Data at Source Plan Type (Workforce) is as follows:
Account Scenario Version Year Period Employee Currency Enity State/Province LegalEntity
HA_8000001 QF1 Version1 FY11 Jan 12664 Local 10011 State/Province CA100 200$
Output Data at Target Plan Type (BasicExpense) is as follows:
Account Scenario Version Year Period Currency Entity LegalEntity Project Product Channel Ledger
HA_8000001 QF1 Version1 FY11 Jan Local 10011 CA100 0000 HP_000000 HC_00000 IFRS Planning Ledger <NoData>
Can anyone suggest us how to overcome this problem.
The version which we are using Hyperion Planning is as follows:
Hyperion Planning : 11.1.1.3
Planning Application Type : Classic
Thanks,
Suresh.

One of the drawbacks of using xref is that it requires the block you are copying data to to exist. If you turn on the createblockoneq in the calc script, it will solve your problem if it is indeed a block creation issue. However, this dramatically slows down the calculation.
In the past, I have normally exported the data from one plan type and imported to the target plan type to speed up the process. If these are xref function created by planning, you can tell planning to NOT create them with UDAs. If you are using a newer version of Essbase/Planning, you can explore the XWRITE function. This does the same thing, but you won't have the block creation issue because you are fixing on the source, and SENDING data to the target. XREF fixes on the target and PULLS data from the source.
There is an article explaining this in more detail at http://in2hyperion.com/post/2012/05/02/XWRITE_XREF.aspx.
Kyle Goodfriend
http://www.in2hyperion.com
h4. Please make sure to assign helpful/answered to responses if applicable - it rewards those who help and benefits the user community.

Similar Messages

  • XREF issue again

    My Source cube
    Account and Period are dense dimension.
    Entity, L1, L2, Scenario, Version, Year, Asset, Req Number as sparse dimension
    Target Cube
    Account and Period are dense dimension.
    Entity, L1, L2, Scenario, Version, Year, Location as sparse dimension
    SET CALCPARALLEL 3;
    SET LOCKBLOCK HIGH;
    SET UPDATECALC OFF;
    SET CLEARUPDATESTATUS OFF;
    SET MSG DETAIL;
    SET CACHE HIGH;
    FIX( @RELATIVE(KEGRS,0), @Levmbrs("L2",0),@Levmbrs("L1",0),Working, Plan, LC_None,&CurrYR, &NextYR, &Next2Yr)
    "New Asset Depr"
    IF (@ISMBR(@RELATIVE("YearTotal",0)))
    "New Asset Depr" = @XREF(_BsCube_,"Total Dep Exp", "Asset", "Req Number");
    ENDIF
    ENDFIX
    This calcs runs forever. Anyone can help me with better solution.
    thanks

    No they are all Dynamic Calc ^^^The two sparse dynamic calcs are going to take a lot of time if you're doing many XREFs and there are lots of blocks/big blocks in the source.
    CREATENONMISSINGBLK is very expensive.
    Try making it a sparse calc (I know, I know, not optimal, but you might be pleasantly surprised). I think a cross dim in the XREF shouldn't be an issue.
    FIX( @RELATIVE(KEGRS,0), @Levmbrs("L2",0),@Levmbrs("L1",0),Working, LC_None,&CurrYR, &NextYR, &Next2Yr)
    FIX(@RELATIVE("YearTotal",0), "New Asset Depr")
    SET CREATEBLOCKONEQ ON ;
    "Plan" = @XREF(_BsCube_,"Plan"->"Total Dep Exp", "Asset", "Req Number");
    SET CREATEBLOCKONEQ OFF ;
    ENDFIX
    ENDFIXFWIW, at this point the two FIXes are redundant. It shouldn't make any difference in performance and might be easier to read if you keep two the two statements.
    Regards,
    Cameron

  • Ditabook and ditafile organization

    Other than the xref issue discussed in another thread, the map to ditabook functions not badly. Except, as also mentioned in yet another thread, all the fm-ditabook and fm-ditafile elements being red, so invalid, which doesn't really seem to inhibit book making.
    However, my book map has, as chapters, other ditamaps. The top chapter topic comes in and is formatted properly by my edd/template. Sub-topicrefs, those within the chapter topicref, however, come in wrapped in their own fm-ditafile element, at the same level as the parent topic, and end up promoted. That is, whereas I'd intended them to be Heading2 entries, they are shown as Heading1.
    Currently, I'm handling this my hand rearranging those contained fm-ditafile elements to fall under the parent topic. If I do that, I can also unwrap them, since the wrapper element now does nothing.
    To those with more experience, is that a normal way of working?
    I've not tried this, but it occurs to me that I might be able to edit the edd/topic files to accommodate fm-ditafile, to recognize it as a context to consider in deciding what style to apply. Would this be a better way to go? Can I even do it, given that the application regards these elements as invalid?
    This whole area could use considerably more documentation than I'm seeing.
    Presumably, the Leximation solution makes it all good, but I'm not looking forward to asking for even another $185 from my company atm.
    Thanks
    Bruce

    Thanks, Scott. I'll look at the Lex stuff today or tomorrow. (Alas, my company has a history of not understanding the kind of higher math you suggest. ;) But I will make the appeal if I decide to go that way.)
    I think I correctly understand the relations of ditamaps and hierarchy, but could always be mistaken in my beliefs. I did, however, just test my understanding against how dita-ot generates html from the same ditamap, and the hierarchy produced is as I expected. So, I expect it's an issue with FM's ditabook generator. So far so good.
    A little more graphic detail, for the record. The top ditamap has:
    map
    ..topicref
    ....[fm-topicreflabel]Collections.ditamap
    collection.ditamap has:
    map
    ..topicref
    ....[fm-topicreflabel]Collections.xml
    ....topicref
    ......[fm-topicreflabel]CollectionClass.xml
    ....topicref
    ......[fm-topicreflabel]CollectionCreate.xml
    etc.
    HTML output is as expected, with the topic from Collections.xml as H1, and the topics from CollectionClass.xml and CollectionCreate.xml as H2.
    The structure in the ditafile becomes:
    [fm-ditafile] href=Collections.ditamap
    ..[fm-ditafile] href=Collections.xml
    ....[topic] Collections
    ....[fm-ditafile] href=CollectionClasses.xml
    ......[topic] Collection Classes
    ....[fm-ditafile] CollectionCreate.xml
    ......[topic] Creating a Class
    etc.
    The structure appears ok, and one might think that the heading levels would be appropriate. But, the top level headings of all three files are being formatted as the equivalent of H1.
    I see two possibilities.
    One is that the second and third fm-ditafile elements should *not* be at the same level as the topic, but nested under it. If that's true, then FM is at fault, and editing of the appropriate xslt file is necessary (or, continue with my current hand-edit process).
    The other is that this structure is correct, and I really should accommodate it by editing the edd to treat the fm-ditafile elements as contexts for applying styles. (Assuming the illegitimate (red) elements are accepted at all as contexts, which I've not tried.)
    I could go either way. My real issue is that I don't have enough information on how Adobe intends these fm-ditafile elements to function in order to determine the better course. There's something wrong somewhere in what Adobe provides, but I don't know if this particular effect is their error or mine.
    Bruce

  • XREF and Scenario Labelling issues

    Hi,I have a separate salaries application that I pull the numbers for the Forecast and Budget Scenarios, using an XREF formula, into the salaries account. As long as this is a dynamic Calc, this works fine, so the formulae are correct.My problem is, that I load actuals directly into that account. With this set to a dynamic calc, it stops storing the numbers for the actuals.What label should I be using for that account, or should I move the calc entirely?ThanksSunil

    One solution might be to load the Actuals data to a different member and then reference the Actuals in that member formula using an IF loop...

  • Display cross-references' linked documents filename in the xref panel

    Our company creates technical manuals consisting of five chapters, all named the same, except with a different prefix. For example the "ABC Widget" manual has an introduction chapter named "ABC 1 - Introduction", a safety chapter named "ABC 2 - Safety", etc. Many times I re-use documents for creating subsequent manuals using the "Save As" command. So the "ABC 1 - Introduction" chapter would be saved as "EFG 1 - Introduction" for the "EFG Widget" book. For all the internal xrefs it saves a whole lot of time since all of the xrefs are preserved. But for cross-document references it creates a problem. For example, if the "ABC 1 - Introduction" chapter has a xref to "ABC 2 - Safety", when I save the Introduction chapter as "EFG 1 - Introduction" it will still retain the xref to "ABC 2 - Safety".
    Right now, the only way to see if there are xrefs pointing to latent docs, is to check each one manually. If the xref panel displayed a column indicating the filename of the linked documents, I would be able to tell at a glance if that xref was pointing to the wrong document.
    Thank you.
    ID CS5, MAC

    Hi Van,
    I fear, I expressed myself not very clear. I try again.
    We have DITA structured documents. However, lastest status often was saved in the FM document. The xml documents often are not representing the final status.
    When I open the FM8 document in FM9 everything looks pretty good.
    But: When I want to save the document as xml with FM9, I'm getting errors regarding the cross references.
    The cross references which were created in FM8 - doesn't matter, if a valid xml document or a FM document - always look the same.
    (BTW: I don't think that in structured documents cross references always refer to elemts with a unique ID.)
    example from xml which was created with FM8:
    <xref href = "#id08B4A0R30E9" type = "fm:Chapter">"..."</xref>
    the only difference in the FM document is that the element is called fm-xref there, as it's not an external url.
    in FM9 those cross references are totally different.
    example from xml which was created in FM9:
    <xref href = "#id08B4A0R30E9" class = "- topic/xref">"..."</xref>
    When saving the FM documents with the cross references from the first example as xml in FM9 (we don't have FM8 anymore), I get an error that the attribute type is not defined.
    When having a xml document that was last changed with FM8 and opening/ saving this with FM9, there is no error.
    At the moment I do not know how to solve this issue.
    And also I'm not sure weather the same problem might accour again with change from FM9 to FM10 or else.
    It is a great effort to make new cross references just because we upgraded from FM8 to FM9. (And of course always at most inconvienent time.)
    As we are thinking of upgrading to FM10, it would be good to know before, if there are any similar issues to expect.
    Or if there is an fix for FM9 or FM10 to avoid this at all.
    Regards,
    Anna

  • Error invoking populateXRefRow:oracle.tip.xref.exception.RepositoryExceptio

    Hi All,
    I created an XREF table using XREF commandline utility. Table was successfully created and columns were also successfully added. But I am getting the following error while using populateXRefRow function in assign activity in BPEL. I have XREF_DATA table is present in oraesb schema.
    SOA suite version 10.1.3.4
    JDev version 10.1.3.4
    OS - Windows XP.
    Basic Installation with Oracle lite database.
    Caused by: oracle.xml.xpath.XPathException: Extension function error: Error invoking 'populateXRefRow':'oracle.tip.xref.exception.RepositoryException: Unable to access Cross Reference Values from Database.The SQL Exception is: "JDBC 2.0 feature is not yet implemented"
    Please ensure that the database is accessible. If accessible, please look at the stack trace and fix the issue. If unable to fix contact Oracle Support '
         at oracle.xml.xslt.XSLStylesheet.flushErrors(XSLStylesheet.java:1846)
         at oracle.xml.xslt.XSLStylesheet.execute(XSLStylesheet.java:612)
         at oracle.xml.xslt.XSLStylesheet.execute(XSLStylesheet.java:548)
         at oracle.xml.xslt.XSLProcessor.processXSL(XSLProcessor.java:333)
         at oracle.xml.jaxp.JXTransformer.transform(JXTransformer.java:460)
         ... 91 more
    oracle.xml.xpath.XPathException: Extension function error: Error invoking 'populateXRefRow':'oracle.tip.xref.exception.RepositoryException: Unable to access Cross Reference Values from Database.The SQL Exception is: "JDBC 2.0 feature is not yet implemented"
    Please ensure that the database is accessible. If accessible, please look at the stack trace and fix the issue. If unable to fix contact Oracle Support '
         at oracle.xml.xpath.XSLExtFunctions.callStaticMethod(XSLExtFunctions.java:118)
         at oracle.xml.xpath.XPathExtFunction.evaluateMethod(XPathExtFunction.java:337)
         at oracle.xml.xpath.XPathExtFunction.evaluate(XPathExtFunction.java:266)
         at oracle.xml.xslt.XSLValueOf.processAction(XSLValueOf.java:120)
         at oracle.xml.xslt.XSLNode.processChildren(XSLNode.java:480)
         at oracle.xml.xslt.XSLTemplate.processAction(XSLTemplate.java:205)
         at oracle.xml.xslt.XSLStylesheet.execute(XSLStylesheet.java:581)
         at oracle.xml.xslt.XSLStylesheet.execute(XSLStylesheet.java:548)
         at oracle.xml.xslt.XSLProcessor.processXSL(XSLProcessor.java:333)
         at oracle.xml.jaxp.JXTransformer.transform(JXTransformer.java:460)
         at com.collaxa.cube.xml.xpath.functions.xml.GetElementFromXSLTFunction.transform(GetElementFromXSLTFunction.java:335)
         at com.collaxa.cube.xml.xpath.functions.xml.GetElementFromXDKXSLTFunction.transform(GetElementFromXDKXSLTFunction.java:38)
         at com.collaxa.cube.xml.xpath.functions.xml.GetElementFromXSLTFunction.evaluate(GetElementFromXSLTFunction.java:144)
         at com.collaxa.cube.xml.xpath.functions.xml.GetElementFromXSLTFunction.call(GetElementFromXSLTFunction.java:89)
         at com.collaxa.cube.xml.xpath.BPELXPathFunctionWrapper.evaluate(BPELXPathFunctionWrapper.java:50)
         at oracle.xml.xpath.JXPathContext$JXFunction.invoke(JXPathContext.java:147)
         at oracle.xml.xpath.JXPathContext$JXFunction.invoke(JXPathContext.java:116)
         at oracle.xml.xpath.XPathExtFunction.evaluate(XPathExtFunction.java:254)
         at oracle.xml.xpath.JXPathExpression.evaluate(JXPathExpression.java:181)
         at com.collaxa.cube.xml.xpath.BPELXPathUtil.evaluate(BPELXPathUtil.java:189)
         at com.collaxa.cube.engine.ext.wmp.BPELAssignWMP.evalFromValue(BPELAssignWMP.java:679)
         at com.collaxa.cube.engine.ext.wmp.BPELAssignWMP.__executeStatements(BPELAssignWMP.java:143)
         at com.collaxa.cube.engine.ext.wmp.BPELActivityWMP.perform(BPELActivityWMP.java:199)
         at com.collaxa.cube.engine.CubeEngine.performActivity(CubeEngine.java:3698)
         at com.collaxa.cube.engine.CubeEngine.handleWorkItem(CubeEngine.java:1655)
         at com.collaxa.cube.engine.dispatch.message.instance.PerformMessageHandler.handleLocal(PerformMessageHandler.java:75)
         at com.collaxa.cube.engine.dispatch.DispatchHelper.handleLocalMessage(DispatchHelper.java:217)
         at com.collaxa.cube.engine.dispatch.DispatchHelper.sendMemory(DispatchHelper.java:314)
         at com.collaxa.cube.engine.CubeEngine.endRequest(CubeEngine.java:5765)
         at com.collaxa.cube.engine.CubeEngine.createAndInvoke(CubeEngine.java:1087)
         at com.collaxa.cube.engine.ejb.impl.CubeEngineBean.createAndInvoke(CubeEngineBean.java:133)
         at com.collaxa.cube.engine.ejb.impl.CubeEngineBean.syncCreateAndInvoke(CubeEngineBean.java:162)
         at sun.reflect.GeneratedMethodAccessor91.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.JAASInterceptor$1.run(JAASInterceptor.java:31)
         at com.evermind.server.ThreadState.runAs(ThreadState.java:693)
         at com.evermind.server.ejb.interceptor.system.JAASInterceptor.invoke(JAASInterceptor.java:34)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.TxRequiresNewInterceptor.invoke(TxRequiresNewInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
         at com.evermind.server.ejb.StatelessSessionEJBObject.OC4J_invokeMethod(StatelessSessionEJBObject.java:87)
         at CubeEngineBean_LocalProxy_4bin6i8.syncCreateAndInvoke(Unknown Source)
         at com.collaxa.cube.engine.delivery.DeliveryHandler.initialRequestAnyType(DeliveryHandler.java:547)
         at com.collaxa.cube.engine.delivery.DeliveryHandler.initialRequest(DeliveryHandler.java:464)
         at com.collaxa.cube.engine.delivery.DeliveryHandler.request(DeliveryHandler.java:133)
         at com.collaxa.cube.ejb.impl.DeliveryBean.request(DeliveryBean.java:95)
         at sun.reflect.GeneratedMethodAccessor139.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.JAASInterceptor$1.run(JAASInterceptor.java:31)
         at com.evermind.server.ThreadState.runAs(ThreadState.java:693)
         at com.evermind.server.ejb.interceptor.system.JAASInterceptor.invoke(JAASInterceptor.java:34)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.TxRequiredInterceptor.invoke(TxRequiredInterceptor.java:50)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
         at com.evermind.server.ejb.StatelessSessionEJBObject.OC4J_invokeMethod(StatelessSessionEJBObject.java:87)
         at DeliveryBean_RemoteProxy_4bin6i8.request(Unknown Source)
         at com.collaxa.cube.ws.soap.oc4j.SOAPRequestProvider.processNormalOperation(SOAPRequestProvider.java:451)
         at com.collaxa.cube.ws.soap.oc4j.SOAPRequestProvider.processBPELMessage(SOAPRequestProvider.java:274)
         at com.collaxa.cube.ws.soap.oc4j.SOAPRequestProvider.processMessage(SOAPRequestProvider.java:120)
         at oracle.j2ee.ws.server.provider.ProviderProcessor.doEndpointProcessing(ProviderProcessor.java:956)
         at oracle.j2ee.ws.server.WebServiceProcessor.invokeEndpointImplementation(WebServiceProcessor.java:349)
         at oracle.j2ee.ws.server.provider.ProviderProcessor.doRequestProcessing(ProviderProcessor.java:466)
         at oracle.j2ee.ws.server.WebServiceProcessor.processRequest(WebServiceProcessor.java:114)
         at oracle.j2ee.ws.server.WebServiceProcessor.doService(WebServiceProcessor.java:96)
         at oracle.j2ee.ws.server.WebServiceServlet.doPost(WebServiceServlet.java:194)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
         at oracle.security.jazn.oc4j.JAZNFilter$1.run(JAZNFilter.java:400)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
         at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:414)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:623)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
         at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:221)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:122)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:111)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:234)
         at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:29)
         at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:879)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
    Please help me to resolve the above error.
    - Sam

    Hi Sam,
    This error is because JDBC 2.0 feature is not completely implemented in Oracle Lite database.
    So, you might want to go for an SOA Advanced Install with 10.2.0.3 oracle database to resolve your issue.
    Hope this helps!
    Cheers
    Anirudh Pucha

  • Issue with validation of signature

    Hello,
    I am facing a problem in producing a correct signature and I hope someone can help me understand the root of the problem. Most of us are familiar with the Java (Sun) examples of GenDetached, GenEnveloped, GenEnveloping, and Validate code samples. The code below is a small variation of the GenDetached:
    public class GenerateDetachedWithManifest {
      public static void main(String[] args) throws Exception {
        // First, create a DOM XMLSignatureFactory that will be used to
        // generate the XMLSignature and marshal it to DOM.
        String providerName = System.getProperty("jsr105Provider",
            "org.jcp.xml.dsig.internal.dom.XMLDSigRI");
        XMLSignatureFactory fac = XMLSignatureFactory.getInstance("DOM",
            (Provider) Class.forName(providerName).newInstance());
        // Create a Reference to an external URI that will be digested
        // using the SHA1 digest algorithm
        Reference ref = fac.newReference("http://www.w3.org/TR/xml-stylesheet", fac
            .newDigestMethod(DigestMethod.SHA1, null));
        Reference xref = fac.newReference("#object", fac.newDigestMethod(
            DigestMethod.SHA1, null), null, "http://www.w3.org/2000/09/xmldsig#Object", null);
        Manifest manifest = fac.newManifest(Collections.singletonList(ref));
        List<XMLObject> objs = new ArrayList<XMLObject>();
        objs.add(fac.newXMLObject(Collections.singletonList(manifest), "object", null, null));
        // Create the SignedInfo
        SignedInfo si = fac.newSignedInfo(fac.newCanonicalizationMethod(
            CanonicalizationMethod.INCLUSIVE,
            (C14NMethodParameterSpec) null), fac.newSignatureMethod(
            SignatureMethod.DSA_SHA1, null), Collections.singletonList(xref));
        // Create a DSA KeyPair
        KeyPairGenerator kpg = KeyPairGenerator.getInstance("DSA");
        kpg.initialize(512);
        KeyPair kp = kpg.generateKeyPair();
        // Create a KeyValue containing the DSA PublicKey that was generated
        KeyInfoFactory kif = fac.getKeyInfoFactory();
        KeyValue kv = kif.newKeyValue(kp.getPublic());
        // Create a KeyInfo and add the KeyValue to it
        KeyInfo ki = kif.newKeyInfo(Collections.singletonList(kv));
        // Create the XMLSignature (but don't sign it yet)
        XMLSignature signature = fac.newXMLSignature(si, ki, objs, "SignatureIdValue", null);
        // Create the Document that will hold the resulting XMLSignature
        DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
        dbf.setNamespaceAware(true); // must be set
        Document doc = dbf.newDocumentBuilder().newDocument();
        // Create a DOMSignContext and set the signing Key to the DSA
        // PrivateKey and specify where the XMLSignature should be inserted
        // in the target document (in this case, the document root)
        DOMSignContext signContext = new DOMSignContext(kp.getPrivate(), doc);
        // Marshal, generate (and sign) the detached XMLSignature. The DOM
        // Document will contain the XML Signature if this method returns
        // successfully.
        signature.sign(signContext);
        // output the resulting document
        OutputStream os;
        if (args.length > 0) {
          os = new FileOutputStream(args[0]);
        } else {
          os = System.out;
        TransformerFactory tf = TransformerFactory.newInstance();
        Transformer trans = tf.newTransformer();
        trans.transform(new DOMSource(doc), new StreamResult(os));
    }If you wonder why I am doing this the answer is that I am trying to sign a format based on OPC. Anyway, the problem I have is that the output of the above program fails to validate when running the Validate sample. I don't think the issue is with the Validate program because it correctly validates output of a .NET signing application whose behavior I am trying to replicate in Java.
    So the question is: why does the above code produce an incorrect signature?
    Thanks,
    Luis

    Can you post relevant sections of the OPC standard (or a link to it) that describes the requirement? Its possible that they have written the requirements differently from the examples. Its also possible that the DSIG library in the JDK only does things in a specifc way (I'll let Sean Mullan weigh in on this part of the discussion if he's monitoring this list/thread - he's the developer from Sun who wrote the library).
    Here's the wording from the W3C spec on the Object element:
    +"The Object's Id is commonly referenced from a Reference in SignedInfo, or Manifest. This element is typically used for enveloping signatures where the object being signed is to be included in the signature element. The digest is calculated over the entire Object element including start and end tags."+
    What you have is neither an Enveloping Signature nor Detached - but a combination of the two. So its possible that the JDK library doesn't work with Object references in this manner (although in theory is should). Based on this thread (XML dsig: Can I sign a SignatureProperty of the Signature? it appears that this theory holds up for child-elements of Object , but not for the Object element itself.
    Arshad Noor
    StrongAuth, Inc.

  • Issue with automatic numbering of figures in a Technical Document

    Hi everyone, thanks for taking the time to examine my issue. Basically I've inherited a Technical Document which was imported from Quark some years ago and badly cobbled together in IDesign by a novice and I'm bringing it up to standard to make it a bit more usable but do need to retain the conventions within it. It was written as a chaptered document so I've set up the 'chapters' as Sections in InDesign so as to allow for page number variables and a decent ToC etc. I'd like to have the diagram numbers (and associated x-references) automated too, but am floundering a bit with this.
    At the moment all the image captions are set in one paragraph style throughout the document, and I've been playing with the Bullets and Numbering Dialogue within this paragraph style. All the captions are part of the body text or in their own text frames (As opposed to being linked with image metadata or anything like that).
    The  manually written image number format in the document reads like 'Figure Chapter number, colon, Image number,  and then some have (a), (b), or (c). followed by the name)'  eg (worst case) Figure 8:5(c) Sealing the Blahblah Adaptor
    I realise I might have to set up a named list for each 'chapter' because I can't find a way to define the numbered list to show me;
    'Section number, dot, Image number (starting at one then continuing until the next section starts) dot and then if I need it an a, b, c. etc too'
    Not forgetting I have set up the written 'chapters' as Sections in Indesign.
    If I try adding the 'section symbol' to the number field in the bullets and numbering dialogue (inside my paragraph style)  I just get a weird little blue shape that presumably starts a new section rather than identifies the section I've put it in (so that isn't it) and if i try 'Chapter Number' from the number placeholder menu it only ever says '1' because InDesign only allows one 'chapter' per document (and my chapters are actually sections!).
    I do find the coding system for the 'insert special characters or numbered placeholder' really confusing - I'm not familiar with all of them, (and throwing circumflex's and hashtags in doesn't brighten my day) and since I don't know the codes trial and error seemed to be the way forward.  How are we supposed to know the codes - is there a list online somewhere?
    I could manually type the section number in the 'Number' text box in the dialogue (if I make a named list for each chapter) and lift a layer of confusion but surely there's a way to identify a section in a numbered/named list?
    I think I'm really close but it's driving me a bit crazy - I'm sure identifying levels within named lists might be something to do with it, but I can't see how to alter that. Do I need to set up a new paragraph style AND a new named list for each 'chapter' (section)? The alternative could be to split the document up and make a book file so the 'chapters' become real chapters? (I don't want to do this!)
    There's also something in RealWorld InDesign that worries me a bit - it says (even if I had it working the way I want) that it might number unthreaded text frames in the order they were created rather than the order they appear on the page? Um...
    The other thing is I do have a mixture of inline and anchored objects throughout this document so that might mess things up too?! *Sigh!*
    I'm using InDesign 5.5. for Windows. Many thanks for any tips! Hope somone out there is less confused than me!
    kind regards
    Phil

    You're so right!!!
    I really liked the idea of writing a book in pages. Have to write a second edition of something and did not want to use Word2008 on the Mac, because after one year it is still an unstable beast (crashes, crashes).
    So I checked ot Pages 09 - and alas
    * no xreferences
    * no automatic numbering of captions, figures, ...
    Then I asked my publisher for FrameMaker: The answer was: NO longer on the Mac since 2005. I can't believe this. Not a single decent program to write a book on a Mac.
    I don't want to go back to LaTex after 20 years - HELP me somebody
    and show me a few (automatic) workarounds how to play the automatic numbering and Xref tricks in pages.
    Otherwise it's really neat - BUT - nut for writing documents longer than 20 - 30 pages that need off that book like stuff.

  • FM 10 xref format changes when updating file

    I'm authoring in structured FM 10 using a DITA 1.2 application on Windows 7, but working with FM documents rather than XML files. I was having problems updating cross-references in my existing (structured FM 7.2) files after upgrading to FM 10 -- FM was changing all xref formats to DITA Default Format, which blew away all of my defined formats. So I opened one of the standard structured templates included with FM 10 (DITA_1.2/app/technicalContent/template/topic.template.fm), thinking that I set up my structured application incorrectly.
    I know I must be missing something simple, but this is what happens when I create and update a cross-reference:
    Using the unmodified structured  template and the unmodified DITA 1.2 application that comes with FM 10, add an fm-xref element.
    Using the DITA-Cross-Reference dialog box, create the xref (doesn't  matter if it's an internal or external xref).
    Select See_Title_and_Page xref format. Xref looks fine in the source document.
    Select Edit > Update Reference, and select All Cross-References.
    When I click Update, FM updates the xref but changes the xref format to DITA Default Format. I can see that the See_Title_and_Page format included in the template uses the <$paratext> building block instead of <$elemtext>, but  I can't delete or modify this format and I can't create a new xref format, either, since the DITA  Cross-Reference dialog box doesn't give me those options.
    However, if I create a new FM book and add this file to it, and then  select Edit > Update Book, and select All Cross-References, FM  updates the xref and maintains the xref format I chose.
    So, why does updating a file remove the selected formats from all xrefs and replace them with DITA Default Format, while updating a book does what I'd expect (and what FM has always done)? And why can't I modify an xref format using the template/DITA 1.2 application that comes with FM10?
    Thanks for any assistance.
      --Steve

    Hi Saurabh,
    Thanks for the reply. I guess it's reassuring to know that the automatic reformatting of xrefs by FM isn't due to something I've overlooked. As long as there's a workaround, I'll keep updating xrefs from a book. Not a great workflow, but it won't block our writing for now.
    On the other issue: Thanks, I do know how to edit xref formats and import them from a template. My confusion, however, stems from two things:
    I can't edit xref formats in the DITA Cross-Reference dialog box, which is all you see if you're using the DITA 1.2 template that ships with FM 10. I can edit the formats from the Cross-Reference dialog box, but I can't figure out how to access that when using Adobe's template. Adding a new xref or selected an existing one just activates the DITA dialog box, which doesn't have an Edit Format option (shouldn't it? wouldn't you want to be able to edit those formats? or do you always have to do that from one of the application files?).
    The DITA Default Format won't go away. In my own docs (DITA 1.1 FM files), I can get to the Cross-Reference dialog box and edit xref formats. If I delete the DITA Default Format, save the file, close it, and then reopen it, the unwanted DITA Default Format is back. I can reapply the formats and element defintitions from the template as much as I like, but any time the file is reopened the deleted format reappears. It won't die, and I have no idea where it's coming from (definitely not the template or the EDD, which I've checked and reimported). Is this some odd default behavior of ditafm_app.dll?
    Again, thanks for responding.
      --Steve

  • Urgent: Issue with Java Embedding Activity

    Hi All,
    I wrote below code in Java Embedding activity and tried to pass an input paramter to String SR, but i am getting SCAC-50012 Error, some one please help me in this issue
    IAgileSession m_session = null;
    IAdmin admin = null;
    IAgileClass cls = null;
    String username="XXXX";
    String password="XXXXX";
    String URL="XXXXXXX";
    String sr=getVariableData("inputVariable","payload","/client:process/client:input");
    try {
    HashMap params = new HashMap();
    params.put(AgileSessionFactory.USERNAME, username);
    params.put(AgileSessionFactory.PASSWORD, password);
    AgileSessionFactory instance = AgileSessionFactory.getInstance(URL);
    m_session = instance.createSession(params);
    admin = m_session.getAdminInstance();
    cls = admin.getAgileClass( "ProblemReport" );
    IServiceRequest psr = (IServiceRequest)m_session.createObject( "ProblemReport", sr);
    psr.setValue(ServiceRequestConstants.ATT_COVER_PAGE_DESCRIPTION, "KB-Test-20121299");
    } catch (APIException e) {
    e.printStackTrace();
    } finally {
    m_session.close();
    Also, I imported all Jar and class files into BPEL.

    Hi,
    Now the it is compiling perfectly, but when i am passing input parameter in em it is failing at bpel process.
    This is the bpel code
    <?xml version = "1.0" encoding = "UTF-8" ?>
    <!--
    Oracle JDeveloper BPEL Designer
    Created: Tue Dec 11 13:59:57 EST 2012
    Author: *********************
    Type: BPEL 1.1 Process
    Purpose: One Way BPEL Process
    -->
    <process name="BPELProcess1"
    targetNamespace="http://xmlns.oracle.com/AgileTest/Testing123/BPELProcess1"
    xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
    xmlns:client="http://xmlns.oracle.com/AgileTest/Testing123/BPELProcess1"
    xmlns:ora="http://schemas.oracle.com/xpath/extension"
    xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
    xmlns:bpelx="http://schemas.oracle.com/bpel/extension"
    xmlns:aia="http://www.oracle.com/XSL/Transform/java/oracle.apps.aia.core.xpath.AIAFunctions"
    xmlns:xp20="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20"
    xmlns:bpel2="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
    xmlns:oraext="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc"
    xmlns:dvm="http://www.oracle.com/XSL/Transform/java/oracle.tip.dvm.LookupValue"
    xmlns:hwf="http://xmlns.oracle.com/bpel/workflow/xpath"
    xmlns:ids="http://xmlns.oracle.com/bpel/services/IdentityService/xpath"
    xmlns:bpm="http://xmlns.oracle.com/bpmn20/extensions"
    xmlns:xdk="http://schemas.oracle.com/bpel/extension/xpath/function/xdk"
    xmlns:xref="http://www.oracle.com/XSL/Transform/java/oracle.tip.xref.xpath.XRefXPathFunctions"
    xmlns:ldap="http://schemas.oracle.com/xpath/extension/ldap">
    <!--
    PARTNERLINKS
    List of services participating in this BPEL process
    -->
    <partnerLinks>
    <!--
    The 'client' role represents the requester of this service. It is
    used for callback. The location and correlation information associated
    with the client role are automatically set using WS-Addressing.
    -->
    <partnerLink name="bpelprocess1_client" partnerLinkType="client:BPELProcess1" myRole="BPELProcess1Provider"/>
    </partnerLinks>
    <!--
    VARIABLES
    List of messages and XML documents used within this BPEL process
    -->
    <variables>
    <!-- Reference to the message passed as input during initiation -->
    <variable name="inputVariable" messageType="client:BPELProcess1RequestMessage"/>
    </variables>
    <!--
    ORCHESTRATION LOGIC
    Set of activities coordinating the flow of messages across the
    services integrated within this business process
    -->
    <sequence name="main">
    <!-- Receive input from requestor. (Note: This maps to operation defined in BPELProcess1.wsdl) -->
    <receive name="receiveInput" partnerLink="bpelprocess1_client" portType="client:BPELProcess1" operation="process" variable="inputVariable" createInstance="yes"/>
    <assign name="Assign1">
    <copy>
    <from variable="inputVariable" part="payload"
    query="/client:process/client:input"/>
    <to variable="inputVariable" part="payload"
    query="/client:process/client:input"/>
    </copy>
    </assign>
    <bpelx:exec import="org.w3c.dom.Element"/>
    <bpelx:exec import="com.agile.api.APIException"/>
    <bpelx:exec import="com.agile.api.AgileSessionFactory"/>
    <bpelx:exec import="com.agile.api.IAdmin"/>
    <bpelx:exec import="com.agile.api.IAgileClass"/>
    <bpelx:exec import="oracle.xml.parser.v2.*"/>
    <bpelx:exec import="com.agile.api.IAgileSession"/>
    <bpelx:exec import="com.agile.api.IServiceRequest"/>
    <bpelx:exec import="com.agile.api.ServiceRequestConstants"/>
    <bpelx:exec import="java.util.HashMap"/>
    <bpelx:exec import="testing123.JavaAPITesting.*"/>
    <bpelx:exec import="oracle.soa.common.util.Base64Encoder"/>
    <bpelx:exec import="java.util.*"/>
    <bpelx:exec import="java.lang.*"/>
    <bpelx:exec import="java.math.*"/>
    <bpelx:exec name="Java_Embedding1" version="1.5" language="java">
    <![CDATA[IAgileSession m_session = null;  
                IAdmin admin = null;  
                IAgileClass cls = null;   
                String username="****";
                String password="*******";
                String URL="*****************************************";
                String sr=(String)getVariableData("inputVariable","payload","/client:process/client:input"); 
                try { 
                        HashMap params = new HashMap(); 
                        params.put(AgileSessionFactory.USERNAME, username);
                        params.put(AgileSessionFactory.PASSWORD, password);
                        AgileSessionFactory instance = AgileSessionFactory.getInstance(URL);
                        m_session = instance.createSession(params); 
                        admin = m_session.getAdminInstance(); 
                        cls = admin.getAgileClass( "ProblemReport" ); 
                        IServiceRequest psr = (IServiceRequest)m_session.createObject( "ProblemReport", sr); 
                        psr.setValue(ServiceRequestConstants.ATT_COVER_PAGE_DESCRIPTION, "KB-Test-20121299"); 
                } catch (APIException e) { 
    e.printStackTrace();
    } finally { 
    m_session.close();
    }]]>
    </bpelx:exec>
    </sequence>
    </process>

  • Issue with XSLT

    Hi All,
    I am working on a requirement to write an XSLT file which will do the following:
    1. Copy contents from Input.xml to Output.xml
    2. Read another xml file named Map.xml, select the value of printImmediate corresponding to Report Name and Version from Input.xml.
    3. If printImmediate is true, then update the "VALUE" attribute of PRINT_IMMEDIATE element to 1, otherwise keep it same.
    XSLT File
    <xsl:stylesheet version="1.0"
    xmlns:xp20="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20"
    xmlns:ns0="http://www.pwb.com/UBE"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    exclude-result-prefixes="xsi xsl ns0 xsd plt opaque tns wsdl xp20 bpws mhdr bpel2 oraext dvm hwf med ids bpm xdk xref pwb ora socket ldap">
    <xsl:variable name="map" select='document("Map.xml")'/>
    <xsl:template match="/">
    <xsl:apply-templates mode="copy"/>
    <xsl:copy-of select="*"/>
    </xsl:template>     
    <xsl:template match="ns0:PRINT_IMMEDIATE" mode="copy">
    <xsl:variable name="reportName" select="string(ancestor-or-self::ns0:ACTION/ns0:REPORT_NAME/@VALUE)"/>
    <xsl:variable name="reportVersion" select="string(ancestor-or-self::ns0:ACTION/ns0:REPORT_VERSION/@VALUE)"/>
    <xsl:variable name="printImmediate" select="$map/root/job[@report=$reportName and xp20:matches($reportVersion, @version)][1]/@printImmediate"/>
    <xsl:attribute name="VALUE">
    <xsl:choose>
    <xsl:when test="string($printImmediate)">
    <xsl:value-of select="1"/>
    </xsl:when>
    <xsl:otherwise>
    <xsl:value-of select="."/>
    </xsl:otherwise>
    </xsl:choose>
    </xsl:attribute>          
    </xsl:template>
    </xsl:stylesheet>
    Map.xml
    <?xml version='1.0' encoding='UTF-8' ?>
    <root>
    <job report="R55" version="001" printImmediate="true" />
    <job report="R56" version="001" printImmediate="true" />
    <job report="R57" version="001" printImmediate="false" />
    </root>
    Input.xml
    <?xml version='1.0' encoding='UTF-8' ?>
    <REQUEST>
         <ACTION>
              <REPORT_NAME VALUE='R55'/>
              <REPORT_VERSION VALUE='001'/>
              <RUNTIME_OPTIONS>
                   <ADVANCED_OPTIONS>
                        <PRINT_IMMEDIATE VALUE='0'/>
                   </ADVANCED_OPTIONS>
              </RUNTIME_OPTIONS>
         </<ACTION>
    </REQUEST>
    My issue is that the xslt is not updating the PRINT_IMMEDIATE value to 1. Seems like the template is not working. Can you please help?
    Thanks,
    Maitrayee

    Hi,
    Only a guess but you could try without the prefix ?
    I mean you search for "ns0:PRINT_IMMEDIATE", but seems like your input doesn't contain any prefix nor namespace.
    regards,
    mathieu

  • XREF best practices in ESB cluster installation-OESB10.1.3.3

    Hi,
    We are using Oracle ESB during last 2 years.
    2 months ago I migrated our ESB installation to ESB Cluster in production (1 ESB DT, 1 ESB RT for polling
    adapters, 2 ESB RT for further message processing).
    We are using SOA Suite 10.1.3.3 with MLR#17 applied.
    I faced a issue with XREF (populateXRefRow XPath function) in production system and need assistance.
    All our ESB Processes contains next main parts:
    1) Polling DB-adapter (or FTP-adapter, this didn't matter) that initiates a ESB process, routing service for that polling adapter
    that asyncronously (!) invokes Requestor ABC level services (AIA terms);
    2) Requestor ABC level-services perform XREF population and continues message
    processing.
    XREF population is doing with next steps:
    we call lookupXRefRow XPath function, if value is not present in XREF, we doing
    populateXRefRow call.
    This logic is working fine when we are not using ESB cluster, but now step 2) (ReqABC level) is performed by different ESB servers
    and frequently we faced unique constraint violation error on XREF_DATA
    population (during populateXrefRow call).
    ESB RT nodes using to balance load but transmitted data is intersected. For example, we are poll not documents but document details instead (polling table populated by Oracle Streams, there are no guarantee that document header receives earlier than document details, because our system is high loaded and we are using commit_serialization=none with parallelism at APPLY processes).
    Each ESB RT instance can receive different rows of same document and xref population done at document header level.
    My question is: what is best practices to work with XREF in ESB cluster installations?
    May be other peoples faced with this issue and how this issue was resolved?
    I know possible workarounds to accomplish this task: not call populateXRefRow function in XSLT, instead call PL/SQL procedure or function that working same but can ignore any exceptions.
    This's solution not liked to me, but I dont know any other solutions.
    Also I cannot not populate XREF because XREF actively used in inter-systems communication.

    Hi,
    We are using Oracle ESB during last 2 years.
    2 months ago I migrated our ESB installation to ESB Cluster in production (1 ESB DT, 1 ESB RT for polling
    adapters, 2 ESB RT for further message processing).
    We are using SOA Suite 10.1.3.3 with MLR#17 applied.
    I faced a issue with XREF (populateXRefRow XPath function) in production system and need assistance.
    All our ESB Processes contains next main parts:
    1) Polling DB-adapter (or FTP-adapter, this didn't matter) that initiates a ESB process, routing service for that polling adapter
    that asyncronously (!) invokes Requestor ABC level services (AIA terms);
    2) Requestor ABC level-services perform XREF population and continues message
    processing.
    XREF population is doing with next steps:
    we call lookupXRefRow XPath function, if value is not present in XREF, we doing
    populateXRefRow call.
    This logic is working fine when we are not using ESB cluster, but now step 2) (ReqABC level) is performed by different ESB servers
    and frequently we faced unique constraint violation error on XREF_DATA
    population (during populateXrefRow call).
    ESB RT nodes using to balance load but transmitted data is intersected. For example, we are poll not documents but document details instead (polling table populated by Oracle Streams, there are no guarantee that document header receives earlier than document details, because our system is high loaded and we are using commit_serialization=none with parallelism at APPLY processes).
    Each ESB RT instance can receive different rows of same document and xref population done at document header level.
    My question is: what is best practices to work with XREF in ESB cluster installations?
    May be other peoples faced with this issue and how this issue was resolved?
    I know possible workarounds to accomplish this task: not call populateXRefRow function in XSLT, instead call PL/SQL procedure or function that working same but can ignore any exceptions.
    This's solution not liked to me, but I dont know any other solutions.
    Also I cannot not populate XREF because XREF actively used in inter-systems communication.

  • Xref:populateXRefRow xpath function.

    Hi All,
    I am facing an issue with xref:populateXRefRow xpath function.
    Requirement:
    To populate the value obtained from Siebel & an autogenerated common value into cross reference table.
    Steps Performed:
    1.Cross reference table (addressed_sbl_ucm) created in xreftool shell.
    2.Run a SQL script on SQLPLUS to create XREF_DATA table in SQL.
    3.In ASSIGN activity, written the below code and assigned it to a string variable.
    xref:populateXRefRow(
    'ADDRESSID_SBL_UCM',
    'SBL_ADDID',
    string(bpws:getVariableData('inputVariable','payload','/ns1:UCMContactExtrnIO/ns1:Contact_INSPersonalAddress/ns1:INSPersonalAddressId')),
    'COMMON_ADDRESSID',
    ora:generateGUID(),
    'ADD')
    4.Deployed the process on server.
    5.Instantiated the process on the BPEL console.
    While instantiating the process on the console we are getting the error shown below:
    Your test request was processed synchronously. It took 63.0milliseconds to finish and generated the following output:
    Value:     
    <Faulthttp://schemas.xmlsoap.org/soap/envelope/>
    <faultcode>env:Server</faultcode>
    <faultstring>ORABPEL-09500 XPath expression failed to execute. Error while processing xpath expression, the expression is "xref:populateXRefRow('ADDRESSID_SBL_UCM','SBL_ADDID',
    string(bpws:getVariableData('inputVariable','payload','/ns1:UCMContactExtrnIO/ns1:Contact_INSPersonalAddress/ns1:INSPersonalAddressId')),
    'COMMON_ADDRESSID',ora:generateGUID(),
    'ADD')",
    the reason is FOTY0001: type error.
    Please verify the xpath query.
    </faultstring>
    </Fault>
    Any pointers to this will be of great help.
    Thanks & Regards,
    Shanty
    P.S. : If possible please provide me link to the documentation & tutorials on cross reference table.

    According to the docs:
    http://download.oracle.com/docs/cd/E11036_01/doc.1013/e10295/esb_xref.htm
    This function is available in Oracle ESB? Are you using that or are you using BPEL? If you are using Oracle AIA, this function is available in BPEL.
    Regards,
    Marc
    http://orasoa.blogspot.com

  • Problem with lookup xref not happening Properly

    Hi All,
    we are facing an issue in lookup xref.
    Sometimes the lookup xref happens correctly and sometimes we get empty value from lookup xref even if the xref table has data properly populated.
    Check the below 2 cases.
    CASE-A:
    This mainly happens in the following scenario:
    BPEL A (Populate xref with itemid)------------> ESB ---------->BPEL B (lookup the itemid from the same xref)
    1)     The xref table is populated in a BPEL process A.
    2)     Payload passes through ESB and reaches BPEL B.
    3)     In Process B, we try to look up the same value populated in BPEL A, although the data is inserted in lookup table, it did not get committed to DB as it is a single flow.
    This issue is occuring intermittently due to which the entire process is failing.
    Hence , Request you to let us know how can this issue will be resolved.
    CASE-B:
    Where as Lookup works properly in the following scenario:
    BPEL C (Populate xref with itemid)<---> BPEL A----------> ESB ---------->BPEL B (lookup the itemid from the same xref)
    1)     BPEL A calls BPEL C.
    2)     The xref table is populated in a BPEL process C.
    3)     Control comes back to BPEL A.
    4)     Payload passes through ESB and reaches BPEL B.
    5)     In Process B, we try to look up the same value populated in BPEL C, now the data gets committed.
    We are facing issue with Case-A due to which the entire process is failing. Hence, Request you to let us know how can it will get resolved.
    Thanks
    Narendra
    Mailto: [email protected]

    Hi Narendra,
    Are you still having this problem?
    Just in case you are:
    Please check the descriptor properties of the ABCS processes
    Are they async or sync? If 'sync' make them transaction 'required'.
    Cause: The lookup fails at Provider because there is no data in the XREF_DATA (or ur custom xref table).
    The ReqABCS is inserting data into the table but actually will not Commit it until the Provider has successfully completed.
    If the processes are async or have a savepoint then you should be able to see the data in the xref even before the ProvABCS call and the problem shouldnt occur; however if its sync then all the processes must be in a single transaction for xref data to be "visible" at ProvABCS.
    --thanks
    debashis

  • Issue while Signing and Encrypting the PDF Document.

    Hello,
    I am developing one component in VC++(MFC) which signs and encrypts the pdf documents.
    When i sign and encrypt pdf document using my component, I am getting following error while opening the document in Adobe Acrobat
    Error during signature verification
    Unexpected byte range values defining scope of signed data.
    Details: The signature byte range is invalid
    But if i open that document in binary mode and calculate the byte range its looking correct.
    The Process for signing and encrypting the PDF document is as follows :
    1)Prepare the PDF document for signing (Add Annotation objects,n0,n2
    layers,create blank signature field,new xref section etc.)
    2)Encrypt the whole document(Password based encryption).
    3)Put the ByteRange values.
    4)Write the signature in blank signature field.
    If i just perform encryption(128 bit RC4 Algorithm) on the pdf document its working fine.Only after adding the signature objects i am getting above error.I think it means something is wrong in signature related objects,but i am not able to recognize the exact problem.
    So what can be the issue?
    Please Help
    Thanks in Advance
    Priyanka

    I am sending the Sample Files
    blank.pdf file is a original file
    http://www.2shared.com/file/4677649/3f341d92/blank.html
    step 1: I am adding Signing object(without data in Contents<> key) in
    blank.pdf file.
    Output File is Prepared-blank.pdf
    http://www.2shared.com/file/4677648/48332d04/Prepared-blank.html
    step 2: Sending Prepared-blank.pdf file for encryption.
    Output File is SignednEncrypted-blank.pdf which is Encrypted and Signed.
    http://www.2shared.com/file/4677647/d88c3095/SignednEncrypted-blank.html
    Password for opening SignednEncrypted-blank.pdf is : "a".
    Please help.
    Thanks.

Maybe you are looking for

  • How do I put my name in my iphone?

    hi! I bought Iphone 5 a few days ago, and I have not put my name in it. How do I do it?

  • New Bank Import Format

    Hi Experts We have a situation where we had to create a "new bank import format" for a customer through the "SDK". The new import format was created in our "partner" test system. We have tested the new bank import format all seem to be working fine.

  • Populating custom tables via Table Events.

    Hi  , I have a ztable having the following fields: MANDT FAREA REVID NAME EMAIL Out of this fields I need to populate the field REVID  and EMAIL from two standard table USR21 and ADR6. Like if I  enter user id and hit enter  tab, then the fields like

  • TECO status related Qus.

    Hi All, I have changed status of wbs to TECO and this wbs is already assigned to network activity that has an existing requisition(PR)/PO in it. now after doing TECO STATUS for wbs, again i went in network activity and tried to create new purchase re

  • Purchased Song from Itunes on Iphone, song does not appear

    I recently purchased a song from itunes through the iphone. I looked for it in the ipod section and it was not there. I looked in "purchsed in phone" and it was not there either. I went back and clicked on the song again and it said "you laready purc