QRules Error - Parameter Count Mismatch - InfoPath Dev
in

InfoPath Dev

Use our Google Custom Search for best site search results.

QRules Error - Parameter Count Mismatch

Last post 10-03-2011 12:59 PM by Hilary Stoupa. 6 replies.
Page 1 of 1 (7 items)
Sort Posts: Previous Next
  • 10-01-2011 06:09 PM

    • Lolly
    • Not Ranked
    • Joined on 08-17-2009
    • Posts 21

    QRules Error - Parameter Count Mismatch

    I'm trying to filter a single SharePoint list using the FilterOwssvr command. It worked with no problem when I created a test list with City and State.  However, now in trying to filter on an actual list, I am getting the error "Parameter count mismatch for filter and value. Please verify each parameter has the same number of comma-separated values."  I have confirmed that both parameters have the same number of values.  I have removed 'show only entries with unique values' and that does not help.  Here's what I'm using for the rule:   concat("FilterOwssvr /dsname=FilterOwssvr /filter=EvaluatorFilter /value=", .)  Any help would be appreciated.

  • 10-03-2011 05:59 AM In reply to

    Re: QRules Error - Parameter Count Mismatch

     Hi!

    The rule pasted above looks ok but it would be helpful to look at it in the context of the form. Can you attach your form via the Options tab when you reply?

    Thanks!

    Ernesto Machado
    Qdabra® Software/ InfoPathDev.com
    The InfoPath Experts – Streamline data gathering to turn process into knowledge.™


  • 10-03-2011 07:23 AM In reply to

    Re: QRules Error - Parameter Count Mismatch

    Hello Lolly,

    As the error message indicates, the most likely issue is that the value referred to by the dot in your formula most likely has one or more commas in it.  Can you see if that is the case?

    Or maybe the issue is that EvaluatorFilter is a field in your form that has commas in it, but you have it here as text in your command instead of concatenating it in?

    Jimmy Rishe / Software Developer / Microsoft MVP
    Qdabra Software
  • 10-03-2011 08:16 AM In reply to

    Re: QRules Error - Parameter Count Mismatch

    Hi - FilterOwssvr command has an optional "delimiter" parameter that you can use for specifying what delimiter you wish to use instead of commas. That way you can use something that doesn't appear in your text (like "~") for a delimiter and your commas should be okay.

    Hilary Stoupa

  • 10-03-2011 10:44 AM In reply to

    • Lolly
    • Not Ranked
    • Joined on 08-17-2009
    • Posts 21

    Re: QRules Error - Parameter Count Mismatch

    I will try changing the delimiter and will let you know my results.  Thanks for responding so quick.

  • 10-03-2011 12:54 PM In reply to

    • Lolly
    • Not Ranked
    • Joined on 08-17-2009
    • Posts 21

    Re: QRules Error - Parameter Count Mismatch

    What would be the syntax then?  I'm not sure how to do this. 

  • 10-03-2011 12:59 PM In reply to

    Re: QRules Error - Parameter Count Mismatch

    concat("FilterOwssvr /dsname=FilterOwssvr /filter=EvaluatorFilter /value=", ., " /delimiter=~")

    for example...

    Hilary Stoupa

Page 1 of 1 (7 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.