two addons conflict

ara3nara3n Member Posts: 9,257
Hello Running into this problem. I have two addons to merge and they both insert fields into Sales Header. The problem is that bot exceed 4 K limit for size and I have to disable fields. Both addons are Big. One is E-Ship, the other some European addon.
Ahmed Rashed Amini
Independent Consultant/Developer


blog: https://dynamicsuser.net/nav/b/ara3n

Answers

  • ara3nara3n Member Posts: 9,257
    I guess the only option is to cherry pick fields they woulnd't use. :-k
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • zeninolegzeninoleg Member Posts: 236
    And hope there ARE fields that they do not use..... [-o<
    Best Regards,
    Oleg
  • ara3nara3n Member Posts: 9,257
    well since we are consultants, we can consult them not to use the fields. The problem is that with any new project, they will ask to add new fields to sales header, and guess what, we wouldn't be able to cause we have run out of fields. So we have to create a second table for this, and add a another table for posted documents. GRRRR.

    Is this a synthetic limitation on SQL because Native has this limitation? Will this be removed in v 5?
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • krikikriki Member, Moderator Posts: 9,118
    BlackTiger wrote:
    No. SQLServer has own limit - 8k per record.
    I thought it was 6k per record. :-k
    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


  • krikikriki Member, Moderator Posts: 9,118
    BlackTiger wrote:
    In SQL2005 - 8K
    AAAAAHHHHH!
    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


  • DenSterDenSter Member Posts: 8,307
    You can add a table with a 1-to-1 relationship to the Sales Header, and maintain records in the table triggers. You'll have some coding to do though...
  • Miklos_HollenderMiklos_Hollender Member Posts: 1,598
    Actually I'd suggest to disable standard fields you are surely not using. Adress 2 - that alone saves 30 characters. Bill-to Address 2 - another 30. Etc.
  • ara3nara3n Member Posts: 9,257
    Thanks Miklos.

    Denster. I don't want to maintain the two Addon and rewrite most of the code.
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • DenSterDenSter Member Posts: 8,307
    You don't have to rewrite anything, just a bit of code to maintain field values.
  • Miklos_HollenderMiklos_Hollender Member Posts: 1,598
    Another idea. Move the all the sell-to and buy-to name, name 2, address, post code etc. to another table and link it by primary key. It saves a LOT of space and at least these fields don't have much business logic associated with them (just the adress formatting in documents). Especially that I think you in the USA have more address fields than in the worldwide standard.
  • DenSterDenSter Member Posts: 8,307
    I don't think you can do that. If you sent an invoice to customer A at X address, and they move to Y address, you want to be able to print out a historical invoice with the address that it was actually sent to.
  • Miklos_HollenderMiklos_Hollender Member Posts: 1,598
    Exactly so.

    However:

    1) Maybe the Shipment Header / Invoice Header does not contain so many fields so they can be kept, and only three things changed a) filling these fields b) moving them to invoice and shipment 3) printing of Order Confirmation.

    2) Even if it's not the case, they also can live in the new table. I mean the primary key of the new table could be like, Table No., Document Type, Document No. And copy it upon posting.

    They reason I strongly suggest it that these code are easy to find, easy to change, and not likely to change much in later versions. I think it's easier to change it than changing something that's connected with some sophisticated business logic that lives who knows where. At least we know that the ledgers etc. don't need these fields, so the important parts of the busness logic is kept safe. Besides, these fields really eat up lots of space. There are not many 30-char fields in Sales Header except for them.
  • ara3nara3n Member Posts: 9,257
    I've solved it by disabling some of the fields in one of the addon. It had 4 text field of length 250. The data came from some setup. Pretty useless feature.
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • krikikriki Member, Moderator Posts: 9,118
    ara3n wrote:
    I've solved it by disabling some of the fields in one of the addon. It had 4 text field of length 250. The data came from some setup. Pretty useless feature.
    Luckily it was a useless feature, otherwise you wouldn't have been able to disable the fields. :mrgreen:
    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


  • ara3nara3n Member Posts: 9,257
    Lol even if it was usefull, they would just not get that feature. The client is just starting using navision. 4 less fields out of 30000 won't make a difference, and the client wont' even notice it. :mrgreen:
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • girish.joshigirish.joshi Member Posts: 407
    Mikos, it probably is a good idea to disable fields on the sales header that they don't use -- but I'd limit it to fields associated with unused, and probably never used granules. If not, you might have rewrite a lot of standard navision! If we moved Address 2, for instance, just think of how many standard reports won't compile!
  • ara3nara3n Member Posts: 9,257
    Actually most of the report use formataddress codeunit to format the address. So it won't be that many.
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
Sign In or Register to comment.