<turbo-stream action="update" target="wiki_card"><template>

<h1>403 Forbidden: Business Central permission error on the Microsoft Entra app</h1>
<div class="trix-content"><p>This error message <strong>The REST service returned a status code that is not 20x - i.e. not OK - Status code received: 403 Forbidden Response body:<br>{"error":{"code":"Internal_ServerError","message":"Sorry, the current permissions prevented the action.(TableData 38 Purchase Header Modify: Base Application) </strong>indicates that the user or application does not have permission to perform the requested action.<br>The user or service account <strong>does not have permission to modify the Purchase Header table (Table ID 38)</strong> in Business Central.<br><br><strong>What it means</strong></p><p>Rapidi connects to Business Central as a <strong>Microsoft Entra application</strong> (service-to-service authentication). BC refused the request because that application doesn't have the permission it needs. In this example, it can't modify records in the <strong>Purchase Header</strong> table (table 38), which holds the header of purchase orders, invoices and credit memos.</p><p>The error code says <code>Internal_ServerError</code>, but this isn't a server fault. It's a standard BC security check, and the data sent by Rapidi is fine.</p><p><strong>How to read the message<br></strong><strong></strong></p><figure class="attachment attachment--content"><table class="table table-bordered"><thead><tr><td>Part</td><td>Example</td><td>Meaning</td></tr></thead><tbody><tr><td>Object type</td><td>TableData</td><td>The type of object to add to the permission set</td></tr><tr><td>Object ID</td><td>38</td><td>The ID of the table</td></tr><tr><td>Object name</td><td>Purchase Header</td><td>The name of the table</td></tr><tr><td>Permission</td><td>Modify</td><td>The missing permission: Read, Insert, Modify or Delete</td></tr><tr><td>Extension</td><td>Base Application</td><td>The app the table belongs to. Base Application means standard BC. Any other name means a custom extension.</td></tr></tbody></table><figcaption class="attachment__caption"></figcaption></figure><strong><br>Solution</strong><p></p><p>All of this is done inside Business Central. Nothing needs to change in the Microsoft Entra admin center, the Business Central admin center or Rapidi.</p><ol><li><strong>Add the permission to a permission set</strong><ol><li>In BC, open <strong>Permission Sets</strong>.</li><li>Open the user-defined set used for Rapidi (for example <strong>RAPIDI</strong>), or create one with <strong>+ New</strong>.</li><li>Choose <strong>Select Objects...</strong> and pick the object from the error (here <strong>TableData 38 Purchase Header</strong>).</li><li>Set <strong>Read Permission</strong> and the missing permission (here <strong>Modify Permission</strong>) to <strong>Yes</strong>.</li></ol></li><li><strong>Assign the permission set to the Microsoft Entra application</strong><ol><li>In BC, open <strong>Microsoft Entra Applications</strong> and open the application used by the Rapidi connection.</li><li>Set <strong>State</strong> to <strong>Disabled</strong>. While the app is Enabled, <strong>User Permission Sets</strong> is read-only.</li><li>In <strong>User Permission Sets</strong>, choose <strong>New Line</strong> and add the permission set. Leave <strong>Company</strong> empty to apply it to all companies.</li><li>Set <strong>State</strong> back to <strong>Enabled</strong>.</li></ol></li><li>You only need step 2 the first time you add the set to the application. Later changes to the lines inside the set apply straight away.</li><li><strong>Rerun the transfer in Rapidi.</strong> If the error now names a different object or permission, add it to the same permission set (step 1) and rerun.</li></ol><p><strong>Important:</strong> While the application is Disabled, Rapidi can't connect to BC, and transfers on that connection fail. Do step 2 in one go, ideally when no schedule is running, and always set <strong>State</strong> back to <strong>Enabled</strong>.</p><p><strong>Tips</strong></p><ul><li><strong>Check what the app actually has:</strong> open <strong>Effective Permissions</strong> for the application's user (the <strong>User Name</strong> on the application card, for example RAPIDI DEMO APP).</li><li><strong>Custom tables:</strong> if the extension isn't Base Application, the extension's developer can include the table in the extension's own permission set. Then the access doesn't have to be added by hand after each update.</li><li><strong>Named user instead of an app:</strong> if the connection uses a regular BC user, add the permission set on the <strong>Users</strong> page instead of step 2.</li></ul></div>
</template></turbo-stream>

