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 NAV (Archived)

Regarding NAV classic client.

(0) ShareShare
ReportReport
Posted on by 475

Hi guys ,

I want to capture the error while we get from transfering the data from one form to another and also the error must get recorded in a particular table.We also want the process to continue even if the error occurs  while transmitting the data.

*This post is locked for comments

I have the same question (0)
  • ShanAbeywicrema Profile Picture
    948 on at

    Can you bit explain the requirement.

  • bharathkarunakaran Profile Picture
    475 on at

    when i transsfer the data from one form to another form

    which has table with field like this.

    form1                          form2

    name   datatype        name  datatype

    name ->text            name -> text

    date->text             date->int

    here when transfering it throws so error and I need to capture the

    error and put it another table.

    And also even if it shows error the process must continue

    and transfer the remaining fields.

  • ShanAbeywicrema Profile Picture
    948 on at

    Can you please paste you code here if possible

  • bharathkarunakaran Profile Picture
    475 on at

    Screenshot-_2800_44_2900_.pngScreenshot-_2800_44_2900_.png

  • bharathkarunakaran Profile Picture
    475 on at

    I would like the form to be running  uninterrupted even if the error occurs...and also i want the error message to be stored in a separate table ..

  • Dilanka H. Profile Picture
    116 on at

    Hi Bharathkarunakaran,

    I need something to get clear with. What exactly do you mean by the word "transfer" here? Are you referring to an Action called "Transfer" on the NAV Classic Form? If so you may have to design it in a customized way.

    May I suggest to have a look on this and you may get an idea.

    https://community.dynamics.com/nav/w/designpatterns/243.activity-log 

    If this is not what you are referring could you please be more specific?

  • Suggested answer
    Binesh Profile Picture
    7,885 on at

    Hello,

    After transferring statement you have to write code for evaluating the TEXT Value into Integer.

    IF NOT EVALUATE(YourTable.IntegerColumn,'122717') THEN BEGIN

        //YourTable.IntegerColumn := 0;
       //Write here code for inserting this record in error table.
    END;

  • Suggested answer
    RockwithNav Profile Picture
    8,635 Super User 2025 Season 2 on at

    Try What Binesh Suggested, It will solve your case.

  • bharathkarunakaran Profile Picture
    475 on at

    Hi Dilanka Hewage ,

    Thanks for your reply Its an action button in this scenario.

    thanks

  • bharathkarunakaran Profile Picture
    475 on at

    Can you explain this concept still elaborately since i am a fresher i cant able to do it..

    With Regards

    bharath.k

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 NAV (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans