Entity details is shown Type mismatch: 'FormatDateTime'

Hi, all:
The entity details of a data grid in HFM 11G is shown the following VBScript runtime error:
Microsoft VBScript runtime ??800a000d'
Type mismatch: 'FormatDateTime'
*/hfm/Data/EntityDetails.asp, ?C266*
The date format is always mm/dd/yyyy in HFM according to the Admin Guide, so we change the date format of OS. However, the error is still appeared.
Any ideas or suggestions will be appreciated.

I'm having the same problem here. Any ideas how to solve it?
Apex version 4.1

Similar Messages

  • DescriptorException: field type mismatch

    We are facing a typical exception when trying to fetch a XMLType field.
    We are using toplink 9.0.4 version on Websphere 5.0
    We have defined a model class with one variable of the class defined as XMLType and mapped that field to the underlying db field which is of XMLType type.
    When we test the code to fetch the persistent objects with XMLType variables on JBuilder it works fine without giving any issues.
    But when we deploy the application on to Websphere we get an error shown below:
    In the below exception "m_defaultExpression" is the variable of type XMLType.
    Can you please let us know what can be the possible difference running on JBuilder and Websphere??
    One and only one difference which we could see was the JVM version. On JBuilder its 1.4.1 and websphere is on 1.3.1 JVM version. Not sure if this brings any difference in the working of toplink 9.0.4 runtime API.
    Exception [TOPLINK-32] (OracleAS TopLink - 10g (9.0.4) (Build 031126)): oracle.toplink.exceptions.DescriptorException
    Exception Description: Trying to set value [<?xml version="1.0"?><Condition></Condition>] for instance variable [m_defaultExpression] of type [oracle.xdb.XMLType] in the object. The specified object is not an instance of the class or interface declaring the underlying field, or an unwrapping conversion has failed.
    Internal Exception: java.lang.IllegalArgumentException: field type mismatch
    Mapping: oracle.toplink.mappings.DirectToFieldMapping[m_defaultExpression-->SOURCE_OBJECT_ATTRIBUTE_MAP.DEFAULT_EXPRESSION]
    Descriptor: Descriptor(com.fmrco.ios.gppas.metadata.model.SourceAttribute --> [DatabaseTable(SOURCE_OBJECT_ATTRIBUTE_MAP)])
    at oracle.toplink.exceptions.DescriptorException.illegalArgumentWhileSettingValueThruInstanceVariableAccessor(DescriptorException.java:532)
    at oracle.toplink.internal.descriptors.InstanceVariableAttributeAccessor.setAttributeValueInObject(InstanceVariableAttributeAccessor.java:125)
    at oracle.toplink.mappings.DatabaseMapping.setAttributeValueInObject(DatabaseMapping.java:950)
    at oracle.toplink.mappings.DatabaseMapping.readFromRowIntoObject(DatabaseMapping.java:861)
    at oracle.toplink.internal.descriptors.ObjectBuilder.buildAttributesIntoObject(ObjectBuilder.java:164)
    at oracle.toplink.internal.descriptors.ObjectBuilder.buildObject(ObjectBuilder.java:331)
    at oracle.toplink.internal.descriptors.ObjectBuilder.buildObjectsInto(ObjectBuilder.java:387)
    at oracle.toplink.internal.queryframework.DatabaseQueryMechanism.buildObjectsFromRows(DatabaseQueryMechanism.java:146)
    at oracle.toplink.queryframework.ReadAllQuery.execute(ReadAllQuery.java:422)
    at oracle.toplink.queryframework.DatabaseQuery.execute(DatabaseQuery.java:498)
    at oracle.toplink.queryframework.ReadQuery.execute(ReadQuery.java:111)
    at oracle.toplink.publicinterface.Session.internalExecuteQuery(Session.java:1968)
    at oracle.toplink.publicinterface.Session.executeQuery(Session.java:1096)
    at oracle.toplink.publicinterface.Session.executeQuery(Session.java:1048)
    at com.fmrco.ios.gppas.metadata.model.MetadataSession.findAttributeDefinitions(MetadataSession.java:537)
    at com.fmrco.ios.gppas.metadata.MetadataDAOImpl.fetchAttributeDefinitions(MetadataDAOImpl.java:488)
    at com.fmrco.ios.gppas.entity.etcdao.EntityEtcDAO.fetchAllAttributeDefinitions(EntityEtcDAO.java:156)
    at com.fmrco.ios.gppas.entity.engine.EntityEngine.fetchAllAttributeDefinitions(EntityEngine.java:125)
    at com.fmrco.ios.gppas.manager.EntityManagerEJB.fetchAllAttributeDefinitions(EntityManagerEJB.java:231)
    at com.fmrco.ios.gppas.manager.EJSLocalStatelessEntityManager_ee7411f8.fetchAllAttributeDefinitions(Unknown Source)
    at com.fmrco.ios.gppas.gems.request.RequestSFEJB.getRequestSearchAttributes(RequestSFEJB.java:433)
    at com.fmrco.ios.gppas.gems.request.EJSRemoteStatelessRequestSF_5518517c.getRequestSearchAttributes(Unknown Source)
    at com.fmrco.ios.gppas.gems.request._RequestSFRemote_Stub.getRequestSearchAttributes(Unknown Source)
    at com.fmrco.ios.gppas.gems.request.RequestBD.getRequestSearchAttributes(RequestBD.java:217)
    at com.fmrco.ios.gppas.gems.action.SearchAction.execute(SearchAction.java:139)
    at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
    at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
    at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
    at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
    at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
    at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
    at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
    at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
    at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
    at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
    at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:923)
    at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:528)
    at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:176)
    at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:79)
    at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:201)
    at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
    at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:182)
    at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)
    at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
    at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:516)
    at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:366)
    at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:593)
    Internal Exception Stack:
    java.lang.IllegalArgumentException: field type mismatch
    at java.lang.reflect.Field.set(Native Method)
    at oracle.toplink.internal.descriptors.InstanceVariableAttributeAccessor.setAttributeValueInObject(InstanceVariableAttributeAccessor.java:106)
    at oracle.toplink.mappings.DatabaseMapping.setAttributeValueInObject(DatabaseMapping.java:950)
    at oracle.toplink.mappings.DatabaseMapping.readFromRowIntoObject(DatabaseMapping.java:861)
    at oracle.toplink.internal.descriptors.ObjectBuilder.buildAttributesIntoObject(ObjectBuilder.java:164)
    at oracle.toplink.internal.descriptors.ObjectBuilder.buildObject(ObjectBuilder.java:331)
    at oracle.toplink.internal.descriptors.ObjectBuilder.buildObjectsInto(ObjectBuilder.java:387)
    at oracle.toplink.internal.queryframework.DatabaseQueryMechanism.buildObjectsFromRows(DatabaseQueryMechanism.java:146)
    at oracle.toplink.queryframework.ReadAllQuery.execute(ReadAllQuery.java:422)
    at oracle.toplink.queryframework.DatabaseQuery.execute(DatabaseQuery.java:498)
    at oracle.toplink.queryframework.ReadQuery.execute(ReadQuery.java:111)
    at oracle.toplink.publicinterface.Session.internalExecuteQuery(Session.java:1968)
    at oracle.toplink.publicinterface.Session.executeQuery(Session.java:1096)
    at oracle.toplink.publicinterface.Session.executeQuery(Session.java:1048)
    at com.fmrco.ios.gppas.metadata.model.MetadataSession.findAttributeDefinitions(MetadataSession.java:537)
    at com.fmrco.ios.gppas.metadata.MetadataDAOImpl.fetchAttributeDefinitions(MetadataDAOImpl.java:488)
    at com.fmrco.ios.gppas.entity.etcdao.EntityEtcDAO.fetchAllAttributeDefinitions(EntityEtcDAO.java:156)
    at com.fmrco.ios.gppas.entity.engine.EntityEngine.fetchAllAttributeDefinitions(EntityEngine.java:125)
    at com.fmrco.ios.gppas.manager.EntityManagerEJB.fetchAllAttributeDefinitions(EntityManagerEJB.java:231)
    at com.fmrco.ios.gppas.manager.EJSLocalStatelessEntityManager_ee7411f8.fetchAllAttributeDefinitions(Unknown Source)
    at com.fmrco.ios.gppas.gems.request.RequestSFEJB.getRequestSearchAttributes(RequestSFEJB.java:433)
    at com.fmrco.ios.gppas.gems.request.EJSRemoteStatelessRequestSF_5518517c.getRequestSearchAttributes(Unknown Source)
    at com.fmrco.ios.gppas.gems.request._RequestSFRemote_Stub.getRequestSearchAttributes(Unknown Source)
    at com.fmrco.ios.gppas.gems.request.RequestBD.getRequestSearchAttributes(RequestBD.java:217)
    at com.fmrco.ios.gppas.gems.action.SearchAction.execute(SearchAction.java:139)
    at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
    at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
    at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
    at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
    at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
    at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
    at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
    at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
    at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
    at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
    at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:923)
    at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:528)
    at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:176)
    at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:79)
    at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:201)
    at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
    at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:182)
    at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)
    at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
    at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:516)
    at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:366)
    at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:593)

    Are you using the same database and JDBC drivers in WebSphere? This seems to me to be the likely problem -- in JDeveloper you've coded for the JDBC driver to return the oracle.xdb.XMLType, and in WebSphere you have a different JDBC driver and it's somehow returning something different.
    One note is that in developer preview 2 for 10.0.3 on OTN we actually have better and more explicit mapping control to the XMLType (i.e., you make it a Document in your object model). You might want to play with that at some point.
    As for your current situation, all I can suggest is to open your source.zip file for TopLink (it's in the jlib director with your other jars), and handle the situation in the ConversionManager.java class (in other words, you will need to experiement and check what types are coming back from each of the drivers and then write code to behave how you'd like).
    - Don

  • Unbounded wildcard type: type mismatch error

    I have a problem with Generics which to me seems to be caused by type erasure and necessary reification, but I can't find a solution.
    In order to keep the problem simple I've removed all unnecessary functions from the code and just made sure it still compiles - the only method that does not compile (and kept its whole code) is the method processContents() that causes my problem.
    I hope that the code is self-explanatory enough without comments.
    public interface Iterator<T> {
         public T next();
         public boolean hasNext();
    public interface FunctionInterface<T> {
         T apply(T argument);
    public class DataStructure<T> {
         private T content;
         public DataStructure(T content) {
              this.content = content;
         public T get() {
              return content;
         public Iterator<DataStructure<T>> contents() {
              return new Iterator<DataStructure<T>>() {
                   @Override
                   public boolean hasNext() {
                        return false;
                   @Override
                   public DataStructure<T> next() {
                        return null;
    }The problem is caused in the methode processContents() of the methode SubDataStructure, a sub-class of DataStructure.
    public class SubDataStructure<T extends FunctionInterface<? super T>> extends
              DataStructure<T> implements FunctionInterface<SubDataStructure<T>> {
         public SubDataStructure(T content) {
              super(content);
         public T processContents() {
              Iterator<DataStructure<T>> iter = contents();
              T value = get();
              while (iter.hasNext()) {
                   T otherValue = iter.next().get();
                   // following line causes ERROR: Type mismatch: cannot convert from
                   // capture#1-of ? super T to T ReducedDataStructure.java
                   value = value.apply(otherValue);
              return this.get();
         @Override
         public SubDataStructure<T> apply(SubDataStructure<T> argument) {
              // arbitrary action
              return argument;
    }As you see the commented line causes an error saying "Type mismatch: cannot convert from capture#1-of ? super T to T ReducedDataStructure.java" - from my understanding the type should be correct but got lost at compile-time, but would have to be restored at run-time. If so, a type-cast should solve the problem, but I'd prefer to find a clean solution without unchecked casts.
    I've tried to find an answer in various books and the linked FAQ, but haven't found it yet - I admit that after a few hours of trying I got a bit frustrated, so I hope that this is a more common problem to developers and that somebody might be able to help. Any suggestions how do solve this problem? I'd be grateful for your answers.
    Bob
    Edited by: RobertSingleton on Nov 23, 2009 2:17 PM
    Edited by: RobertSingleton on Nov 23, 2009 2:21 PM

    RobertSingleton wrote:
    jtahlborn wrote:
    you have defined T to have a lower bound of "FunctionInterface<? super T>", value is of the type T, therefore the return type of value.apply (which comes from FunctionInterface) is "? super T". a value of "? super T" returned from the "apply" method cannot be re-assigned to "value", which has type T.Thanks, but I understood it so far. The question to me is, whether it is possible to solve the problem as shown here.
    are you sure you don't want the class typedef to be "T extends FunctionInterface<? extends T>"?Yes, but would you have other suggestions? DataStructure manages Objects, SubDataStructure adds a few new methods, FunctionInterface is an Interface like Comparable. Maybe that's a bit too general to see whether the current solution is appropriate or not. But no matter how the a better solution would look like, I'd be very curious how to solve the problem in its current settings, since I'm positive I could apply the solution in the future to different problems with the same cause.the problem is that you have defined FunctionInterface in this case to return anything up to Object (? super T). "super" is good for saying "give me an object which can handle this type or any of its parent types". it's generally not so good for a return type, as you are essentially saying "i can return anything here". you want to repeatedly apply FunctionInterface, but your definition allows you to return something which may not implement FunctionInterface. so, you code cannot work with your current definitions. without having a better understanding of what you are trying to do, i can't really put forward any meaningful suggestions for fixing the code.

  • UDT Type Mismatch Problem

    Hi;
    We have a project which has two modules which uses same UDTs. We have generated UDT's shown in example code. When our project calls B's SP which should return UDT from B.DbObjects namespace, the returned type is A.DbObjects namespace. This occurs because Oracle Data Access gets type name from OracleCustomTypeMappingAttribute and creates instance with that value. Since the namespaces are different, we cannot bind data to our return type. Is there a solution for this?
    Code:
    ///Module A - Output A.dll
    namespace A.DbObjects
    [OracleCustomTypeMapping("SCHEMA.UDTNAME")]
    public partial class UDTNAME : OracleCustomType
    [OracleObjectMappingAttribute("X")]
    public string X { get; set; }
    [OracleObjectMappingAttribute("Y")]
    public decimal Y { get; set; }
    [OracleObjectMappingAttribute("Z")]
    public decimal Z { get; set; }
    ///Module B - Output B.dll
    namespace B.DbObjects
    [OracleCustomTypeMapping("SCHEMA.UDTNAME")]
    public partial class UDTNAME : OracleCustomType
    [OracleObjectMappingAttribute("X")]
    public string X { get; set; }
    [OracleObjectMappingAttribute("Y")]
    public decimal Y { get; set; }
    [OracleObjectMappingAttribute("Z")]
    public decimal Z { get; set; }
    }

    CD Tom wrote:
    > [Microsoft][ODBC Microsoft Access Driver] Data type
    mismatch in criteria
    > expression.
    Hi, Your clue is in the error message.
    This a data type mismatch, it would seem you are trying to
    pass a data
    type to the database that is not consistent with the data
    type set in
    the database design for that column.
    Cheers jojo
    Adobe Community Expert for Dreamweaver 8
    http://www.webade.co.uk
    http://www.ukcsstraining.co.uk/
    Extending Knowledge, Daily.
    http://www.communityMX.com/
    Free 10 day trial
    http://www.communitymx.com/joincmx.cfm

  • Type mismatch - apex_interactive_reports_4_0.js

    Hi,
    I have a page with an interactive report region, that is shown conditionally.
    Initially, the IR functions like Select columns, or filtering work fine.
    After a popup reoprt is invoked, the IR functions do not work any longer.
    The error in IE is:
    Message: Type mismatch.
    Line: 1
    Char: 23299
    Code: 0
    URI: http://10.60.4.220:7001/i/javascript/apex_interactive_reports_4_0.js
    The error in firebug is:
    uncaught exception: [Exception... "Could not convert JavaScript argument arg 0 [nsIDOMHTMLDivElement.replaceChild]" nsresult: "0x80570009 (NS_ERROR_XPC_BAD_CONVERT_JS)" location: "JS frame :: http://10.60.4.220:7001/i/javascript/apex_interactive_reports_4_0.js :: anonymous :: line 1" data: no]
    If I make the IR region unconditional, there is no problem.
    Any suggestions?
    Regards, Wouter Rijke
    Edited by: Wouter Rijke on 15-aug-2011 6:24

    I'm having the same problem here. Any ideas how to solve it?
    Apex version 4.1

  • RisPort problems - argument type mismatch

    Hi!
    I'm trying to get a list of devices via RisPort. I copied example from http://www.cisco.com/univercd/cc/td/doc/product/voice/vpdd/cdd/5_0/ccmdev/ccmdvch2.htm chapter Real-Time Information (RisPort)
    Selecting Cisco Unified CallManager Real-Time Information , but service returning following xml:
    <?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><soapenv:Fault><faultcode>soapenv:Server.userException</faultcode><faultstring>java.lang.IllegalArgumentException: argument type mismatch</faultstring><detail><ns1:hostname xmlns:ns1="http://xml.apache.org/axis/">CUCM6</ns1:hostname></detail></soapenv:Fault></soapenv:Body></soapenv:Envelope>
    And my question is: How can I recognize, which argument? There are no any notes or details :-(
    Many thanks for your ideas!!
    ps. or is it posible to get that list any other way? (CUM6)

    check your gmail~i sent my code to your email!
    here is the xml String:
    String strSoapMsg="<?xml version=\"1.0\" encoding=\"utf-8\"?>"+
    "http://schemas.xmlsoap.org/soap/envelope/\" "+
    "xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" "+
    "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">"+
    ""+
    "http://schemas.xmlsoap.org/soap/encoding/\">"+
    ""+
    ""+
    ""+
    "http://schemas.xmlsoap.org/soap/encoding/\" "+
    "xsi:type=\"ns1:CmSelectionCriteria\" xmlns:soapenc=\"http://schemas.xmlsoap.org/soap/encoding/\" "+
    "xmlns:ns1=\"tns:CmSelectionCriteria\">"+
    "2000"+
    ""+
    "Name"+
    ""+
    ""+
    ""+
    ""+

  • Weird type mismatch

    The problem is the following:
    I've created two classes, one called Corpo and another called
    KeyManager.
    The Corpo class is a body in a game, like a rock, a tree, the
    character, etc...
    The KeyManager class manages all the key inputs and passes
    the action associated to the key pressed to the object of the class
    Corpo (further, i'll create a subclass of Corpo named Char or sth
    like that, cuz just a char receive actions from keyboard)
    so, the class KeyManager is created this way:
    var km:KeyManager=new KeyManager(target);
    where target is the Corpo object that will be associated to
    the km
    i'm using strong typing so the "target" is an object of the
    Corpo class
    but, inside KM class, occurs an error
    i try to put the "target" reference onto a variable
    predefined, as shown at the end of the message:
    and then i compile, it returns:
    Type mismatch in assignment statement: found Corpo where
    String is required.
    _TARGET=alvo
    i've tried a lot and didn't find a solution
    sorry if i've been so extensive
    thks since now

    I've tried that too.
    The return:
    **Error** C:\Documents and Settings\Bruno
    Martins\Desktop\teste em flash\KeyManager.as: Line 9: Type mismatch
    in assignment statement: found Corpo where String is required.
    _TARGET=new Corpo();
    **Error** C:\Documents and Settings\Bruno
    Martins\Desktop\teste em flash\KeyManager.as: Line 10: Type
    mismatch in assignment statement: found Corpo where String is
    required.
    _TARGET=alvo
    Total ActionScript Errors: 2 Reported Errors: 2
    I don't know why the type of _TARGET returns String. Is this
    the default?

  • Runtime type mismatch

    We have a LabVIEW strict typedef that we use in many of our VIs that details the StartDate/Time of our tests.  In TestStand, when I "SpecifyModule" for one of my test steps, and view the VI parameters and their Value, I was having to type in RunState.Root.Locals.StartDate.Text/ShortText/Year/Month, and similarly RunState.Root.Locals.StartTime.Text/Hours/Minutes/Seconds.  This was prone to error (and time consuming) typing this in everytime, so I thought I would go to the LabVIEW .ctl file and for the Year (for example), I changed the type from an integer to a string.  I then set the Year default value to RunState.Root.Locals.StartDate.Year.  My hope was that I could "Specify Module" and see RunState.Root.Locals.StartDate.Year waiting for me.  It does show up, but there are two problems:  (1) Since it's a string in LabVIEW, it arrives in quotes in TestStand "RunState.Root.Locals.StartDate.Year".  This is not too big a deal, as I can remove the quotes.  At least the developers don't have to type that everytime. (2) This problem is the killer, and nullifies all my efforts.
    Since LabVIEW passes back RunState.Root.Locals.StartDate.Year as a string, TestStand makes its type "ASCII String".  At runtime, however, the value returned by TestStand into RunState.Root.Locals.StartDate.Year is a Number(I32).  A type mismatch dialog appears, and basically, everything is over.
    Is there a way to get around this?

    Hi mrbean,
    In your Expression Browser under the Operations/Functions tab you can find the Evaluate() function (listed under Other). The evaluate function evaluates any string you pass it, if you pass in the string version of your property it should return the actual property value. This should help you get past the type mismatch.
    Adam
    National Instruments
    Applications Engineer

  • WBS Element Actual Cost and 'Detailing the  Value Type ' issue

    Hello BW Experts ,
    I want to extract the WBS Element Actual Cost and Revenue.
    I have selected the data source 0CO_OM_WBS_6 .
    In this data source there is a field  Detailing the value type ' 0VTDETAIL.
    As per SAP BI Help if the value of this field exists between 1 to 4 then it is actual cost of WBS ( also Key figure Category 0METYPE should be 1000 for actual cost and for revenue it is 1001).
    value 4 of 0VTDETAIL means CO Activity Allocations.
    When I see  the data from this data source in RSA3 , I could not get any WBS whose 0VTDETAIL is 1 to 4 and Key Firgure Category as 1000, value type = 10.
    Is there any other data source I should select in order to get actual cost for WBS ?
    I can see the settelment cost whose 0VTDETAIL = 5 through this data source in RSA3.
    But I want to see the data for the Actual Cost whose 0VTDETAIL = 4 .
    What could be the reason ?
    Thanks in advance .
    Amol.

    Dear Oscar,
    Thanks for your response,
    The Actual Cost posted by our Functional Consultant is USD 250, but i am getting the Total Actual cost is ZERO (Sum of -250 +250) as i shown above.
    the posted  actual cost is +250, finally we need this figure only,
    if i do restriction on Sender receiver Indicater field with S than i will get Actual Cost 250, but in SAP standard RKF for Actual Cost there is no restriction on Sender receiver Indicater field (S & H)
    I hope you got my point now.
    Thanks
    Amar Reddy

  • PLEASE HELP - Type mismatch: 'LBound'

    I cannot consolidate anything in my production application, I am getting this error on my rules.
    File: CHsvScriptEngine.cpp Version: 9.3.1.0.1502 Line: 353 Error: (-2147209278)(0x80042FC2)(Error executing VBScript Microsoft VBScript runtime error, Line 1090:Type mismatch: 'LBound'.)
    Backround:
    I had an entity that had no parent (parent = root).
    I then moved this entity under a parent. Now when I calculate this entity I get the error message above.
    Any ideas?
    I have the exact same rules/memeber lists/metadata in my test application and it works fine but not in production??
    Rules:
    '==========================================================
    'Calculate current month to prior MONTH non-FX differece
    '==========================================================
    'Create a list of base balance heet accounts
    sAcctList = HS.Account.List("","Master1")
    'Loop through each account in the list
    For sAcctLoop = LBound(sAcctList) To UBound(sAcctList) LINE 1090
    'Set the accounts to process
    sAcct = sAcctList(sAcctLoop)
    'HS.Clear "A#" & sAcct & ".C2#Other.C4#[None]"
    HS.EXP "A#" & sAcct & ".C2#Other.I#[ICP None].C4#[None] =" & _
    "A#" & sAcct & ".C1#TOTC1.C2#Diff_CM_PM.I#[ICP Top].C4#[None] - " & _
    "A#" & sAcct & ".C1#TOTC1.C2#CTA_Chg_Mom.I#[ICP Top].C4#[None]"
    Next

    It turns out that I had loaded an incorrect member list file and it was missing the account member list that this section of code in the rules was looking for.
    An error message of "missing member list" would have been helpful. :(
    It was only through trial and error that I figured it out.

  • Type Mismatch error while saving a BPC Report using eTools

    Hi,
    Iam getting a 'type mismatch' error when trying to save a BPC Excel  workbook using eTools>Save Dynamic Template >Company>eExcel. I am saving it as an .xlsx file.
    Can anyone please help out and let me know why I am getting this error.
    Thanks
    Arvind

    Hi,
    You need to save the file as .xls extension.

  • Type Mismatch error while calling a Java Function from Visual Basic 6.0...

    Hi,
    I'm having a problem in calling the Java Applet's Function from Visual Basic. First, I'm getting the handle of the Java Applet and components of it using "Document.Applets(n)" which is a HTML function. I'm calling this function from Visual Basic. My code is something like this...
    ' // Web1 is IE Browser in my Form.
    Dim Ap,Comp
    Dim Bol as Boolean
    Bol = true
    Ap = Web1.Document.Applets(0).getWindow() ' \\ Gets the Parent Window.
    Ap.setTitle("My Java Applet") ' \\ Sets the Title of the window.
    msgbox Ap.getVisibility() ' \\ This will return a Java boolean ( true or false )
    Ap.setVisibility(Bol) ' \\ Function Syntax is : void setVisibility(boolean b)
    Here in my code , i'm able to call any function that which accepts Integer or String but not boolean. So, i m facing problem with Ap.setVisibility() function. It gives me a "Type mismatch error" while executing it. Can you please tell me a way to do this from Visual Basic !
    I'm using Visual Basic 6.0, Windows 2000 , J2SDK 1.4.2_05.
    Please help me Friends.
    Thanks and Regards,
    Srinivas Annam.

    Hi
    I am not sure about this solution. try this
    Declare a variable as variant and store the boolean value in that variable and then use in ur method.
    Post ur reply in this forum.
    bye for now
    sat

  • Type mismatch on SOAP Web Service method invocation

    When I run the generated client for a web service, I get the following error, which I can get rid of by using a primitive type (e.g. String) as the parameter to doSomething instead of wstest.test2.APIClass3, i.e. the SOAP server seems happy handling wstest.test2.APIClass1 as a return type, but not a similar class as a parameter type:
    [SOAPException: faultCode=SOAP-ENV:Server; msg=type mismatch [java.lang.IllegalArgumentException]]
         wstest.test2.APIClass1 wstest.test2.EmbeddedStatelessTest2Stub.doSomething(wstest.test2.APIClass3)
              EmbeddedStatelessTest2Stub.java:89
         void wstest.test2.EmbeddedStatelessTest2Stub.main(java.lang.String[])
              EmbeddedStatelessTest2Stub.java:48
    I am using JDeveloper9i 9.0.3 Preview and the standalone OC4J 9.0.3 that came with it. I followed the Oracle9i JDeveloper 9.0.3 Web Services Quickstart Install (http://otn.oracle.com/tech/webservices/htdocs/quickstart/quickstart903.html) to get OC4J running standalone. I had to register the stateless EJB provider, and the WEB services wizard didn't manage to include APIClass2 (an instance of which is contained in APIClass1) in the .dd so I added it manually which works fine with APIClass1 as the method return type.
    Sorry for the length of this posting, but I wasn't sure which bits would be relevant.
    WSDL
    ====
    <?xml version = '1.0' encoding = 'windows-1252'?>
    <!--Generated by the Oracle9i JDeveloper Web Services WSDL Generator-->
    <!--Date Created: Wed Sep 11 15:54:08 BST 2002-->
    <definitions
    name="StatelessTest2"
    targetNamespace="http://wstest/test2/StatelessTest2.wsdl"
    xmlns="http://schemas.xmlsoap.org/wsdl/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
    xmlns:tns="http://wstest/test2/StatelessTest2.wsdl"
    xmlns:ns1="http://wstest.test2/IStatelessTest2.xsd">
    <types>
    <schema
    targetNamespace="http://wstest.test2/IStatelessTest2.xsd"
    xmlns="http://www.w3.org/2001/XMLSchema"
    xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/">
    <complexType name="wstest_test2_APIClass3" jdev:packageName="wstest.test2" xmlns:jdev="http://xmlns.oracle.com/jdeveloper/webservices">
    <all>
    <element name="Name" type="string"/>
    <element name="Value" type="double"/>
    </all>
    </complexType>
    <complexType name="wstest_test2_APIClass1" jdev:packageName="wstest.test2" xmlns:jdev="http://xmlns.oracle.com/jdeveloper/webservices">
    <all>
    <element name="Name" type="string"/>
    <element name="Value" type="double"/>
    <element name="APIClass2" type="ns1:wstest_test2_APIClass2"/>
    </all>
    </complexType>
    <complexType name="wstest_test2_APIClass2" jdev:packageName="wstest.test2" xmlns:jdev="http://xmlns.oracle.com/jdeveloper/webservices">
    <all>
    <element name="IntegerValue" type="int"/>
    <element name="DoubleValue" type="double"/>
    <element name="Name" type="string"/>
    </all>
    </complexType>
    </schema>
    </types>
    <message name="doSomething0Request">
    <part name="p0" type="ns1:wstest_test2_APIClass3"/>
    </message>
    <message name="doSomething0Response">
    <part name="return" type="ns1:wstest_test2_APIClass1"/>
    </message>
    <portType name="StatelessTest2PortType">
    <operation name="doSomething">
    <input name="doSomething0Request" message="tns:doSomething0Request"/>
    <output name="doSomething0Response" message="tns:doSomething0Response"/>
    </operation>
    </portType>
    <binding name="StatelessTest2Binding" type="tns:StatelessTest2PortType">
    <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
    <operation name="doSomething">
    <soap:operation soapAction="" style="rpc"/>
    <input name="doSomething0Request">
    <soap:body use="encoded" namespace="wstest.test2.StatelessTest2" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
    </input>
    <output name="doSomething0Response">
    <soap:body use="encoded" namespace="wstest.test2.StatelessTest2" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
    </output>
    </operation>
    </binding>
    <service name="StatelessTest2">
    <port name="StatelessTest2Port" binding="tns:StatelessTest2Binding">
    <soap:address location="http://localhost:8888/soap/servlet/soaprouter"/>
    </port>
    </service>
    </definitions>
    Deployment Decriptor
    ====================
    <?xml version = '1.0' encoding = 'windows-1252'?>
    <!--Generated by the Oracle9i JDeveloper Web Services Deployment Descriptor Generator-->
    <!--This Deployment Descriptor file is for use with the Oracle9iAS Release 2 / Apache 2.2 SOAP Server SOAP Server-->
    <!--Date Created: Wed Sep 11 15:54:09 BST 2002-->
    <isd:service
    id="wstest.test2.StatelessTest2"
    type="rpc"
    xmlns:isd="http://xmlns.oracle.com/soap/2001/04/deploy/service">
    <isd:provider
    id="stateless-ejb-provider"
    methods="doSomething"
    scope="Request">
    <isd:option key="JNDILocation" value="StatelessTest2"/>
    <isd:option key="DeploymentName" value="StatelessTest2"/>
    </isd:provider>
    <isd:faultListener
    class="org.apache.soap.server.DOMFaultListener"/>
    <isd:mappings>
    <isd:map
    encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
    xmlns:x="http://wstest.test2/IStatelessTest2.xsd"
    qname="x:wstest_test2_APIClass1"
    javaType="wstest.test2.APIClass1"
    java2XMLClassName="org.apache.soap.encoding.soapenc.BeanSerializer"
    xml2JavaClassName="org.apache.soap.encoding.soapenc.BeanSerializer"/>
    <isd:map
    encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
    xmlns:x="http://wstest.test2/IStatelessTest2.xsd"
    qname="x:wstest_test2_APIClass2"
    javaType="wstest.test2.APIClass2"
    java2XMLClassName="org.apache.soap.encoding.soapenc.BeanSerializer"
    xml2JavaClassName="org.apache.soap.encoding.soapenc.BeanSerializer"/>
    <isd:map
    encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
    xmlns:x="http://wstest.test2/IStatelessTest2.xsd"
    qname="x:wstest_test2_APIClass3"
    javaType="wstest.test2.APIClass3"
    java2XMLClassName="org.apache.soap.encoding.soapenc.BeanSerializer"
    xml2JavaClassName="org.apache.soap.encoding.soapenc.BeanSerializer"/>
    </isd:mappings>
    </isd:service>
    StatelesTest2.java
    ==================
    package wstest.test2;
    import javax.ejb.EJBObject;
    import java.rmi.RemoteException;
    public interface StatelessTest2 extends EJBObject {
    * @webmethod
    APIClass1 doSomething(APIClass3 p0) throws RemoteException;
    StatelessTest2Bean.java
    =======================
    package wstest.test2.impl;
    import javax.ejb.SessionBean;
    import javax.ejb.SessionContext;
    import wstest.test2.APIClass1;
    import wstest.test2.APIClass2;
    import wstest.test2.APIClass3;
    public class StatelessTest2Bean implements SessionBean {
    public void ejbCreate() {
    public void ejbActivate() {
    public void ejbPassivate() {
    public void ejbRemove() {
    public void setSessionContext(SessionContext ctx) {
    public APIClass1 doSomething(APIClass3 p0) {
    APIClass1 ac1 = new APIClass1();
    ac1.setName(p0.getName() + "1");
    ac1.setValue(p0.getValue());
    APIClass2 ac2 = ac1.getAPIClass2();
    ac2.setName(p0.getName() + "2");
    ac2.setIntegerValue(new Integer(ac1.getValue().intValue()));
    ac2.setDoubleValue(new Double(ac1.getValue().doubleValue() * 2.0));
    return ac1;
    EmbeddedStatelessTest2Stub.java
    ===============================
    I change the http port from 8988 to 8888 to get this working. Also, the generated referenced a new class APIClass31, also generated, but as it didn't make any difference to the problem I replaced it with APIClass3, which has essentially the same characteristics.
    package wstest.test2;
    import oracle.soap.transport.http.OracleSOAPHTTPConnection;
    import org.apache.soap.encoding.soapenc.BeanSerializer;
    import org.apache.soap.encoding.SOAPMappingRegistry;
    import org.apache.soap.util.xml.QName;
    import java.net.URL;
    import org.apache.soap.Constants;
    import org.apache.soap.Fault;
    import org.apache.soap.SOAPException;
    import org.apache.soap.rpc.Call;
    import org.apache.soap.rpc.Parameter;
    import org.apache.soap.rpc.Response;
    import wstest.test2.*;
    import java.util.Vector;
    import java.util.Properties;
    import wstest.test2.APIClass1;
    import wstest.test2.APIClass2;
    import wstest.test2.APIClass3;
    * Generated by the Oracle9i JDeveloper Web Services Stub/Skeleton Generator.
    * Date Created: Wed Sep 11 15:41:19 BST 2002
    * WSDL URL: file:/C:/Projects/WSTest/Test2/src/wstest/test2/StatelessTest2.wsdl
    public class EmbeddedStatelessTest2Stub
    public EmbeddedStatelessTest2Stub()
    m_httpConnection = new OracleSOAPHTTPConnection();
    m_smr = new SOAPMappingRegistry();
    BeanSerializer beanSer = new BeanSerializer();
    m_smr.mapTypes(Constants.NS_URI_SOAP_ENC, new QName("http://wstest.test2/IStatelessTest2.xsd", "wstest_test2_APIClass1"), wstest.test2.APIClass1.class, beanSer, beanSer);
    m_smr.mapTypes(Constants.NS_URI_SOAP_ENC, new QName("http://wstest.test2/IStatelessTest2.xsd", "wstest_test2_APIClass2"), wstest.test2.APIClass2.class, beanSer, beanSer);
    m_smr.mapTypes(Constants.NS_URI_SOAP_ENC, new QName("http://wstest.test2/IStatelessTest2.xsd", "wstest_test2_APIClass3"), wstest.test2.APIClass3.class, beanSer, beanSer);
    public static void main(String[] args)
    try
    EmbeddedStatelessTest2Stub stub = new EmbeddedStatelessTest2Stub();
    // Add your own code here.
    APIClass3 ac3 = new APIClass3();
    ac3.setName("fred");
    ac3.setValue(new Double(17.36));
    printAPIClass3("Input", ac3);
    APIClass1 retAc1 = stub.doSomething(ac3);
    printAPIClass1("Return", retAc1);
    catch(Exception ex)
    ex.printStackTrace();
    public String endpoint = "http://172.25.1.176:8888/soap/servlet/soaprouter";
    private OracleSOAPHTTPConnection m_httpConnection = null;
    private SOAPMappingRegistry m_smr = null;
    public APIClass1 doSomething(APIClass3 p0) throws Exception
    APIClass1 returnVal = null;
    URL endpointURL = new URL(endpoint);
    Call call = new Call();
    call.setSOAPTransport(m_httpConnection);
    call.setTargetObjectURI("wstest.test2.StatelessTest2");
    call.setMethodName("doSomething");
    call.setEncodingStyleURI(Constants.NS_URI_SOAP_ENC);
    Vector params = new Vector();
    params.addElement(new Parameter("p0", wstest.test2.APIClass3.class, p0, null));
    call.setParams(params);
    call.setSOAPMappingRegistry(m_smr);
    Response response = call.invoke(endpointURL, "");
    if (!response.generatedFault())
    Parameter result = response.getReturnValue();
    returnVal = (APIClass1)result.getValue();
    else
    Fault fault = response.getFault();
    throw new SOAPException(fault.getFaultCode(), fault.getFaultString());
    return returnVal;
    private static void printAPIClass3(String prefix, APIClass3 ac3)
    System.out.println(prefix + ": [" + ac3.getName() + ", " + ac3.getValue() + "]");
    private static void printAPIClass1(String prefix, APIClass1 ac1)
    APIClass2 ac2 = ac1.getAPIClass2();
    System.out.println(prefix + ": [" + ac1.getName() + ", " + ac1.getValue() + " ["
    + ac2.getName() + ", " + ac2.getIntegerValue() + ", " + ac2.getDoubleValue()
    + "]]");
    public void setMaintainSession(boolean maintainSession)
    m_httpConnection.setMaintainSession(maintainSession);
    public boolean getMaintainSession()
    return m_httpConnection.getMaintainSession();
    public void setTransportProperties(Properties props)
    m_httpConnection.setProperties(props);
    public Properties getTransportProperties()
    return m_httpConnection.getProperties();
    APIClass1.java
    ==============
    package wstest.test2;
    import java.io.Serializable;
    public class APIClass1 implements Serializable {
    private String name;
    private Double value;
    private APIClass2 apiClass2;
    public APIClass1() {
    name = new String("");
    value = new Double(0.0);
    apiClass2 = new APIClass2();
    public String getName() {
    return name;
    public void setName(String newName) {
    name = new String(newName);
    public Double getValue() {
    return value;
    public void setValue(Double newValue) {
    value = new Double(newValue.doubleValue());
    public APIClass2 getAPIClass2() {
    return apiClass2;
    public void setAPIClass2(APIClass2 newAPIClass2) {
    apiClass2 = new APIClass2();
    apiClass2.setName(newAPIClass2.getName());
    apiClass2.setDoubleValue(newAPIClass2.getDoubleValue());
    apiClass2.setIntegerValue(newAPIClass2.getIntegerValue());
    APIClass2.java
    ==============
    package wstest.test2;
    import java.io.Serializable;
    public class APIClass2 implements Serializable {
    private String name;
    private Integer iVal;
    private Double dVal;
    public APIClass2() {
    iVal = new Integer(0);
    dVal = new Double(0.0);
    name = new String("");
    public Integer getIntegerValue() {
    return iVal;
    public void setIntegerValue(Integer newIVal) {
    iVal = new Integer(newIVal.intValue());
    public Double getDoubleValue() {
    return dVal;
    public void setDoubleValue(Double newDoubleValue) {
    dVal = new Double(newDoubleValue.doubleValue());
    public String getName() {
    return name;
    public void setName(String newName) {
    name = new String(newName);
    APIClass3.java
    ==============
    package wstest.test2;
    import java.io.Serializable;
    public class APIClass3 implements Serializable {
    private String name;
    private Double value;
    public APIClass3() {
    public String getName() {
    return name;
    public void setName(String newName) {
    name = new String(newName);
    public Double getValue() {
    return value;
    public void setValue(Double newValue) {
    value = new Double(newValue.doubleValue());
    APIClass31.java
    ===============
    package wstest.test2;
    * Generated by the Oracle9i JDeveloper Web Services Stub/Skeleton Generator.
    * Date Created: Wed Sep 11 10:44:56 BST 2002
    * <pre>
    * &lt;complexType name="wstest_test2_APIClass3" jdev:packageName="wstest.test2" xmlns:jdev="http://xmlns.oracle.com/jdeveloper/webservices">
    * &lt;all>
    * &lt;element name="Name" type="string"/>
    * &lt;element name="Value" type="double"/>
    * &lt;/all>
    * &lt;/complexType>
    * </pre>
    public class APIClass31 {
    private String m_Name;
    private Double m_Value;
    public APIClass31() {
    public APIClass31(String Name, Double Value) {
    m_Name = Name;
    m_Value = Value;
    public void setName(String Name) {
    m_Name = Name;
    public String getName() {
    return m_Name;
    public void setValue(Double Value) {
    m_Value = Value;
    public Double getValue() {
    return m_Value;

    I believe this is a bug in JDev/OC4J 9.0.3 that is being further investigated right now. I have duplicated your problem in a simpler test case and folks are looking into it.
    Mike.

  • How can I fix a xquery resulting error ORA-19279: XPTY0004 - XQuery dynamic type mismatch: expected singleton sequence  - got multi-item sequence

    Hello,
    How can I improve the XQuery below in order to obtain a minimised return to escape from both errors ORA-19279 and ORA-01706?
    XQUERY for $book in  fn:collection("oradb:/HR/TB_XML")//article let $cont := $book/bdy  where  $cont   [ora:contains(text(), "(near((The,power,Love),10, TRUE))") > 0] return $book
    ERROR:
    ORA-19279: XPTY0004 - XQuery dynamic type mismatch: expected singleton sequence
    - got multi-item sequence
    XQUERY for $book in  fn:collection("oradb:/HR/TB_XML")//article let $cont := $book/bdy  where  $cont   [ora:contains(., "(near((The,power,Love),10, TRUE))") > 0] return $book//bdy
    /*ERROR:
    ORA-01706: user function result value was too large
    Regards,
    Daiane

    below query works for 1 iteration . but for multiple sets i am getting following error .
    When you want to present repeating groups in relational format, you have to extract the sequence of items in the main XQuery expression.
    Each item is then passed to the COLUMNS clause to be further shredded into columns.
    This should work as expected :
    select x.*
    from abc t
       , xmltable(
           xmlnamespaces(
             default 'urn:swift:xsd:fin.970.2011'
           , 'urn:swift:xsd:mtmsg.2011' as "ns0"
         , '/ns0:FinMessage/ns0:Block4/Document/MT970/F61a/F61'
           passing t.col1
           columns F61ValueDate                Varchar(40) Path 'ValueDate'
                 , DebitCreditMark             Varchar(40) Path 'DebitCreditMark'
                 , Amount                      Varchar(40) Path 'Amount'
                 , TransactionType             Varchar(40) Path 'TransactionType'
                 , IdentificationCode          Varchar(40) Path 'IdentificationCode'                 
                 , ReferenceForTheAccountOwner Varchar(40) Path 'ReferenceForTheAccountOwner'
                 , SupplementaryDetails        Varchar(40) Path 'SupplementaryDetails'       
         ) x ;

  • Getting Type Mismatch Error while passing Array of Interfaces from C#(VSTO) to VBA through IDispatch interface

    Hi,
    I am facing issues like Type Mismatch while passing Array of interfaces from .NET  to VBA and vice versa using VSTO technology.
    My requirement is that ComInterfaceType needs to be InterfaceIsIDispatch.
    My Interface definition is somewhat like this
        [ComVisible(true)]
        [InterfaceType(ComInterfaceType.InterfaceIsIDispatch)]
        [Guid("AAF48FBC-52B6-4179-A8D2-944D7FBF264E")]
        public interface IInterface1
            [DispId(0)]
            IInterface2[] GetObj();
            [DispId(1)]
            void SetObj(ref IInterface2[] obj);
        [ComVisible(true)]
        [InterfaceType(ComInterfaceType.InterfaceIsIDispatch)]
        [Guid("CDC06E1D-FE8C-477E-97F1-604B73EF868F")]
        public interface IInterface2
    IF i am passing array of above interface (created in C#.Net) to VBA using GetObj API,i am getting type mismatch error in VBA while assigning the value to variable in VBA.Even assigning to variant type variable gives TypeMismatch.
    Also while passing Array of interfaces from VBA using SetObj API,excel crashes and sometimes it says method doesn't exists.
    Kindly provide some assistance regarding the same.
    Thanks

    Hi,
    I am facing issues like Type Mismatch while passing Array of interfaces from .NET  to VBA and vice versa using VSTO technology.
    My requirement is that ComInterfaceType needs to be InterfaceIsIDispatch.
    My Interface definition is somewhat like this
        [ComVisible(true)]
        [InterfaceType(ComInterfaceType.InterfaceIsIDispatch)]
        [Guid("AAF48FBC-52B6-4179-A8D2-944D7FBF264E")]
        public interface IInterface1
            [DispId(0)]
            IInterface2[] GetObj();
            [DispId(1)]
            void SetObj(ref IInterface2[] obj);
        [ComVisible(true)]
        [InterfaceType(ComInterfaceType.InterfaceIsIDispatch)]
        [Guid("CDC06E1D-FE8C-477E-97F1-604B73EF868F")]
        public interface IInterface2
    IF i am passing array of above interface (created in C#.Net) to VBA using GetObj API,i am getting type mismatch error in VBA while assigning the value to variable in VBA.Even assigning to variant type variable gives TypeMismatch.
    Also while passing Array of interfaces from VBA using SetObj API,excel crashes and sometimes it says method doesn't exists.
    Kindly provide some assistance regarding the same.
    Thanks

Maybe you are looking for

  • Business content datasource enhancement

    Hi Experts, I am new to HR. We are implementing HR modules Personnel development and Personnel administration, while I was looking into business content extractors 0HR_PA_0 and OHR_PA_1, I found that there were only few fields in the extract structur

  • Performance issues with Imac intel 2011 27 inch..

    I have an 2011 imac 3,4 GHz Intel Core i7 with 16 GB 1333 MHz DDR3 RAM. Since a few months i noticed performance issues with FCPX, where before it would run through video it shows sometimes the color ball. Now the computer is slow in starting up and

  • FOR LOOP cursor that updates table A based on a value in table B

    Hi, I need a FOR LOOP cursor that scans and updates all pro-rata column in table EMPLOYEE(child) based on what pay classification all employees are on in the CLASSIFICATION(parent) table. DECLARE BEGIN IF employee.emp_type = 'FT' THEN UPDATE employee

  • How to create an application with a 'Windows' like interface?

    Hi, I am trying to create an application with an windows like interface where menu selections need to open bound taskflows in a page/window but i can not get it to work. I did the following - i created a page template with a panelStretchLayout - adde

  • Table field problem.

    Hi all,     when i am using t5ub1 table it doesn't contain LTEXT field in that table fields list.when I see the list output of that table it is coming.actually i want to use that LTEXT field.How can i use that.