• Workaround:

    Fetch the LastUsedNumber in your control flow, store it in a variable, and either:

    A) pass it into your data flow source as a parameter

    B) Create the SQL statement as an expression with a second variable