Sage 100

 View Only
Expand all | Collapse all

VI Test is creating a phantom deleted transaction

  • 1.  VI Test is creating a phantom deleted transaction

    Posted 11-12-2024 16:43

    Recently I created VI imports for bank transactions for a customer.  They are importing directly into the GL Transaction Journal Entry.  The creates checks and deposits to feed into Bank Reconciliation.  The process is working pretty well with one very peculiar error. If the user "tests" the import before actually running the VI script, then the system creates a "Deleted" record of the first entry in the GL_TransactionJournalHeader file.  It technically doesn't hurt anything since it is "Deleted" but it shouldn't be creating anything.

    Has anyone else encountered this issue?



    ------------------------------
    Chuck Peddy
    Smartbridge Partners
    ------------------------------


  • 2.  RE: VI Test is creating a phantom deleted transaction

    Posted 11-12-2024 16:52

    Yes, we've seen the impact of this in a few business objects. 

    Ask Sage and they will say it is working as designed.



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



  • 3.  RE: VI Test is creating a phantom deleted transaction

    Posted 11-12-2024 18:01

    Ditto.  Been around for quite some time.  WAD is just another sloppy programming,  If no one is injured, move along, there is nothing to see here.



    ------------------------------
    Jeff Schwenk
    Owner
    Bottomline Software, Inc.
    Waynesboro VA
    (540) 221-4444
    ------------------------------



  • 4.  RE: VI Test is creating a phantom deleted transaction

    Posted 11-13-2024 12:16

    I know that I can't delete using VI but can I use a script to delete a record?  It's ALWAYS the same entry;  JE000000.



    ------------------------------
    Chuck Peddy
    Smartbridge Partners
    ------------------------------



  • 5.  RE: VI Test is creating a phantom deleted transaction

    Posted 11-13-2024 12:23

    Chuck - No you can't delete the "Deleted" record because scripts use the same business object as V/I. What can be done is to add perform logic to end of the actual V/I import (when you click Accept) that will directly open the GL_TransactionJournalHeader.m4t file (meaning not use the business object) and delete the "Deleted" record.



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



  • 6.  RE: VI Test is creating a phantom deleted transaction

    Posted 11-13-2024 15:34

    @Alnoor Cassim, I'm assuming that would be putting a command in the "Perform Maintenance" area of the VI Job configuration.



    ------------------------------
    Chuck Peddy
    Smartbridge Partners
    ------------------------------



  • 7.  RE: VI Test is creating a phantom deleted transaction

    Posted 11-13-2024 15:47

    Chuck - Yes correct. However instead of keying in a single command, in this case I think we'll need to point to a file that runs a tiny program that V/I will call. Let me see what I can come up. I'll report back.



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



  • 8.  RE: VI Test is creating a phantom deleted transaction

    Posted 11-13-2024 16:08

    Thank you, my friend!



    ------------------------------
    Chuck Peddy
    Smartbridge Partners
    ------------------------------



  • 9.  RE: VI Test is creating a phantom deleted transaction

    Posted 11-13-2024 16:43
      |   view attached

    Here are the steps to remove Journal JE000000 created by the V/I Test button. I've never done a Trans Journal Entry import myself, and I still haven't, so if you think you may in future have a Source Journal other than JE that is also a deleted journal, for example CD000000 then let me know and I'll change the tiny program I attached to remove all variations. This one here is schlepped together

    1. In Import Job Maint, in the the Configuration tab click on Perform button
    2. Set the Perform Maintenance screen like this (your Job Name will be different than mine)


      ** In the Command box, we're using a relative path to our tiny program to make life easier.

    3. Take the attached file and place it in the ..\mas90\CM\Script folder. Although this is not a script, when you upgrade customer later, the Migration will bring everything in the Script folder over so you don't have to manually do it or remember where it was.

    4. Try in a copy company first. When you run the import, clicking Test will still behave as it does today where deleted journal JE000000 is retained. But when Accept is clicked, it should remove that deleted record from GL_TransactionJournalHeader for you.

      Sorry I haven't tested this so let me know if it doesn't work. Also, again if you need it work on source journals other than JE then let me know and I will do this one properly as I hastily put this together.


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

    Attachment(s)

    txt
    VI_RmvDeleteJournal.txt   178 B 1 version


  • 10.  RE: VI Test is creating a phantom deleted transaction

    Posted 11-14-2024 09:26

    @Alnoor Cassim, that is a slick little routine.  It worked extremely well!

    Thank you very  much!



    ------------------------------
    Chuck Peddy
    Smartbridge Partners
    ------------------------------



  • 11.  RE: VI Test is creating a phantom deleted transaction

    Posted 11-13-2024 12:14

    What everyone else said. After you click Test, the business object sends the delete function to the journal, the equivalent of manually clicking Delete in Transaction Journal Entry. In G/L Options, if you have Retained Deleted turned on then you get this "Deleted" record. The GL_TransactionJournal_bus.pvc doesn't have exception coding for dealing with the V/I Test button.



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