Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

Data Upgrade - Dimension Set Id for customized tables

Posted on by Microsoft Employee

Dear Everyone,

We are doing a Data Upgrade from NAV 2009 to NAV 2013. we have some customized Tables for which Document Dimension & Posted document dimension are there in 2009 version. we created the field 'Dimension Set Id' and started the Data Migration . After the Upgrade - we can see standard tables have Dimension  set Id, where as Customized Tables are blank Dimension set ID. We used standard Toolkit Objects.

Any suggestion ? How to get Dimension Set Id in customized Tables.

*This post is locked for comments

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Data Upgrade - Dimension Set Id for customized tables

    Try debugging the code for one of the table and find out the root cause of the same...

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Data Upgrade - Dimension Set Id for customized tables

    Thank you. I tried this the below solution from the above link. But little surprised as its working for few tables & not working for few tables. I have so many tables which has dimensions.Dimension set ID got created for few, but few are still blank.

     ---No tables update was necessary. I only modify codeunit 104049 Upgrade Dimension Entry - SQL. In the function "UpdateParentTable" I added our tables name to condition for "KeyOffset" set. Again after data upgrade no error was detected and I get new "Dimension Set ID"

    Our tables name are Set-off Header, Set-off Line, Debt Adjustment Line, Posted Credit Line.

      IF SQLReader.HasRows THEN
        WHILE SQLReader.Read DO BEGIN
          ParentTableID2 := SQLReader.GetInt32(0);  // Parent Table ID
          Window.UPDATE(2,GetTableName(ParentTableID2));
          IF (ParentTableID2 IN [DATABASE::"Standard Sales Line",DATABASE::"Standard Purchase Line"
             ,DATABASE::"Set-off Header",DATABASE::"Set-off Line",DATABASE::"Debt Adjustment Line",DATABASE::"Posted Credit Line"]) THEN
            KeyOffset := 2
          ELSE
            KeyOffset := 1;
          GetTableKeyFieldArray(ParentTableID2,ParentTableKeyFields);
          IF HasTableField(ParentTableID2,DestDimFieldName) AND AreDimKeyAndParentKeyCompatible(KeyOffset) THEN BEGIN
            SQLCommand.CommandText := UpdateLedgerEntryTableQry(ParentTableID2,KeyOffset,DestDimFieldName);
            SQLCommand.ExecuteNonQuery;
          END ELSE
            IF NOT AreDimKeyAndParentKeyCompatible(1) THEN
              UpgradeErrorLog.SetError(STRSUBSTNO(Text001,DimTableID,ParentTableID2),DimTableID,'');
        END;

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Data Upgrade - Dimension Set Id for customized tables

    Hi,

    Check this post.

    forum.mibuso.com/.../upgradation-to-2013-dimension-set-entry-table

    This might help.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans