Friday, January 5, 2018

Dynamics NAV - "The Array Dimensions must be identical"

https://dynamicsuser.net/nav/b/mark_brummel/posts/inside-nav-2017-improvement-comes-with-a-price


  • C365 Format Address requires CustAddress Array input, but this does not exist in most report function coding
    • Solution
      • Adjust the SalesInvShipTo function to the following
      • Remove the CustAddr Parameter

SalesInvShipTo(VAR AddrArray : ARRAY [8] OF Text[50];VAR SalesInvHeader : Record "Sales Invoice Header") ShowShippingAddr : Boolean
WITH SalesInvHeader DO BEGIN
  FormatAddr(
    AddrArray,"Ship-to Name","Ship-to Name 2","Ship-to Contact","Ship-to Address","Ship-to Address 2",
    "Ship-to City","Ship-to Post Code","Ship-to County","Ship-to Country/Region Code");
END;

No comments:

Post a Comment