Forum Discussion
undefinedPower BI error NULL
- 1 year ago
The latest version of the connector no longer permits the 4th parameter to be null.
Please try the following solution:
Before:
Dynamics365BusinessCentral.ApiContentsWithOptions(null, null, null, null)After:
Dynamics365BusinessCentral.ApiContentsWithOptions(null, null, null, [UseReadOnlyReplica = null])
Hi Pavan,
The solution mentioned above applies only to the Power BI connector (Dynamics365BusinessCentral.ApiContentsWithOptions), not to OData.Feed.
Therefore, replacing null will not resolve the issue with the OData.Feed connector.
You can find more documentation about OData here:
https://learn.microsoft.com/en-us/power-query/connectors/odata-feed
Below is an example that connects to Business Central web services:
OData.Feed("https://api.businesscentral.dynamics.com/v2.0/11111111-1111-1111-1111-111111111111/Sandbox/ODataV4/Company('Company Name')", null, [Implementation = "2.0"])
(replace 11111111-1111-1111-1111-111111111111 & Company Name)
Best regards,
Dejan
Thank you very Dejan, will try that