Forum Discussion

MariaEriksson's avatar
MariaEriksson
New Member
4 years ago

DataSource error Business central

When trying to access data from SalesOrder in Business Central I get this error message, anyone knows what it means? I'm using the standard APIs v2.0. 

DataSource.Error: Dynamics365BusinessCentral: Request failed: The remote server returned an error: (400) Bad Request. (Cannot modify a record. Current connection intent is Read-Only. CorrelationId: ______)

Details:
DataSourceKind=Dynamics365BusinessCentral
DataSourcePath=Dynamics365BusinessCentral

Url=https://api.businesscentral.dynamics.com/v2.0/___________/api/v2.0/salesOrders?company=_______

 

I can access other tables from the databas such as customers etc.

8 Replies

  • MS changed someting in Feb 2022. Check out this article. Basically at the screen you get the error, select the "Transform Data" button, choose the advanced editor and then replace the last null paramenter in the list with this value:

    [UseReadOnlyReplica = false]

     Worked for me.

    • flozilla's avatar
      flozilla
      New Member

      Thank you, this was the solution for my problem!

  • MariaEriksson , seems like Problem with URL of credentials

     

    If already saved in power bi-> in datasource setting clear permission and try again

  • I have tried that already. I have this issue at two different customers. I have tried to clear permission and I have also tried with different Microsoft account.

  • A client of mine has the same problem. I tried on my system and also had that issue. 

  • It's not the credentials, especially if you can access other tables.