web
You’re offline. This is a read only version of the page.
close
Skip to main content
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
    Feizel Crux Profile Picture
    20 on at
    RE: My Power Automate Flow works correctly in my Sandbox but not on Productive Environment

    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

  • Feizel Crux Profile Picture
    20 on at
    RE: My Power Automate Flow works correctly in my Sandbox but not on Productive Environment

    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
    DAnny3211 Profile Picture
    11,280 on at
    RE: My Power Automate Flow works correctly in my Sandbox but not on Productive Environment

    hi

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

    DANiele

  • Suggested answer
    Manan_Shah Profile Picture
    1,459 on at
    RE: My Power Automate Flow works correctly in my Sandbox but not on Productive Environment

    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

  • Feizel Crux Profile Picture
    20 on at
    RE: My Power Automate Flow works correctly in my Sandbox but not on Productive Environment

    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
    RE: My Power Automate Flow works correctly in my Sandbox but not on Productive Environment

    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

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…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

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

#1
Sumit Singh Profile Picture

Sumit Singh 2,707

#2
Sohail Ahmed Profile Picture

Sohail Ahmed 2,675 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 2,228 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans