Following Expression is not valid - Node Test Expected - InfoPath Dev
in

InfoPath Dev

Use our Google Custom Search for best site search results.

Following Expression is not valid - Node Test Expected

Last post 07-02-2020 10:31 AM by Hilary Stoupa. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 07-02-2020 10:11 AM

    Following Expression is not valid - Node Test Expected

    I'm getting an error when trying to build an expression on one of my fields in a form. I'm trying to get the duration of days between two dates. The expression is below and it seems to be pointing at the number 2 at the end of the expression.

     

    concat(substring-before(., ";") + substring-after(., ";") * ((translate(addDays(../my:BackDateTo, substring-before(., ";")), "-", "") < translate(../my:EndLastBillingCycle, "-", "")) * 2 - 1), ";", substring-after(., ";") / 2)

     


  • 07-02-2020 10:31 AM In reply to

    Re: Following Expression is not valid - Node Test Expected

    Try using "div" instead of the "/"... although it looks in the formula you pasted in that you have spaces before and after the "/". Usually the issue I have is when I don't have spaces, so it looks like I'm trying to create an XPath instead of divide :)
    Hilary Stoupa

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