Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

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

What is the correct format for the extensionsPermissions.xml file to use with the bcsandbox-master build?

(0) ShareShare
ReportReport
Posted on by 5

Hi all,

I'm currently developing a new extension and want to implement the permission sets correctly from the beginning.

After starting with "AL: Generate permission set containing current extension objects" there are two compiler warnings:

warning AL1026: An error occurred during XML validation: 'Invalid entitlements element'.
warning AL1026: An error occurred during XML validation: 'Invalid membership entitlements element'.

The package will be created successfully but does not include the permissions file. After changing the file a bit the warnings disappear.

<?xml version="1.0" encoding="utf-8"?>
<PermissionSets>
  <PermissionSet RoleID="TEST" RoleName="TEST">
    <Permission>
      <ObjectType>Table Data</ObjectType>
      <ObjectID>50000</ObjectID>
      <ReadPermission>Yes</ReadPermission>
      <InsertPermission>Indirect</InsertPermission>
      <ModifyPermission>Yes</ModifyPermission>
    </Permission>
  </PermissionSet>
  <Entitlements>
  </Entitlements>
  <MembershipEntitlements>
  </MembershipEntitlements>
</PermissionSets>

Now I'm getting an error message on publishing the app from vs code: Object reference not set to an instance of an object

I've been looking for a solution for quite some time, but I haven't found anything. I hope someone out there could help me!

Thanks in advance!

  • Suggested answer
    Mohana Yadav Profile Picture
    60,232 Super User 2025 Season 1 on at
    RE: What is the correct format for the extensionsPermissions.xml file to use with the bcsandbox-master build?

    are you able to include new permission sets now?

  • Suggested answer
    Mohana Yadav Profile Picture
    60,232 Super User 2025 Season 1 on at
    RE: What is the correct format for the extensionsPermissions.xml file to use with the bcsandbox-master build?

    and I think below values should be integers

         <ReadPermission>Yes</ReadPermission>

         <InsertPermission>Indirect</InsertPermission>

         <ModifyPermission>Yes</ModifyPermission>

    0 = false

    1 = true

    2 = indirect

  • Dirk Biernat Profile Picture
    5 on at
    RE: What is the correct format for the extensionsPermissions.xml file to use with the bcsandbox-master build?

    This change also did not change the result.

  • Suggested answer
    Mohana Yadav Profile Picture
    60,232 Super User 2025 Season 1 on at
    RE: What is the correct format for the extensionsPermissions.xml file to use with the bcsandbox-master build?

    <ObjectType>TableData</ObjectType>

    there should not be a space between table and data

  • Dirk Biernat Profile Picture
    5 on at
    RE: What is the correct format for the extensionsPermissions.xml file to use with the bcsandbox-master build?

    Even removing the first line unfortunately does not change the result.

  • Dirk Biernat Profile Picture
    5 on at
    RE: What is the correct format for the extensionsPermissions.xml file to use with the bcsandbox-master build?

    Microsoft (R) AL Compiler version 5.0.3.15439

    Version: W1 16.0 (Platform 15.0.39228.0 + Application 16.0.10771.0)

    Azure AD tenant: common, Environment: Sandbox

  • Suggested answer
    Mohana Yadav Profile Picture
    60,232 Super User 2025 Season 1 on at
    RE: What is the correct format for the extensionsPermissions.xml file to use with the bcsandbox-master build?

    we dont need the 1st line

    <?xml version="1.0" encoding="utf-8" standalone="no"?>

  • Dirk Biernat Profile Picture
    5 on at
    RE: What is the correct format for the extensionsPermissions.xml file to use with the bcsandbox-master build?

    PermissionSets.xml

  • Suggested answer
    Mohana Yadav Profile Picture
    60,232 Super User 2025 Season 1 on at
    RE: What is the correct format for the extensionsPermissions.xml file to use with the bcsandbox-master build?

    do you have a full file to verify?

  • Dirk Biernat Profile Picture
    5 on at
    RE: What is the correct format for the extensionsPermissions.xml file to use with the bcsandbox-master build?

    The warnings still appear and the permission set is not included in the app.

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

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

#1
YUN ZHU Profile Picture

YUN ZHU 628 Super User 2025 Season 1

#2
Mansi Soni Profile Picture

Mansi Soni 495

#3
Sohail Ahmed Profile Picture

Sohail Ahmed 400

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans