Unexpected value type for Item Tag Name ; expected System.Single, received

Hi,
I am using PCo 2.1 with MII 12.1 to extract values from some PI tags. When I run the query, I get this error -
Unexpected value type for Item <Tag Name>; expected System.Single, received System.String[Value = Scan Off]
Can somebody explain what I need to do to get the correct result?
Regards,
Chanti.

To make the service return "whatever is passed", you have to take a step back and realize that there is a little understanding of XML Schema required.
When using a complexType, which is defined as a sequence, then you are implying an ordered sequence of elements. Default value for the 'minOccurs' attribute is 1. It's also important to understand that there is a difference between minOccurs=0 and nillable="true".
nillable="true" just means that the name element can carry a null value. If you want the name element to be optional, then you must use the minOccurs=0 and keep the maxOccurs to it's default value of 1. Using an array is just a bad work around. This is for deserialization (XML to JAVA).
The second part of you problem is on the serialization (or JAVA to XML). When you have a JAVA Bean, there is no way to make the difference between a member's value being null or not set, so it's impossible to decide if you need to send back a nul (xsi:nil="true"), an empty element <ns1:name/> or nothing.
That said, if you do want to go the XML route, you can use the dataBinding="false" flag in the different WSA command. Instead of converting XML into JAVA, you will have SOAPElement parameters, where you can do all you want (see WS user's guide [1] for details - chapter 16). Note that you have to make sure that the WSDL (your contract) reflect what you are doing on the wire (format of your messages), so that you do not geopardize your interoperability with other toolkit.
Note that this only applies to literal message formats (use attribute in WSDL), which is your case.
Hope this helps,
Eric
[1] http://download-west.oracle.com/otn_hosted_doc/ias/preview/web.1013/b14434.pdf

Similar Messages

  • How to use simple types for table column names ?

    Hi,
    can any one tell how to to use simple types for table column names?
    It is required in internationalizing of webdynpro applications.
    Regards,
    Rajesh

    Hi,
    1: define required column names in <SimpleType>
    2:use the following code to get those values
    3:bind 'text' property of Column headers to context attributes
    4:take a context attribute 'Value' as type of <SimpleType>
    5:set these values to context attributes
    IWDAttributeInfo objAttrInfo=wdContext.getNodeInfo().getAttribute(IPrivate<ViewName>View.IContextElement.VALUE);
    ISimpleTypeModifiable simple=objAttrInfo.getModifiableSimpleType();
    Map m=simple.getEnumerationTexts();
    Collection c=m.values();
    Iterator it=c.iterator();
    if(it.hasNext())
    wdContext.currentContextElement.set<att1>(it.next().toString);
    if(it.hasNext())
    wdContext.currentContextElement.set<att2>(it.next().toString);
    if(it.hasNext())
    wdContext.currentContextElement.set<att3>(it.next().toString);
    Regards
    LakshmiNarayana

  • 'Incorrect value type for array element in index N'

    Please help.  Preflight is flagging multiple 'Incorrect value type for array element in index N" > Required key /F is missing >Array element at index 0 is of wrong type' messages for pages throughout my text document with embedded navigation and annotations.What does it mean? Is there anything I can do?
    The origins of the file are from a selection of emails taken from Mail and gmail, and letters probably written on pc (Office) and converted to pdf...
    I'm on Mac Mavericks.
    Thanks for reading.

    What problem are you trying to solve with preflighting? What are you checking for?

  • How to ceate a new Country key,currency ,version and value type for report

    hi,
    can you please let me know How to ceate a new Country key,currency ,version and value type for report
    along with tables and tcodes.
    thanking you

    Not clear on your comments
    How to ceate a new Country key,currency,
       version and value type for report
    because in one line you are saying you want to create Country Key, which means your requirement is in some transaction whereas at the end, you say for report.
    Can you let us know you want to develop a report and if so, from which transactions, you want to take datas.  You have to be clear on this.
    thanks
    G. Lakshmipathi

  • How to Create Custom 0VTYPE (Value Type for Reporting)

    For the project I'm now on. There is a need to "create" or "customize" the Value Type for Reporting. I now there are in a Field Called WRTTP in R/3 (Controlling). Is there a way to create or maintain those "values" for the Field WRTTP so it can be brought to BW as a 0VTYPE Charaterictic Master Data.
    Remember that Master Data should be consistent within the Business Language and the Systems that support it.
    Message was edited by: Jesus Cova Graffe

    Kamal, that's an option, but then it wouldn't be consistent to what R/3 has as Master Data. So we're looking to "customize" the WRTTP values in order to take them from R/3 to BW.
    Message was edited by: Jesus Cova Graffe
    Message was edited by: Jesus Cova Graffe

  • Value Type for Reporting

    Hi all,
    In many reports I have seen Value type for Reporting ,what is that and why it is used?
    Thanking all who spare time in watching

    It's an indicator that distinguishes between costs such as:
    Actual costs -04
    Planned costs -01
    Target costs  -05
    Etc.,

  • Can we create new partner types for quallity notifications in SAP system?

    Can we create new partner types for quallity notifications in SAP system?
    The business requirement is to limit the available entries for partners  displayed when they search in quality notification. I have already created new partner functions & assigned the relevant partner types, however struggling with defining new partner types.
    Would appreciate help in resolving this.
    Thanks,
    Nilesh

    I know this customisation setting ...It allows us to create the partner functions & assign it to the partner determination procedure.
    Then you can assign the procedure to the notification type.
    This customisation setting does not solve the problem I have.
    I'm looking for the partner type creation process which we assign to the partner function.
    Edited by: NILESH BHAVE on Aug 12, 2010 3:06 PM

  • I have been charged several times for items I have not ordered or received...Paradise Cove App

    I have been charged several times for items I have not ordered or received...Paradise Cove App.
    On a few dates I have attempted to purchase items on Paradise cove...then been billed several times for items I never received.
    please remove these charges.
    Tony Starace

    Select the content which is causing a problem and use the 'Report a problem' button in Your Purchase History on your computer.

  • JAXB looking for tag type rather than tag name?

    Hi everyone.
    I'm trying to use JAXB to load an xml file, [http://www.unimod.org/xml/unimod.xml|http://www.unimod.org/xml/unimod.xml] . The schema is at [http://www.unimod.org/xmlns/schema/unimod_2/unimod_2.xsd|http://www.unimod.org/xmlns/schema/unimod_2/unimod_2.xsd] . I generate my classes using xjc with no problems. My unmarshalling code is simple enough:
    try {
        JAXBContext ctx = JAXBContext.newInstance(new Class[] {UnimodT.class});
        Unmarshaller um = ctx.createUnmarshaller();
        return (UnimodT) um.unmarshal(is);
    } catch (JAXBException ex) {
    }At first I got an exception saying that unimod (the top-level tag) is unexpected and that the expected element is (none). I solved this by adding the @XmlRootElement tag into my UnimodT class. Now I am getting a javax.xml.bind.UnmarshalException :
    "unexpected element (uri:"http://www.unimod.org/xmlns/schema/unimod_2", local:"unimod"). Expected elements are <{http://www.unimod.org/xmlns/schema/unimod_2}unimodT>"
    I am guessing this means that it is looking for a <unimodT> tag while the actual tag name is <unimod>.
    This is how the xml file starts:
    <umod:unimod xsi:schemaLocation="http://www.unimod.org/xmlns/schema/unimod_2 http://www.unimod.org/xmlns/schema/unimod_2/unimod_2.xsd" majorVersion="2" minorVersion="0">
        <umod:elements>
              ....and here is the fragment from the xml schema defining the root element:
         <xs:element name="unimod" type="umod:unimod_t">Other guesses I am having are:
    1) Maybe I should do something with the namespace, "umod"?
    2) The underscore in the type name is confusing xjc?
    Please help if you can. I am guessing it is something simple but I have no idea what.

    I seem to have solved my problem by adding the namespace and name of the tag on the XmlRootElement annotation:
    @XmlRootElement(name="unimod",namespace="http://www.unimod.org/xmlns/schema/unimod_2")however I still don't understand
    1) why it's not enough to specify the name of the tag in the @XmlType annotation
    2) why the @XmlRootElement tag was not specified automatically
    I guess I should just be happy that it works now.

  • Parent Child Value Sets for Item Categories

    I've tried to set up parent-child value sets, not independent-dependent sets for Item Categories but in vain. So, if Item Category has 2 segments - Category & Sub-Category; Sub-Category only shows valid values for a category. For example, if Category is 19 (Tools), the LOV for 2nd segment would only show 28 (Large Tools), 29 (Heavy Tools) etc.
    Creating an independent-dependent combination displays all values for the independent & dependent sets.
    Just looking for help here.
    Thanks,
    Sanjib

    Karthik, Sandeep and Hugh
    Thanks for your responses. We greatly appreciate you taking the time to reply to this thread. My e-mail is [email protected], that is if you'd like to send any documents.
    Basically, this is what we were looking for -
    The category structure is
    Equipment 1 - Spare 1,
    Equipment 1 - Spare 2,
    Equipment 2 - Spare 1,
    Tools - Large,
    Tools - Small,
    etc.
    When selecting Codes for this structure, if I choose 'Equipment 1' for 1st segment, LOV for 2nd segment would only show 'Spare 1', 'Spare 2'. Similarly, If I choose 'Tools', I only see 'Large', 'Small' for Segment 2.
    Thanks,
    Sanjib

  • Supressing output type for Item lebel data

    Hi all,
    I have done a out put type set up for MIRO transaction. So when after putting the data, the transaction will saved then it will trigger an idoc.
    But the problem is that in its triggering more than one IDOC. I want only one idoc to be trigger in header level. But when i am saving the data its triggering the IDOCs for the item lebel also.Means its triggering one idoc for header and as many number of idoc as the item present in that MIRO transaction. I have gone to the goto>message>item. so in That output type setting for item its taking the setting automaticaly. If i will deactivate that then also its coming for the next time.
    So can any one one tell me how can i supress the output type in item label?????
    thanks
    manas

    If we maintain entry in table T618F and append structure in KOMB with a custom field ZZwerks. Also adding this field in the header communication structure.
    and then we map the WERKS field with reference field ZZWERKS in access sequence step in OLME along with using a exit to pass on the data to header structure.
    will these setting make the output determination work on the plant field.
    This requirement came to my friend in a impelementaion project so i dont have the complete details

  • Value type for Release

    Hi Eli
    When i am trying to release a buget (T.code FMBBC) the system issues the following error message.
    Release value type is not created. Can you pls highlight the config path in spro.
    The value type used is not supported with document type ENTR
    Message no. FMKU073
    Diagnosis
    The value type is not correct if you want to use document type ENTR, since the scenario assigned to this document type does not correspond to the value type you have entered.
    System Response
    The system stops the transaction.
    Procedure
    Please use another value type or choose a document type with a scenario corresponding to the current value type.
    Regards,
    Purnima

    Hi
    It is already defined.- RELE ... with Scenario for value type as "Release"
    and
    Under Edit Stauts -  under the status for "STAT01" - Stauts control for release is also updated with "RELE"
    Do i need to maintain any settings under the  following path...pls confirm.
    SPRO>>Public Sector Management>>Funds Management Government>>Budget Control System (BCS)>> Availability Control>>Settings for Availability Control Ledger>>Define Filter Settings for Budget Values
    Presently the config settings are as under
    Control ledger - 9H
    BCS Value type - B1
    Seleted budget type is - Enter
    Do i need to maintain for value type  R1 ??
    Please confrim.
    Regards,
    Purnima

  • What's the difference between text and value type for SO item category?

    Dears,
    Could anybody help me on this question?
    Many thanks!
    Regards,
    Shiliang

    Hi Shiliang,
    In a Bill Of Material the main item is a  composite item which represents what is being sold to the customer. For eg. a computer typically would consist of Monitor, Keyboard,mouse and CPU, speakers. Here computer refers the collection of all these items which are physically existing and basically items present in our inventory ( Value Items ). Where as computer is just a text item meant to describe the collection.
    Also to add the for Usage we use it as text sometimes, which is used to say the item has been authenticated by the quality dept and we print " Tested " on it or these days all the items come out with unique article numbers for identification purpose. So we use this usage as text.
    Hope it adds. Pl reward if useful.
    Thanks & Regards
    Sadhu Kishore

  • Price was not picking from the Condition type for Item Category 'P'  in PO

    Hi Experts,
    I Created one condition type based on Material and WBS which price was fixed based on this
    I used the Purchase Order having Item <b>Category ‘P’ or ‘Q’</b> Price should pick from the condition type where I mapped the WBS Element and Material.
    The Net price was not picking from the Condition type Record.  Why? What should be the Problem?
    Whether my logic is correct or not?
    <u><b>
    The Scenario:</b></u> I want to fix the Material price base on each WBS Element for a Project. For each WBS Element the Price will be various for same material.
    Please help on this.
    Thanks
    Muthukumar

    Hi,
    In standard configuration you cannot set item delivery date as a pricing data.
    Maybe you shoud look at SAP enchancement - in dedicated structures you can pass additional item data (structure KOKMP).
    IMG link:
    Materials Management -> Purchasing -> Conditions -> Define Price Determination Process -> System Enhancements
    hope it helps.
    regards,
    wojciech

  • Condition Type for item calculated from delivery date

    Dear Experts,
    We need that the condition type MWST for PO item will be calculated from Item delivery date ,
    But we see that always in Analysis pricing the efected date is PO date and not item delivery date .
    Please advise how we should configure the condition ?
    Thanks,
    Moshe

    Hi,
    In standard configuration you cannot set item delivery date as a pricing data.
    Maybe you shoud look at SAP enchancement - in dedicated structures you can pass additional item data (structure KOKMP).
    IMG link:
    Materials Management -> Purchasing -> Conditions -> Define Price Determination Process -> System Enhancements
    hope it helps.
    regards,
    wojciech

Maybe you are looking for

  • Square root formula in Calculated Characteristics

    Have a great days. There are two MIC in my inspection plan. first (0010) is for entering number and another (0020) is calculated characteristics. I want to calculate the square root of 0010 charateristics in 0020. What should be teh formula to put in

  • IDVD keeps ejecting my disc before final burn can anyone help

    My iDVD movie keeps ejecting the disc before the final burn what can I do

  • Can't find qt pro?

    I have qt player 7 latest with updates. bought key for qt pro. registered using key. Window shown qt pro accepted key. Now I can't find pro. I have icon for qt player still. I click on icon and it opens a window for apple. How do I use pro? In progra

  • Based upon UD Code Inspection lot stock Posting will be done How?

    QM Experts, While doing Quality confirmation at UD stock posting I have the following Reqirements. 1. Accepted:  If UD Accepted then disable all field except Unrestricted Use. 2. Rejected: If UD Rejected then disable the Unrestricted use and enable S

  • JDev Source Code Versioning Support

    Does JDeveloper2.0 provide support for source code versioning? This would be useful at the project level. If there isn't built in support, are there any NT-based source code management applications that can be tied into JDev2.0? Thanks. null