web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics GP (Archived)

Doc Date Verify Tool via Integration Manager

(0) ShareShare
ReportReport
Posted on by 766

HI-


I have PSTL downloaded, and I have activated the Doc Date Verify tool. It works great for daily data entry.  However, during Integration Manager, the team has been able to transpose the dates and we are still experiencing doc dates posting through for future years.

This link was helpful to me, however, I am wondering if there is a way to identify the same during the Integration process.

https://community.dynamics.com/gp/b/gpfrankhamelly/archive/2010/01/12/gptip42day-document-date-verify

*This post is locked for comments

I have the same question (0)
  • Tim Foster Profile Picture
    8,515 on at

    Nicole,

    What do you want to happen when the "bad" dates are encountered?  Reject the record or import and warn?

    Tim

  • VJ Shah Profile Picture
    373 on at

    Hi Nicole - 

    The best way to address this is thru the Scripting available via IM framework. The script library comes with a list of examples on how to do this. You will want to change your document date mapping to use the Script instead of mapping to a field. Within the script, you can either lookup against the open fiscal periods date range or use the current date to evaluate their input. 

    Hope this helps. 

    Thanks, VJ 

  • Bill Campbell Profile Picture
    12 on at

    Nicole, you have found one of the weak links in the PSTL I think and that is it does not appear to validate (at least I have been able to make it past) all dates in the IM system.

    I have run into similar problem and only by checking the data after import have we saved our selves hundreds of man hours in data repair.

    I have to like the suggestion from RSS regarding the idea of using the scripting feature in IM while running the IM - however, I am not sure how to make it work - I am hoping to review this myself and see what it might take.  

    If you get it reviewed and tested first, be sure to post your response here for others to learn from.

  • Napolo Profile Picture
    766 on at

    Tim - I would like for those transactions to be rejected.

  • Napolo Profile Picture
    766 on at

    Thank you Bill, will do.  

    Please do the same.   I believe I have located where the script should be setup, but I am not sure what vb to use.  The Library doesn't appear to have the option I am looking for. Or perhaps, I am missing something.

  • Napolo Profile Picture
    766 on at

    RRS - Do you have a particular Script in mind that would reject transactions if the doc date is for a future period?

  • Suggested answer
    Napolo Profile Picture
    766 on at

    I had a little help with the script, and it works using the below.  I have included the code and a screen shot of IM.

    dtEOM = dateadd("m",1,Now())
    dtEOM = month(dtEOM) & "/1/" & year(dtEOM)

    if SourceFields("DOC DATE") >= dtEOM then
        CancelDocument("The document date is in the future, document cancelled")
        'msgbox("cancelled")
    end if

    You can paste the above code in "Before Document" option in IM.

    date-script.png

    Hope this helps.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics GP (Archived)

#1
mtabor Profile Picture

mtabor 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans