"Table XXXX is missing a matching permission set"
I have permission set XML file in the workspace including the table, but still I have this error. How the permission set is tested? Which rules must be followed?
Having the file with this in workspace and still table 50100 have no matching permission set>

It seems that this issue is now blocking tenant customizations with tables included for publishing on Business Central.
This has been fixed locally but has not made the build for BC. It will be available for the first update though. Until then it should be suppressed with a custom ruleset rule.
To clarify, we did take this fix for Business Central, so it shouldn't be blocking tenant customizations. The fix will be available in Visual Studio Code in the next update.
I'm still seeing this issue when trying to deploy an extension to Business Central trial tenants using the "Upload an Extension" function. At the moment this means we can't deploy any tenant specific extensions that contain new tables. I'm aware that the bug still exists in VSCode, but we're still seeing it in BC.
I hate to hijack this issue for my question but ... How the heck did you get this XML structure out of Business Central? I have spent an entire day now trying to figure this out and get my permission sets included in my app. I took me long enough to actually produce the output from XMLport 9171 and 9172 (they are not linked anywhere in Business Central application right now). Now that I have those files I face the same issue as #2005. Are those XMLports even meant to still be used or I am supposed to write the XML "manually"?
PowerShell... ;-) https://docs.microsoft.com/en-us/previous-versions/dynamicsnav-2016/mt584153(v=nav.90)
I hate doing this with PowerShell:
- create permissionset/permission
- find your way to the docker container
- export with Powershell
- get your file to your app
I just created a xml-snippet as part of my extension: https://marketplace.visualstudio.com/items?itemName=waldo.crs-al-language-extension
Is anyone else still seeing this issue in BC? I'm uploading an app with a permission set, the permission set is available in BC, and has the correct tables as permissions. However my user doesn't have permissions to those tables?
@paulcart when compiling, does it say in the output that the file was recognized as a permission set xml?
@DominikDitoIvosevic yep, and when it published to BC the permission set is created (as a Tenant Permission Set) with all the correct permissions. My user account has SUPER, but even if I apply the apps specific permission set I still get no permission to the tables.
It feels like it might be a licence issue as opposed to permissions?
@paulcart I'm not that familiar with how permissions work. Could you please provide us with repro steps?
@paulcart , if you are super, you have all rights possible. So if you are still not able to access whatever you put in the permission-xml, then it's most probably a license issue indeed. Permission do not override licenses.
I had the same issue. Since today it seems to be fixed, right?
If you are still having this issue, could you please open a support ticket? We believe that code-wise the relevant bugs have been fixed but some tenants might not have the fix applied yet and support will assist in finding the exact state of your tenant.
Hi, it's working perfectly today, so it must've just been my tenant was waiting for the fix. Thanks for your help!
I have developed an extension that adds a new table using the "Microsoft Sandbox" and I am getting this "Table XXXX is missing a matching permission set" error when I try to deploy the App to a live client. (it deploys fine to the SandBox) I do not have a permission.xml file. Where do I find this file if I am using the Sandbox and cannot run a Power-Shell command?
I added snippets for that in the CRS AL Language Extension. Just install that vscode extension, create an xml file and use the snippet...
Waldo,
Thanks for creating this extension! I have in installed. I have created an extension that include a Table 50100 JobPlanSetStatus
What would the vales in the xml file need to be for RoleID, RoleName, ObjectType and ObjectId?
Thanks
How do I retrieve a list of RoleID's and RoleNames's from the Sandbox?
When I turn on the al.enableCodeAnalysis then I get this error, with this set to false the App still will not upload to a live D365BC Client, what am I missing?
