BP search query gets Valid Value error

I am using the tutorial example to add all business partners to a combo box. The only change is to the query used:
RS.DoQuery("SELECT DISTINCT CardCode, CardName FROM OINV T0 join INV1 T1 on T0.DocEntry = T1.DocEntry WHERE U_Active = 'Y' ORDER BY CardName")
In this case, U_Active is a udf on the invoice detail level. When run, SAP returns an error Valid Value Already Exists. The combo box only displays the first two lines of data.
This query works perfectly as a query in SAP's Query Manager, returning exactly the expected data. there are no duplicates in the results.
The standard unedited tutorial example works also.
Any help or suggestions are much appreciated.

Code used:
   Private Sub AddBPCodeCombo(ByVal oCombo As SAPbouiCOM.ComboBox)
        Dim RS As SAPbobsCOM.Recordset
        Dim Bob As SAPbobsCOM.SBObob
        'Dim sSQL As String
        Try
            RS = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
            RS.DoQuery("SELECT DISTINCT CardCode, CardName FROM OINV T0 join INV1 T1 on T0.DocEntry = T1.DocEntry WHERE U_Active = 'Y' ORDER BY CardName")
            RS.MoveFirst()
            While RS.EoF = False
                oCombo.ValidValues.Add(RS.Fields.Item("CardCode").Value, RS.Fields.Item("CardName").Value)
                RS.MoveNext()
            End While
        Catch ex As Exception
            MessageBox.Show(ex.Message)
        End Try
    End Sub

Similar Messages

  • Enter a valid value error

    Hi,
    Can anyone pls. help us figure out the problem with the newly created business partner master records?  We get an "Enter a valid value" error message when the agent (user) tries to confirm the business partner in CIC.  The user got the same error after she created another bp master record.
    I created a third bp master record for the same customer but in another application server.  I didn't get an error so I asked the agent to use this bp master record instead of the first 2.  Unfortunately, the user got the abovementioned error again after editing the bp master record that I created in the original application server. 
    Hope you can help us.
    Thanks in advance,
    Theresa

    Perform theses steps
    - In LSMW read and convert only one entry from file
    - go to SM35 -> select your session with that one entry
    - select process , option process/foreground
    - choose process
    You will have that batch input run in the foreground, so you can see all the values entered to certain input fields and all the actions which take place in that screens. This way you should see which step excatly creates the error.
    Regards
    Marcin

  • Select a valid value Error on LOV

    Hi,
    I am getting a Select a valid value error on LOV field on clicking Save button on Page, even when the selected value exists in the LOV list. Disable Valiodation property of LOV Field is set to false. I want the value to be validated.
    This problem is occuring only when i try to select value for a blank LOV field. If I try to update an exiting value on the same field, no error turns up.
    I am unable to find the cause of this unexpected behaviour of LOV.
    I see the following error message in Diagnostics Log:
    [62]:EVENT:[fnd.framework.webui.OAPageErrorHandler]:OAF LOG: Event : Check Errors, in: oracle.apps.fnd.framework.webui.OAPageErrorHandler: Exception: Select a valid value. ,In VO: null
    Please help.
    Thanks in advance.
    -Shilpi Karan Anand
    Edited by: 924887 on Dec 19, 2012 10:24 PM
    Edited by: 924887 on Dec 19, 2012 10:25 PM

    My issue has been resolved.I made following changes:
    Set 'Use for Validation' property of Main LOV Map to No .
    set 'Use for Validation' property of formValue LovMap to default.
    Threads related to this issue:
    https://forums.oracle.com/forums/profile.jspa?editMode=true&userID=924887
    Error: Select a Valid Value
    -SKA

  • Sharepoint 2013 Search Query, get 'Starts With' for the whole term.

    Hi,
    I need to build an A to Z index for the values of a particular managed property. Managed property contains text with multiple words (for example: 'Whole Sale Items', 'Sample Items').
    I need the search to return the values that start with a particular letter. 'myPropOWSTEXT:s*' should return 'Sample Items'. However, this query returns both 'Whole Sale Items' and 'Sample Items'. 
    Is there a way to write query so that I can get the text values that start with a letter from the beginning of the whole sentence? I mean, in the above example, is there a way that the query returns 'Sale Items' only and
    NOT 'Whole Sale Items'?

    Hi sukhdevtur,
    Could you please elaborate the requirement? Also please provide a screenshot about the issue if possible.
    What do you mean "Managed property contains text with multiple words (for example: 'Whole Sale Items', 'Sample Items')."?
    Is the list column value containing multiple values(e.g. multiple choices type column, manged metadata type column)? 
    Also it is by design that SharePoint query will match each word divided by the special character "blank space", if it's the case for your issue, as a workaround, you can remove the "blanks space" between the words(e.g.
    WholeSaleItems, SampleItems), then start a full crawl and test again, it should work.
    Thanks
    Daniel Yang
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • In formula column - I am getting current year - but get numeric value error

    Hello
    I defined a formula column as folllows:
    function CF_1Formula return char is
    thisyear char;
    begin
         select to_char(sysdate,'YYYY')
         into thisyear
         from dual;
         return thisyear;
    end;
    I get - Fatal Pl/Sql error. numeric or value error. What am I doing wrong here?

    Or replace the whole thing with
    RETURN to_char(sysdate,'YYYY');
    saving a pointless round trip to the database.

  • Getting multi value error for measures

    We have two queries, (1)  Cost Center (2) PS
    I merged on Company Code, Internal Order, Equipment id
    Record Category are LBR, MTL, Others
    Fields on the report are
    Equip class, Equip Id, Equip ownership, Actual_Amt_Lbr, Budget_Amt_Lbr, Actual_Amt_MTL, Buget_Amt_MTL
    001_eclass
    Actual_Amt_Lbr= If ([Record Typ ]="04" And [Record Category]="LBR") Then Sum([Sum Actual]) Else 0
    Buget_Amt_Lbr= If ([Record Type Id]="01" And [Record Category]="LBR") Then Sum([Sum budget]) Else 0
    Actual_Amt_MTL= If ([Record Typ ]="04" And [Record Category]="MTL") Then Sum([Sum Actual]) Else 0
    Buget_Amt_MTL= If ([Record Type Id]="01" And [Record Category]="MTL") Then Sum([Sum budget]) Else 0
    I am getting multi value for measures i.e. Actual_Amt_Lbr, Budget_Amt_Lbr, Actual_Amt_MTL, Buget_Amt_MTL
    My scenario is
    One Euipment class has many Equipment id with record typ 01 and 04 and the same Equipment id has record category LBR and MTL
    Data is as follows:
    Equip_class, Equip_id, Equip_own, LBR_actual, LBR_Budget, Record_Type, Record_cat
    001_eclass   001       owner       0       2100   01          LBR
    001_Eeclass  001        owner           0       500        01          MTL
    001_eclass   001       owner       0       100   01          others
    001_Eeclass  001        owner           500      0         04          LBR
    001_Eeclass  001        owner           200      0         04          MTL
    001_Eeclass  001        owner           500      0         04          Others
    001_Eeclass  002        owner           500      0         04          LBR
    Used sum([Sum Actual] ForEach ([Record_Type];[Record_cat]) is not working

    Hi
    try this-
    Actual_Amt_Lbr= Sum(If ([Record Typ ]="04" And [Record Category]="LBR") Then [Sum Actual] Else 0)
    Buget_Amt_Lbr= Sum(If ([Record Type Id]="01" And [Record Category]="LBR") Then [Sum budget] Else 0)
    Actual_Amt_MTL= Sum(If ([Record Typ ]="04" And [Record Category]="MTL") Then [Sum Actual] Else 0)
    Buget_Amt_MTL= Sum(If ([Record Type Id]="01" And [Record Category]="MTL") Then [Sum budget] Else 0)
    ~Anuj

  • Getting invalid value error message

    Hello,
    I have 4 numeric fields.The user enters dollar amounts in the first 3 fields. I have a FormCalc script in the 4th field that takes fields 2 and 3 from field 1 and display the total. It looks fine until the user hits the submit button. They they get the following error message:
    I've checked the Pattern and it's set to this pattern:  num{($zzz,zzz,zz9.99)}
    What am I missing?  Thanks for your help.
    MDawn

    Change the field type to Decimal instead of Numeric.
    (OR) change the Data format to Float under the Binding tab for Numeric type field.
    Thanks
    Srini

  • Select a valid value ERROR in LOV

    When i select a value which is not present in the LOV then i am getting this error.That is fine but the issue is that when i am trying to save this wrong value,then for first time i am getting this error.but When i am pressing the save button for the 2nd time,validation does not work and wrong value gets saved in the database.
    I am using the LOV in the advanced table and and using a formvalue mapping for this functionality.
    Why i am not getting error for the 2nd time?why the validation is failing?
    Please help itsurgent and has already consumed a lot of time!

    Hi Gyan Darpan,
    Thanks for your response. I have not put any validation in the AM or VO.
    Thanks
    Satya

  • Dynamic query getting incorrect values due to version restriction

    Hi,
    I'm using query designer version 6.40, Support Package 16, we currently can't update this due to other problems.
    In one of my queries I have a dynamic row structure. The static column structure has three columns and is restricted on actual, forecast and budget version variables. In the default values I have 0CS_VERSION restricted to a generic version variable, say v0.
    However, when I run the query, v0 overwrites all the other version variables. If I remove v0 I get the error message shown below. I have tried to combine removing v0 and the consolidation group default values but that doesn't work either. I've moved v0 into the free characteristics and I have attempted to set it to all of the other versions, this also results in the error below. I've checked through SAP notes and the forum and haven't found anything, any help would be appreciated.
    "Version not specified or not unique"
    Diagnosis
    You need to specify the version in the report to enable the system to determine the consolidation units each consolidation group consists of. The version must be specified per cell and must be unique per cell. This is not the case in this report.
    One of the following conditions exist:
    No version was specified.
    The specified version no longer exists.
    The version is not unique.
    System Response
    Processing terminated
    Procedure
    Enter the version for each cell in a unique way.
    Procedure for System Administration

    One of our in-house guys has found the solution. The problem was that there were values in the default values which were superfluous. For example: in the default values we had fiscal year = fiscal year variable, in the column structure we set the fiscal year variable to an offset of -1. Once we'd removed all of the extra default values the version was no longer a problem and the query ran correctly taking in all the different versions required.
    Regards.

  • Using different hierarchy in a query and last value error

    Hi guys,
    there is a hierarchy for customers in the 0Customer Infoobject which I should use in my query.
    I have activated the hierarchy in the query and now some results are not appearing but red crosses "x" are shown.
    And the error message: The function Calculate Results as ... could not be applied everywhere.
    I know that I am using the result as "last value" for some columns because I need them there (for example: to determine the last value for the credit limit of the current month). I think these columns where I am using the last value calculation are only affected.
    I mean my query has a lot of characteristics and key figures and I was told that a hiearchy for customers which is available should be used. But now there are these red crosses.
    I don´t see any other solution as not to use this specific hierarchy.
    Has anybody a suggestion what could be an argument to use or not to use a hierarchy?
    Is it sometimes like in my case that a hierarchy is not possible to use?
    Thanks in advance!

    Hi,
    say for example your customer hierarchy is customers grouped under region. You can maintain this region as one of the attribute of customer and you can display this attribute in the report. Indirectly, this will give similar output to that of hierarchy.
    But lot depends on how your hierarchy is formed, before commenting whether it can be moved to master data attributes.
    Thanks.

  • Search Problem with SharePoint 2010: Get Internal server error when doing search

    Hi,
    Am getting Internal server error, corelation id.. when I use the search functionality in SP2010. 
    I've installed Sharepoint 2010 trial version on windows server 2008 r2 and the database server used is a SQL server 2008 R2.
    I got the following messages with ULs viewer for the relative Corelation ID:
    Process
    Product
    Category
    Level
    Message
    w3wp.exe (0x1808)
    SharePoint Foundation
    Monitoring
    High
    Leaving Monitored Scope (Search Statistics). Execution Time=404.4175
    w3wp.exe (0x1808)
    SharePoint Server
    General
    Medium
    Constructed a new async cache named Location Configuration Cache
    w3wp.exe (0x1808)
    SharePoint Server Search
    Administration
    High
    'SharePoint_SearchApplicationProxy', location cache: 
    Refreshing location cache
    w3wp.exe (0x1808)
    SharePoint Server Search
    Administration
    High
    SharePoint_SearchApplicationProxy', location cache: Exception while fetching
    location configuration data. StackTrace: Microsoft.SharePoint.SPEndpointAddress
    NotFoundException: There are no addresses available for this application.    
    at Microsoft.SharePoint.SPRoundRobinServiceLoadBalancer.BeginOperation()    
    at Microsoft.Office.Server.Search.Administration.SearchServiceApplicationProxy.
    GetLocationConfigurations(Int64& lastUpdate, Boolean& useCrawlProxy)    
    at
    Microsoft.Office.Server.Search.Administration.LocationConfigurationCollection.
    PopulateCollection()    
    at Microsoft.Office.Server.Search.Administration.
    LocationConfigurationCollection.Init()    
    at Microsoft.Office.Server.Search.
    Administration.LocationConfigurationCollection..ctor(SearchServiceApplicationProxy
    searchAdmin)    
    at Microsoft.Office.Server.Search.Administration.LocationCache.
    FetchLocationConfigurationData()
    w3wp.exe (0x1808)
    SharePoint Server Search
    Query
    Unexpected
    CoreResultsWebPart::OnInit: Exception initializing: System.NullReferenceException:
    Object reference not set to an instance of an object.    
    at Microsoft.Office.Server.
    Search.WebControls.CoreResultsWebPart.SetPropertiesOnQueryReader()    
    at
    Microsoft.Office.Server.Search.WebControls.CoreResultsWebPart.OnInit(EventArgs e)
    w3wp.exe (0x1808)
    SharePoint Server Search
    Query
    Exception
    Internal server error exception: System.NullReferenceException: Object reference
    not set to an instance of an object.    
    at Microsoft.Office.Server.Search.WebControls
    .CoreResultsWebPart.SetPropertiesOnQueryReader()    
    at Microsoft.Office.Server.
    Search.WebControls.CoreResultsWebPart.OnInit(EventArgs e) System.
    NullReferenceException: Object reference not set to an instance of an object.    
    at Microsoft.Office.Server.Search.WebControls.CoreResultsWebPart.
    SetPropertiesOnQueryReader()    
    at Microsoft.Office.Server.Search.WebControls.
    CoreResultsWebPart.OnInit(EventArgs e)
    w3wp.exe (0x1808)
    SharePoint Server
    Unified Logging Service
    Monitorable
    Watson bucket parameters: SharePoint Server 2010, ULSException14, 06175311
    "sharepoint server search", 0e00129b "14.0.4763.0", 17853a8f "microsoft.
    office.server.search", 0e00129a "14.0.4762.0", 4bad937d "sat mar 27 09:11:25
    2010", 0000320d "0000320d", 0000002d "0000002d", 4a6d3421 "nullreferenceexception"
    , 67316a39 "g1j9"
    w3wp.exe (0x1808)
    SharePoint Foundation
    Monitoring
    High
    Leaving Monitored Scope (Search Action Links OnInit). Execution Time=395.3955
    w3wp.exe (0x1808)
    SharePoint Foundation
    Monitoring
    High
    Leaving Monitored Scope (Add WebPart with error#4). Execution Time=527.8118
    w3wp.exe (0x1808)
    SharePoint Foundation
    Monitoring
    High
    Leaving Monitored Scope (Add WebParts). Execution Time=3601.2636
    w3wp.exe (0x1808)
    Web Content Management
    Publishing
    Medium
    Caught a thread abort exception in TemplateRedirectionPage.ProcessRequest,
    the exception may be expected. stack trace=  
    at System.Web.UI.Page.
    ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean
    includeStagesAfterAsyncPoint)    
    at System.Web.UI.Page.ProcessRequest()    
    at
    System.Web.UI.Page.ProcessRequest(HttpContext context)    
    at ASP.SEARCHRESULTS_ASP
    X__1518441470.ProcessRequest(HttpContext context)    
    at Microsoft.SharePoint.
    Publishing.TemplateRedirectionPage.ProcessRequest(HttpContext context)
    w3wp.exe (0x1808)
    SharePoint Foundation
    Monitoring
    Medium
    Leaving Monitored Scope (Request (GET:http://nestestsp:25943/Pages/results.aspx
    ?k=home%20nesintranet)). Execution Time=3811.6724
    Can anybody help me find a solution for this issue.
    Thanks

    After making sure that all services are up and running,  I had to deactive and activate the "SharePoint Server Site Search" web site collection feature.  Then the search started working for the time being. 
    However, it throws the error again after 8 to 9 hours.  This has been happening for last couple of weeks.  I also came to know from my windows server team that they moved the AD from one place to another.  Since then I am having this issue. 
    The log file has the following error:
    CoreResultsWebPart::OnInit: Exception initializing: System.NullReferenceException: Object reference not set to an instance of an object.     at Microsoft.Office.Server.Search.WebControls.CoreResultsWebPart.SetPropertiesOnQueryReader()    
    at Microsoft.Office.Server.Search.WebControls.CoreResultsWebPart.OnInit(EventArgs e)
    Internal server error exception: System.NullReferenceException: Object reference not set to an instance of an object.     at Microsoft.Office.Server.Search.WebControls.CoreResultsWebPart.SetPropertiesOnQueryReader()    
    at Microsoft.Office.Server.Search.WebControls.CoreResultsWebPart.OnInit(EventArgs e) System.NullReferenceException: Object reference not set to an instance of an object.     at Microsoft.Office.Server.Search.WebControls.CoreResultsWebPart.SetPropertiesOnQueryReader()    
    at Microsoft.Office.Server.Search.WebControls.CoreResultsWebPart.OnInit(EventArgs e)
    Harish Vajja

  • "Your server is not configured properly or your search query has ..."

    Config info:
    v490, 20k+users, JES 2005Q1,
    118540-23
    118207-42
    115614-20
    Brief Description:
    When users select the Corporate Directory under the Address Book tab in CE and click the ALL button (or do a wildcard search) they get the following error:
    "Your server is not configured properly or your search query has
    exceeded the limit. Please check server configuration."
    Additional info:
    Additionally this error shows up when a user chooses a View: letter and clicks next for the following page, and additionally if they have the Corporate Directory set as their default address book in options.
    Logs:
    /sun1/dirserv/slapd-mail/logs/errors:
    [11/Oct/2005:10:44:21 -0500] - WARNING<20805> - Backend Database - conn=161557 op=34 msgId=169 - search is not indexed
    /sun1/dirserv/slapd-mail/logs/access:
    [11/Oct/2005:10:23:21 -0500] conn=161557 op=17 msgId=124 - SRCH base="o=ualr.edu,dc=mail,dc=ualr,dc=edu" scope=2
    filter="(&(&(cn=*)(|(objectClass=INETORGPERSON)(objectClass=GROUPOFUNIQUENAMES)))(objectClass=*))"
    attrs="objectClass"
    [11/Oct/2005:10:23:31 -0500] conn=161557 op=17 msgId=124 - RESULT err=0 tag=101 nentries=20540 etime=10 notes=U
    /var/sun1/comexp/logs/uwc.log:
    Oct 11, 2005 10:52:20 AM com.sun.uwc.abclient.ABInitFilter doFilter WARNING: Address Book session already set!!
    changes in /var/sun1/comexp/WEB-INF/config/corp-dir/db_config.properties
    lookthru_limit=30000
    I have a ticket, just wondering if anyone else has this problem...

    You'll be getting this in your case update (answer in response to the internal conversation we've been having about your issue)
    So if they really want to control wildcard searches then they should look in the "personalstore.properties" file for the domain (default: /var/opt/SUNWuwc/WEB-INF/domain/personalstore.properties) for the value of "db.idir.wildcardsearch". Its possible settings are documented in the comments. If they wish to disable all "*" and "*x*" searches (i.e. turn off the 'All' and selecting a letter options) they should set the value to at least 2.

  • Using Table Name reference in formula results in #VALUE error

    In Excel 2010, I have an OLE DB connection that brings in data from an SQL query. Excel automatically created the table reference for this (Table1). The table contains headers and Excel knows this; they are formatted in the table as such.
    When I try to use a SUMIF function and ask it to sum the column Table1[Column], I get a #VALUE error. I'm assuming because Excel is including the header in the data, which is a text entry. Otherwise, all the other values in the column are numbers.
    I'm currently using a defined named range to get round the issue but I'd like to use the table reference instead because as the SQL data grows and shrinks, so does the table range that Excel performs calculations on.

    Hi DPLMartin,
    This should not happen, by default the [column] syntax only refers to the data, not to the header. I expect there is one or perhaps more rows which contain text.
    Try selecting the column in question and use F5, Special, constants and only leave the "Text" checkbox checked.
    Regards, Jan Karel Pieterse|Excel MVP|http://www.jkp-ads.com

  • #MULTIPLE VALUE error in WEB I 4.1 SP2

    HI ALL
    I am getting #MULTIPLE VALUE error in few of the records in a column (assume A). Column A is formula in BEx. I am displaying data in web I based on Material division(1st column) and material group(2nd column). I tried with all : in, forall, foreach in WEB I , which doesn't sort out my issue. Can any body helpme out  here. Again, I am using BEx Query, and column A is formula in BW BEx.
    Awaiting for helpful answers.
    Regards
    swetha.

    Hi Swetha,
    use Sum([Column A])

  • Single query return multiple value

    Hi ALL,
    I have a sql query as below :
    select order_number,
    (select decode(hcp.contact_point_purpose,'ABC',hcp.email_address,'CDE',hcp.email_address,null)
    from hz_contact_points,
    hz_parties hz
    WHERE hz.party_id=hcp.owner_table_id) Email
    FROM oe_order_headers_all h
    WHERE h.order_number='102'
    Actually the problem i am facing is the inner select query is returning multiple row , so my main query is erroring out, i need to capture the multiple row.
    in the above example the inner decode statement returning two mail address, i need to capture that, but while executing the whole query it is erroring out as saying single query returns multiple values.
    please help me on this to capture multiple values
    Thanks

    >
    select order_number,
    (select decode(hcp.contact_point_purpose,'ABC',hcp.email_address,'CDE',hcp.email_address,null)
    from hz_contact_points,
    hz_parties hz
    WHERE hz.party_id=hcp.owner_table_id
    /* a join is missing here that points to table oe_order_headers_all h*/) Email
    FROM oe_order_headers_all h
    WHERE h.order_number='102'
    >
    I can see a join missing in your select sub query.
    However, if you you are still getting the single query return multiple value error then you need to replace the sql sub query
    select decode(hcp.contact_point_purpose,'ABC',hcp.email_address,'CDE',hcp.email_address,null)
    from hz_contact_points,
    hz_parties hz
    WHERE hz.party_id=hcp.owner_table_id)by decode(hcp.contact_point_purpose,'ABC',hcp.email_address,'CDE',hcp.email_address,null)
    and join the two tables in you main query..
    Regards
    Biju
    ED: Provide test script and your expected output to get what you want exacly!
    Edited by: biju2012 on Sep 7, 2012 12:06 AM

Maybe you are looking for