web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

XML Import Employee Department

(0) ShareShare
ReportReport
Posted on by 12

We created XMLPort to import Employee Departments.

However we are getting error

The field No. of table Default Dimension contains a value 'XXXXX' that can not be found in related table (Employee)

Any hint please.

I have the same question (0)
  • Suggested answer
    JAngle Profile Picture
    152 on at

    Is the xml port looking to handle the default dimension table? Looks like the validation code of default dimension is run before the insert(); on the employee table has run

  • Mohammed Marhoon Profile Picture
    12 on at

    Its part of the default CodeUnit 408 DimensionManagement and part of SaveDefaultDim Function

    See the error stop in which line  11

    1SaveDefaultDim(TableID : Integer;No : Code;FieldNumber : Integer;ShortcutDimCode : Code)

    2  GetGLSetup;

    3  IF ShortcutDimCode <> '' THEN BEGIN

    4    IF DefaultDim.GET(TableID,No,GLSetupShortcutDimCode[FieldNumber])

    5    THEN BEGIN

    6      DefaultDim.VALIDATE("Dimension Value Code",ShortcutDimCode);

    7      DefaultDim.MODIFY;

    8    END ELSE BEGIN

    9      DefaultDim.INIT;

    10      DefaultDim.VALIDATE("Table ID",TableID);

    11      DefaultDim.VALIDATE("No.",No); = >>>> Error Stop in this Line

    12      DefaultDim.VALIDATE("Dimension Code",GLSetupShortcutDimCode[FieldNumber]);

    13      DefaultDim.VALIDATE("Dimension Value Code",ShortcutDimCode);

    14      DefaultDim.INSERT;

    15    END;

    16  END ELSE

    17    IF DefaultDim.GET(TableID,No,GLSetupShortcutDimCode[FieldNumber]) THEN

    18      DefaultDim.DELETE;

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,949 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,064 Super User 2026 Season 1

#3
Khushbu Rajvi. Profile Picture

Khushbu Rajvi. 559 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans