Fixing the 'owningbusinessunit is required' error in Dataverse
A quick workaround for the owningbusinessunit bug breaking record creation in Canvas Apps and Custom Pages, plus bulk options if you have lots of tables to fix.

There is an interesting bug doing the rounds in some tenants that stops records being created. I have seen it in Canvas Apps and Custom Pages, and it has been catching a few people out. The error is:

On some Dataverse tables the Owning Business Unit column has switched to required, so Dataverse now expects a value to be passed in before it will create the record. It does not affect every table or every environment. Microsoft know about it, and I have been told it has been reported in multiple tenants across Australia, Europe, the UK and the US.
I first had someone flag it to me last Thursday (13 February) in the afternoon, then a few more in other tenants on Friday. Thanks to Dileep Sadasivuni for sharing their experience with this bug and some of their troubleshooting steps.
The quick fix in the maker portal
While Microsoft work on it, there is a simple mitigation you can apply to the affected tables.
- Start in dev. Go to the affected table in your development environment (nobody is making changes straight in prod, right?). Confirm the Owning Business Unit column is set to required. You will notice you cannot change it to optional from the column itself.
- Open the relationships. Select the table’s Relationships.
- Edit the Owning Business Unit relationship. Select the many-to-one relationship for Owning Business Unit and edit it.
- Set the lookup requirement to Optional. The Lookup column requirement field is probably blank, though it might say Business Required. Set it to Optional. In every erroring table I looked at, this field was blank even though Dataverse was treating the column as required.
- Save and check. Save, confirm the column now shows as optional, and the error should be gone.

The Lookup column requirement setting is the same one you see when you create or edit a many-to-one relationship. Optional means the value does not have to be set to save the record, which is exactly what we want here. Then move the change through your normal ALM process to test and production.
If you have a lot of tables to fix
Since my first post a few people have told me this is affecting more regions than the ones above, and some have it on far too many tables to click through one by one. Here are the alternatives, in the order I would try them.
Option 1: edit customizations.xml
Export the solution containing the affected tables, find the OwningBusinessUnit attribute for each table in customizations.xml, and change its RequiredLevel away from required. Then re-import and publish. It works, but it is not as simple as the UI and it is easy to break a solution file if you are not careful.

Option 2: the Dataverse Web API
You can query the table definitions for the affected tables with a filter and fix them in bulk with an API call. I would really discourage this unless it is absolutely crucial and you cannot wait for Microsoft, and only if you are confident with the API.
If you do go this way, follow what the docs say:
- Column definitions are updated with a
PUTof the full column definition, not aPATCH. - Include the
MSCRM.MergeLabelsheader set totrue, otherwise you can overwrite localised labels that are not in your update. - Publish customisations afterwards, because the change is not active until you do.
My advice
Use the UI first. If that is taking too long, consider the XML route. If the number of environments and tables still makes that painful, the API is there, but it brings more risk. For the teams I work with the UI fix was very quick, so the impact was small.
If you know someone having some fun with this bug, send them this. Hopefully Microsoft have a proper fix out soon.


