Sage 100

 View Only
Expand all | Collapse all

Error on workstation when script is in place "Module J/C is not on file"

  • 1.  Error on workstation when script is in place "Module J/C is not on file"

    Posted 08-20-2025 17:23

    Hi Folks,   I have a client were I have setup a pretty simple script.  It is to calculate a "core" charge for auto parts items.  It has works fine.  The client is on 2022 Standard and has two workstations, one has the Sage install and the other accesses it off the first workstation and they are just in a workgroup (very small company).  They are replacing the 'second' workstation.   Sage works fine except when accessing Sales Order Invoice data entry (which is what he script is attached to).  They get the message that "Module J/C is not installed".   If I remove the script the error goes away.    I sort of think this is a permissions issue but not sure how to resolve it in a workgroup setting.    Any thoughts would be appreciated. 

    'Add core item to order along with item
    'Bob Osborn, ACI  2/2023
    sItemCode = "" : nQty = 0 : sCore = "" : nCoreAmt = 0 : sCore = ""
    
    if oSession.CompanyCode = "RTX" then
    
    retVal = oHeaderObj.GetValue("UDF_CORE_CHARGE_AMT", nCoreAmt)
    if nCoreAmt > 0 then
    
    	RetVal = oBusObj.GetValue("ItemCode$", sItemCode)
    	RetVal = oBusObj.GetValue("QuantityOrdered", nQty)
    	RetVal = oBusObj.GetValue("UDF_CORE_CHARGE$", sCore)
    	if sCore = "Y" then	
    	retVal = oBusObj.AddLine()
    	retVal = oBusObj.SetValue("ItemCode$", "/CORE CHRG")
    	retVal = oBusObj.SetValue("QuantityOrdered", nQty)
    	retVal = oBusObj.SetValue("UnitPrice", nQty * nCoreAmt)
    	retVal = oBusObj.Write()
    	end if
    
    
    end if
    end if


    ------------------------------
    Bob Osborn
    Senior Consultant
    DSD
    7142645278
    ------------------------------


  • 2.  RE: Error on workstation when script is in place "Module J/C is not on file"

    Posted 08-20-2025 17:36

    I'd try a simple msgbox "hello world" type script to ensure that works. If it does, make sure Allow External Access is enabled for the company...

    Typically the "Module J/C..." error is a red herring, where the error is unhandled (sometimes enhancement related).



    ------------------------------
    Kevin Moyes
    Technical Systems Analyst
    Munjal White Consulting Co.
    Toronto ON
    ------------------------------



  • 3.  RE: Error on workstation when script is in place "Module J/C is not on file"

    Posted 08-20-2025 19:54
    Edited by Robert Osborn 08-20-2025 19:55

    HI Kevin,  Thanks for the thoughts!   The script works.  Been in place for a couple of years now.   The only issue is on the new workstation, the error pops up when trying to open Sales Order Invoicing so it can't be tested there.   I agree it is a red herring & it seems like I have run into this before but can't recall how it was resolved.   I tend to think the fact that they are in a workgroup is part of the problem. 



    ------------------------------
    Bob Osborn
    Senior Consultant
    DSD
    7142645278
    ------------------------------



  • 4.  RE: Error on workstation when script is in place "Module J/C is not on file"

    Posted 08-20-2025 22:09
    Edited by Alnoor Cassim 08-20-2025 22:09

    Bob - Since the issue occurs when opening the SO IDE task, which would creates a Windows scripting connection when you have an event script in place, it sounds like this is a PC specific issue. Is the new PC that's not working running Windows 11 24H2 ? If so, you may have to enable VBSCRIPT as a Feature on Demand (FOD) in Windows: 

    Settings → System → Optional Features → View features.



    ------------------------------
    Alnoor Cassim
    Accounting Systems, Inc. (ASI)
    ------------------------------



  • 5.  RE: Error on workstation when script is in place "Module J/C is not on file"

    Posted 08-21-2025 10:53

    Hi @Alnoor Cassim,  thanks for the tip.   Occured to me last last night that it might be something like this..  I'll check & report back. 



    ------------------------------
    Bob Osborn
    Senior Consultant
    DSD
    7142645278
    ------------------------------



  • 6.  RE: Error on workstation when script is in place "Module J/C is not on file"

    Posted 08-21-2025 12:39
    I was so hopeful.    The workstation is Windows 10 22H2.    Made sure the windows scripting host was enabled.    I also tried disabling the Trend Micro that was running with no change.   

     
    Bob Osborn
    ,
    MCSE
    Sr. Consultant, Sage 100
    e:
    BobO@dsdinc.com
    p:
    800-627-9032 x 180
    w:
    www.dsdinc.com
     





  • 7.  RE: Error on workstation when script is in place "Module J/C is not on file"

    Posted 08-21-2025 12:50

    The "hello world" test I suggested was to confirm that scripting, in general, works on the problem PC.

    Try Windows Credentials Manager to ensure you don't have a permission issue.  (I find it better than a mapped drive with alternate credentials).



    ------------------------------
    Kevin Moyes
    Technical Systems Analyst
    Munjal White Consulting Co.
    Toronto ON
    ------------------------------



  • 8.  RE: Error on workstation when script is in place "Module J/C is not on file"

    Posted 02-06-2026 14:34

    HI Folks,  Finally circling back on this (client stopped responding before).   I have made sure that scripting works on the computer (hello world works fine, even from the Sage install location) but the error persists. I had them uninstall TrendMicro to be 100% sure it was not blocking anything.  I have setup the Sage share in internet options so that scripting is allowed for the location  Not sure were to go at the script works on the other workstation.  FYI - very small company.  Sage is installed on another Windows 10 computer   On the computer were it is installed the script works perfect..   Running system file checker now.    Any thoughts would be really appreciated.  Client wanted to cancel Sage 100 because of this.

    Thanks!  



    ------------------------------
    Bob Osborn
    Senior Consultant
    DSD
    7142645278
    ------------------------------



  • 9.  RE: Error on workstation when script is in place "Module J/C is not on file"

    Posted 02-06-2026 14:40

    I ran into this before. there's a KB article about it, the frustrating part is my client didnt even have J/C installed....!

    https://us-kb.sage.com/portal/app/portlets/results/viewsolution.jsp?solutionid=224924250053808&hypermediatext=null



    ------------------------------
    Calvin Morrison
    Operations Manager
    Kissinger Associates, Inc.
    215-429-9384
    ------------------------------



  • 10.  RE: Error on workstation when script is in place "Module J/C is not on file"

    Posted 02-06-2026 15:15

    HI Calvin, yes the KB says that a custom script can cause this.   That's what my problem is as I wrote scripts for them.    But I have stumbled onto the issue which is that they are running the 64 bit version of Sage and Windows is calling the 32 bit version of Wscript.   Trying to figure out how to make it call the correct one now..



    ------------------------------
    Bob Osborn
    Senior Consultant
    DSD
    7142645278
    ------------------------------



  • 11.  RE: Error on workstation when script is in place "Module J/C is not on file"

    Posted 02-06-2026 15:22

    Is changing to run as 32-bit an option?



    ------------------------------
    Kevin Moyes
    Technical Systems Analyst
    Munjal White Consulting Co.
    Toronto ON
    ------------------------------



  • 12.  RE: Error on workstation when script is in place "Module J/C is not on file"

    Posted 02-06-2026 15:26

    So I found this info..    It wound up fixing the issue

    •  in reply to Patrick K.

      You should find a file called "RegCom64.bat" in the folder "C:\ProgramData\Sage\Common Components". Close down Sage 100 if running and run this batch file. The batch file will self elevate and perform the COM registration(s). Note: you will need to be an administrator or a user that is part of the administrator group for this to register the components correctly.

      If this does not resolve the issue then please report back so we can research further.

      Regards,
      Russell

      •  in reply to Russell Libby
        verified answer

        So that didn't work initially, the batch file was stating it couldn't find tsc64.dll. I was able to locate this DLL on the server under ..MAS90\Migration\_Repository\_Repository_x64\wsc7.10\env\any\CommonProgramFiles\Sage\Common Components.

        Copied this to all clients' ProgramData, then ran the RegCom64.bat and am no longer receiving this error on any of the clients! Thank you so



      ------------------------------
      Bob Osborn
      Senior Consultant
      DSD
      7142645278
      ------------------------------



    • 13.  RE: Error on workstation when script is in place "Module J/C is not on file"

      Posted 02-06-2026 15:29
      Nice catch and adding that to my data drawers in my head.  ;)


      Kind Regards,
      Carmen Cruz

      Sage 100 Division Manager
      P. 503.620.3484 x313 / E. carmen@benpor.com

       

      Bennett/Porter & Associates, Inc.
      12559 SW 69th Ave / Tigard, OR 97223
      benpor.com / facebook / instagram


      The information in this email and any attachments is considered confidential.

      This information may be subject to legal, professional, or other privilege.

      It must not be disclosed to any person without our authority. If you are not

      the intended recipient you are not authorized to and must not disclose, copy,

      distribute, or retain this message or any part of it. Please return this message to

       the sender immediately and delete any and all copies from your system.