Options

Data export failes

kenjeskenjes Member Posts: 76
Hi

NAV 2016
I'm getting a data export error, or accatually NAV is just closing.

In my event log a part of the error is :
"Message: Unable to cast object of type 'System.Decimal' to type 'System.String'."

How do I handle this ...:smile:
Thank:smile:

Answers

  • Options
    krikikriki Member, Moderator Posts: 9,096
    I got the +- the same error when I did a GET and mixed up the primary key fields. So probably you should check that.
    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


  • Options
    Wisa123Wisa123 Member Posts: 308
    This can pretty much be everything. The debugger should bring you on the right track within minutes.
    Austrian NAV/BC Dev
  • Options
    kenjeskenjes Member Posts: 76
    The problem is that the debugger is not starting, because NAV closes :(
  • Options
    Wisa123Wisa123 Member Posts: 308
    Ok,

    1.) Filter your Export to one specific Record to hold the sample low
    2.) Fill your "OnBeforePassVariable" triggers with some Messages or whatever you can put a breakpoint on
    3.) Try debugging again - this should lead you to the field thats going wrong.

    If that doesn't help, feel free to pm me the object - I'm interested how this could happen and would like to find out.
    Austrian NAV/BC Dev
Sign In or Register to comment.