Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested answer

Transaction Import - Voucher and Adjustment Import

(0) ShareShare
ReportReport
Posted on by 71

How to modify the Voucher and Adjustment CTL file so that it can import Document-level notes for a batch when using Transaction import. Currently, the CTL file only imports the default after generating it from Microsoft Dynamics SL. So, I was wondering if there is an easy way to alter the CTL file to make the transaction import start importing notes.

I have over a hundred batches and within those batches maybe 10 or 20 Documents all containing notes at the Document-level. So, having to write/copy all those notes back to the individual documents is time consuming, and slows up the work environment.

  • Laura Profile Picture
    456 on at
    RE: Transaction Import - Voucher and Adjustment Import

    In order to import multiple batches do we need to include "call Edit_Finish(0)"  before the Case TI_Finish line in the control file to get it start a new batch?

    Our data file contains 3 levels Batch, Document, Transaction - we do this multiple times in the file to create new batches, but it will only read and create the first set and ignores the rest.

    Would hate to have separate data files for each Batch.

  • REW Profile Picture
    51 on at
    RE: Transaction Import - Voucher and Adjustment Import

    Hi Justin -

    I can see the .ctl file above on 4/5 at 3:04 pm.  The only thing, she added was At line 42 to get the note text to populate.

    public NoteStr$

    public NoteStr1$

    I hope this helps!

  • JustinOP Profile Picture
    424 on at
    RE: Transaction Import - Voucher and Adjustment Import

    Hi Ruth -

    It just so happens I'm attempting to do something very similar and am discovering this thread after picking it up in late March! (trying to modify our existing transaction import process by adding d the "note" per Voucher and Adjustment transaction detail level import).

    If you might be willing to share a sample of the CTL file (or point me in direction of the plumbline consultant who assisted?) I'd be extremely grateful. We've been playing w/ the arrangement of the code additions to the CTL file and can't seem to get it to work! I have to imagine we're missing something simple, but its turned into a bit of a struggle. The alternative seems to be more intense customizing which we'd like to avoid if possible.

    All the best,

    Justin

  • REW Profile Picture
    51 on at
    RE: Transaction Import - Voucher and Adjustment Import

    This was resolved with help of Plumbline consultant - allelujah!

    public NoteStr$

    public NoteStr1$

    Add to main section before "Sub ProcessImportLine( LevelNumber%, Retval% )"

  • REW Profile Picture
    51 on at
    RE: Transaction Import - Voucher and Adjustment Import

    Yes that was just my last "hail Mary".  Normally the field doesn't have quotation marks.

  • MARC_ Profile Picture
    626 on at
    RE: Transaction Import - Voucher and Adjustment Import

    Just to confirm, have you tried running it where the http site (on your test data file) does not have quotes around it?  

  • REW Profile Picture
    51 on at
    RE: Transaction Import - Voucher and Adjustment Import

    4010000_5F00_notes.txt

    You are wonderful.  Thanks for your time.

  • MARC_ Profile Picture
    626 on at
    RE: Transaction Import - Voucher and Adjustment Import

    I'm not sure if i'll be able to figure it out or not, but try saving the .ctl file as .txt and uploading it. see if that works.  

  • REW Profile Picture
    51 on at
    RE: Transaction Import - Voucher and Adjustment Import

    Thanks Marc,

    I'm using ImportField(33) which is the  next field after 32 which inserts correctly.  This is a customized screen with fields from MaxQ technology so there is a checkbox possible in the 33 position, so I tried it with 34 and it was still null.  I feel like I tried every permutation at this point. The forum editor won't let me upload the control but here is the single instance file and what is getting inserted if that helps illustrate. We just pasted the note text in manually today.

    [View:/cfs-file/__key/communityserver-discussions-components-files/35/2102_5F00_acstran_5F00_onerecord.txt]Notes_5F00_Inserted.JPG

  • MARC_ Profile Picture
    626 on at
    RE: Transaction Import - Voucher and Adjustment Import

    And you are sure that the value you are mapping in the NoteStr1 = ImportField(?) is the correct excel column with the note? 

    Marc

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293,020 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,837 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Product updates

Dynamics 365 release plans