web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Answered

Error when trying to create invoice header using power automate

(1) ShareShare
ReportReport
Posted on by 65

Good evening,

This had been working fine up until yesterday (with no changes to the power automate flow being released) but seem to get the below error, when creating a sales invoice header using power automate:

{
  "status": 400,
  "message": "ErrorCode: Unknown  Function ID -541509721 was called. The object with ID 5475 does not have a member with that ID.  CorrelationId:  3adaf157-f2c5-462c-8185-3f2b6da03924.\r\nclientRequestId: d6b5c7d4-57d7-4ac9-aa12-4b570d3e5bda",
  "error": {
    "message": "ErrorCode: Unknown  Function ID -541509721 was called. The object with ID 5475 does not have a member with that ID.  CorrelationId:  3adaf157-f2c5-462c-8185-3f2b6da03924."
  },
  "source": "api.businesscentral.dynamics.com",
  "errors": []
}

Just wondering if anyone else has experienced the error before? I have raised a ticket with Microsoft Power Automate support, but they seem to think the issues rests with Business Central. We are using the online version. In production the above error is displayed, using Sandbox, the same connector work perfectly....

In the power automate flow we are just creating an invoice header with a customer number as the unique identifier. The next step in the flow creates the invoice lines (but fails prior to this step).

Very confused. Any pointers / help would be great.

Cheers,

Matt

 

I have the same question (0)
  • Suggested answer
    JAngle Profile Picture
    133 on at

    5475 is the header page of the api. Tried this myself by passing only a customer number and that appears to be the main issue. You need to try passing in the ID instead, which is a guid value not shown on the page. Perhaps if you use a page published as a web service you can get the ID from there and pass the value into the existing flow structure. It’s not for this exact example but check out this blog on using a http trigger to get the data needed to pass it then into the BC connector. A few of the other posts mention a similar pattern: joshanglesea.wordpress.com/.../

  • Matt Smith - Cha Ltd Profile Picture
    65 on at

    Hi Josh,

    Thanks for the reply. The same business central connector 'create record' just passing a customer number when creating a sales invoice header seems to work fine in a sandbox environment, so its strange that it doesn't work in production. Its been working fine until the last few days. I have tried passing the customer guid also, but seem to get the same error. Would there be any restrictions or config that I can access regarding the header page of the api in business central?

    Cheers,

    Matt

  • Eion Robb Profile Picture
    35 on at

    That's weird, I'm getting a similar error message "Function ID -541509721 was called. The object with ID 5475 does not have a member with that ID" even when just doing a standard GET to the salesInvoices v1.0 endpoint, but also only in Production.  I thought maybe it was due to the $expand=salesInvoiceLines or any $filter's but even when removing all parameters it still errors out.

  • Verified answer
    Eion Robb Profile Picture
    35 on at

    So switching from the v1.0 API to the v2.0 API (recently released docs.microsoft.com/.../dynamics_salesinvoice ) resolves it for us, but seems kinda weird

  • T.Anderson Profile Picture
    10 on at

    This solution also worked for me.

  • Thomas Franz Profile Picture
    1,105 on at

    Thanks for all the helpful info. One question I'm struggling with is how to "append $schemaversion=2.0 to the request URL" in Power Automate. Any insight would be appreciated.

  • Eion Robb Profile Picture
    35 on at

    Adding $schemaversion to the end of the url wasn't necessary for me, I'm wondering if the docs are just out of date since they talk about it happening automatically in a future version.  The important bit was replacing "/api/v1.0/" with "/api/v2.0/" in the URL

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 3,151

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,443 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,092 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans