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

Community site session details

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

Issue Adding Default Dimension to Fixed Asset Card

(1) ShareShare
ReportReport
Posted on by 100

Hi everyone,

I’m encountering an issue while trying to add a default dimension to a Fixed Asset Card in a specific entity Business Central using Power Automate. The error message I’m receiving is related to the parent. The body of the HTTP callout is 

{
  "tableID": "5600",
  "number": "FAXXXX",
  "dimensionId": "XXXXXXXX-XXX-XXX-XXXX-XXXXXXX493a",
  "dimensionCode": "INVESTMENT",
  "dimensionValueId": "XXXXXXXX-XXX-XXX-XXXX-XXXXXXXa789"
}

The error message

Any assistance in resolving this issue would be greatly appreciated!

Thanks 
S. Ghotekar

 

I have the same question (0)
  • Suggested answer
    Khushbu Rajvi. Profile Picture
    19,137 Super User 2025 Season 2 on at
    Issue Adding Default Dimension to Fixed Asset Card
    Please read this carefully. The same error that someone else encountered might be affecting you as well. I hope this helps you find the answer. https://community.dynamics.com/forums/thread/details/?threadid=43afdeb0-93b3-ee11-a569-002248255405
  • Sghotekar Profile Picture
    100 on at
    Issue Adding Default Dimension to Fixed Asset Card
    Thank you Khushbu Rajvi for your response. I had gone through the linked you shared. Tried the same and took the Fixed Asset Id as Parent Id but receiving another error. 
     
     
    "error": {
        "code""Application_DialogException",
        "message""The \"parenteId\" does not match to any entity."
      }
     

    Am I setting the wrong Parent Id. 

    Thanks 
    S. Ghotekar
  • Suggested answer
    YUN ZHU Profile Picture
    92,507 Super User 2025 Season 2 on at
    Issue Adding Default Dimension to Fixed Asset Card
    Hi, hope the following can give you some help.
    Dynamics 365 Business Central: How to set dimension via standard API and Can we do it via Power Automate?
     
    Thanks.
    ZHU
  • Sghotekar Profile Picture
    100 on at
    Issue Adding Default Dimension to Fixed Asset Card
    Hi YUN ZHU, thank you for your response. I gone through the link you shared below as mentioned in that i am using the custom API and standard HTTP connector and also setting the Id of Fixed Asset as Parent ID then also receiving the error 
     

     "error": {
        "code""Application_DialogException",
        "message""The \"parenteId\" does not match to any entity."
      }
     
    Here I am attaching the Custom API code which I am using for the Default Dimension
     
    namespace Microsoft.API.V2;
    using Microsoft.Finance.Dimension;
    page 30054 "APIV2 - Default Dimensions"
    {
        APIVersion = 'v2.0';
        EntityCaption = 'Default Dimension';
        EntitySetCaption = 'Default Dimensions';
        EntityName = 'defaultDimension';
        EntitySetName = 'defaultDimensions';
        DelayedInsert = true;
        PageType = API;
        SourceTable = "Default Dimension";
        Extensible = false;
        ODataKeyFields = SystemId;
        layout
        {
            area(content)
            {
                repeater(Group)
                {
                    field(id; Rec.SystemId)
                    {
                        Caption = 'Id';
                        Editable = false;
                    }
                    field(parentType; Rec."Parent Type")
                    {
                        Caption = 'Parent Type';
                    }
                    field(parentId; Rec.ParentId)
                    {
                        Caption = 'Parent Id';
                    }
                    field(dimensionId; Rec.DimensionId)
                    {
                        Caption = 'Dimension Id';
                    }
                    field(dimensionCode; Rec."Dimension Code")
                    {
                        Caption = 'Dimension Code';
                        Editable = false;
                    }
                    field(dimensionValueId; Rec.DimensionValueId)
                    {
                        Caption = 'Dimension Value Id';
                    }
                    field(dimensionValueCode; Rec."Dimension Value Code")
                    {
                        Caption = 'Dimension Value Code';
                        Editable = false;
                    }
                    field(postingValidation; Rec."Value Posting")
                    {
                        Caption = 'Posting Validation';
                    }
                    field(lastModifiedDateTime; Rec.SystemModifiedAt)
                    {
                        Caption = 'Last Modified Date';
                        Editable = false;
                    }
                }
            }
        }
        actions
        {
        }
        trigger OnInsertRecord(BelowxRec: Boolean): Boolean
        var
            DefaultDimensionParentType: Enum "Default Dimension Parent Type";
            ParentIdFilter: Text;
            ParentTypeFilter: Text;
        begin
            if Rec."Parent Type" = Rec."Parent Type"::" " then begin
                ParentTypeFilter := Rec.GetFilter("Parent Type");
                if ParentTypeFilter = '' then
                    Error(ParentNotSpecifiedErr);
                Evaluate(DefaultDimensionParentType, ParentTypeFilter);
                Rec.Validate("Parent Type", DefaultDimensionParentType);
            end;
            if IsNullGuid(Rec.ParentId) then begin
                ParentIdFilter := Rec.GetFilter(ParentId);
                if ParentIdFilter = '' then
                    Error(ParentNotSpecifiedErr);
                Rec.Validate(ParentId, ParentIdFilter);
            end;
            exit(true);
        end;
        var
            ParentNotSpecifiedErr: Label 'You must get to the parent first to get to the default dimensions.';
    }

    Thanks 
    S. Ghotekar

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

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

#1
Rishabh Kanaskar Profile Picture

Rishabh Kanaskar 4,202

#2
Nimsara Jayathilaka. Profile Picture

Nimsara Jayathilaka. 3,248

#3
Sumit Singh Profile Picture

Sumit Singh 2,893

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans