STKMAJ$adx|\|Error 20 Line Number 504|\|WITMREF : File Non-existent

Hello. I'm on Sage 6.5.

This is only happening in my development environment. I can't create misc. receipts for some of my products. Any thoughts? I didn't do the developer school so I don't have the code. I thought maybe it was quality control so I switched all of them to 'No Control' at the site level but no luck. Thanks in advance for any help.

  • 0

    The code is below for line 504 and several lines after., There's also an issue in V6 with the WITMREF that's fixed in Patch 27.

    $TRT_ERR
    Case [M:STW]ERRCOD
    When 1 : GMESSAGE=num$([M:STW]TRSTYP)
    GMESSAGE-=mess([M:STW]TRSTYP,704,1)
    GMESSAGE+=mess(371,199,1)
    When 2 : GMESSAGE=mess(71,197,1)
    When 3 : GMESSAGE=[L]WITMREF-mess(212,199,1)
    When 4 : GMESSAGE=[L]WITMREF-[L]WFCY-mess(248,197,1)
    When 5 : GMESSAGE=[F:ITM]TCLCOD-mess(338,199,1)
    When 6 : GMESSAGE=[L]WFCY-mess(14,114,1)
    When 7 : GMESSAGE=[M:STW]PCU(I)-mess(74,194,1)
    When 8 : GMESSAGE=[M:STW]STU(I)-mess(228,197,1)
    When 9 : GMESSAGE="ITMMVT"-mess(12,100,1)
    When 10 : GMESSAGE=[M:STW]STA(I)-mess(255,199,1)
    When 11 : GMESSAGE=mess(373,199,1)
    When 12 : GMESSAGE=[L]WITMREF-":"-mess(241,199,1)

    Error: "WITMREF: Variable does not exist. "

    Products
    Sage X3 6

    Description
    • Error: WITMREF: Variable does not exist.  when creating a Misc receipt.



    Resolution

    Status:

    Issue is fixed in v6 Patch set 27 (SAM # 92377)