Skip to main content

WARNINGEXPIRATION not understood in FMPerform block when using variable index

FMPerform Revise Account (0, 0, ERRORTEXT)
Do
    SET WARNINGEXPIRATION:(i) TO '--/--/----'
End


Gives error:
Cannot find variable 'WARNINGEXPIRATION'

Status: Completed6 comments

Comments6

  • Dylan Martinez changed status to Completed
    Team•

    Jul 19, 2025

    Pinned

    This rolled out yesterday in v1.4.1

  • Dylan Martinez changed status to In Progress
    Team•

    Jun 9, 2025

    Pinned

    Reviewing but unable to reproduce with the block given.

  • Dylan Martinez changed status to Planned
    Team•

    May 26, 2025

    Pinned

    We’ll get this fixed.

  • Dylan Martinez

    Team•

    Jun 4, 2025

    I just took a look at this, could you send in a simplest case PO that reproduces it? I think it’s an edge case somehow b/c using the block from the description I wasn’t able to reproduce.

    Also, just some added context here - at the moment, we basically just do a pattern match to skip diagnostics for FM Perform blocks while we work on our parser. Once we have the parser, we’ll be able to do static code analysis in real time and have it be immediately relevant :)

    • An Anonymous User

      •

      Jun 12, 2025

      I just tried again and now warningexpiration:(i) is fine, but warningstatus:(foo(i)) claims var not found.

      windows
      
      target = account
      
      define
      	err = character
      	foo = number array(1)
      	i = number
      end
      
      print title = "PV.TEST" 
      	fmperform revise account (0, 0, err)
      	Do
      		SET warningexpiration:(foo(i)) TO '--/--/----'
      	End
      end
      
      • Dylan Martinez

        Team•

        Jul 7, 2025

        Okay sweet, I was able to reproduce & I’ll get it patched. Thanks for reporting!