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...
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.

I have the same question (0)
  • Suggested answer
    Manan_Shah Profile Picture
    1,459 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,459 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,397 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

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 2,135

#2
YUN ZHU Profile Picture

YUN ZHU 733 Super User 2025 Season 2

#3
Sumit Singh Profile Picture

Sumit Singh 612

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans