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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

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

My Power Automate Flow works correctly in my Sandbox but not on Productive Environment

(0) ShareShare
ReportReport
Posted on by 20

Currently I work in a deployment of Business Central and a integration with CRM. On the process I need to create an API to send products to Assembly BOM from CRM. The problem is that this works correctly on sandbox but not on my production environment, today I was make a copy of my production environment to check if the problem was the environment type but not.

The throwed error on Automate when I test my flow is the next:

ErrorCode: BadRequest_ResourceNotFound Resource not found for the segment 'insertBOOM'.

I check the next scenarios:

1.- The API is declared in both environments and the deployed code is the same on sandbox, sandbox3 (copy of production) and production

2.- I check on postman and the API respond correctly on  my sandbox but sandbox3 (the copy of production environment), the response isn't the same, this "justify" the error because on sandbox found the action "insertBOM" but on Sandbox3 only found the API but not the action.

pastedimage1670562318236v2.pngpastedimage1670562470127v3.png

3.- I check if exist a custom connector to sandbox on Power Automate but no.

4.- The permission sets and the user permissions is the same on both environments 

The only thing that I consider is a missing Power Automate setup that definetely I didn't setup (but probably one of my work partners make), because I not fond logic that the same code work in a environment and in other no.

  • Suggested answer
    Manan_Shah Profile Picture
    1,461 on at

    Hi Feizel,

    Are you using web services to insert-Bom ? 

    If yes, please check your Production & Sandbox3 Webservices odata4 url. Those are correct or not. 


    Many Thanks,
    Manan

  • Feizel Crux Profile Picture
    20 on at

    Hi Manan

    No, I use a workflow in power automate using the connector to Business Central, the case is the same, on Sandbox Works ok but in Production/Sandbox3 detect the action but throw the error:

    ErrorCode: BadRequest_ResourceNotFound Resource not found for the segment 'insertBOOM'.

    Some minutes ago I try to delete the connection with Automate (deleting the flows and connectors, but the result is the same)

  • Suggested answer
    Manan_Shah Profile Picture
    1,461 on at

    Hi Feizel,

    Can you please check weather a user which you using to access BC with Workflow Power automate have permission to access this ?

    Possible this insert Bom is custom api and it's not accessible for this user due to permission. 



    Many Thanks,
    Manan

  • Suggested answer
    DAnny3211 Profile Picture
    11,423 Super User 2026 Season 1 on at

    hi

    but shouldn't you use a POST to insert the data first?

    DANiele

  • Feizel Crux Profile Picture
    20 on at

    Hi Daniele

    The images of postman is only to verify if I have access to the action insertBOM on case of sandbox I have response in case of Sandbox3/production no.

    Regards

  • Suggested answer
    Feizel Crux Profile Picture
    20 on at

    Hi Manan

    In my check the permissions of the user is the same on both environments but I try to copy all the user setup and permission setup from sandbox to production. I'll confirm you if is a thing of permissions but in case that this work I'll need check the missing permission to consider in future deployments.

    Regards

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 710 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 387 Super User 2026 Season 2

#3
AndrewThomas81 Profile Picture

AndrewThomas81 385 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans