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 :
Customer experience | Sales, Customer Insights,...
Answered

Real time form not showing on website

(3) ShareShare
ReportReport
Posted on by 6
We are transitioning to real time from outbound. When we embed a real time form to our website, the form does not show. The domain is authenticated since before, so that is not the issue. Does anyone have any suggestions for a solution?
I have the same question (0)
  • Suggested answer
    Daniel Norris Profile Picture
    43 on at
    The real time form sometimes has issues with caching. Make sure to open with a new browser to test it.
     
    I'd also look at dev tools console, can you see any source scripts loaded? Any errors related to it? 
     
    Do you have a heavily customised website that might be trying to interfere with your script? You could try inspect tools on the code where you placed the script, and investigate what you can see.
     
    You could try loading it on a separate blank page as well to narrow down the possibilities. If it loads, then it tells us that its probably something in the website stopping it. 
     
    Hope this helps. 
  • Vahid Ghafarpour Profile Picture
    12,200 Super User 2025 Season 2 on at
    Use browser developer tools (F12) to inspect the webpage. Look for any errors in the console that might indicate why the form isn’t loading.
     
  • Verified answer
    Daivat Vartak (v-9davar) Profile Picture
    7,835 Super User 2025 Season 2 on at
    Hello LW-11041139-0,
     

    You are absolutely right to emphasize the importance of error handling in the Power Automate flow. Without it, failures during the data transfer from Excel to Dynamics 365 can go unnoticed, leading to incomplete or inaccurate data in your CRM.

    Here's how you can implement robust error handling within your Power Automate flow for this scenario:

    Using the "Try-Catch-Finally" Pattern (Scope Actions):

    Power Automate provides the "Scope" action, which can be used to simulate a "Try-Catch-Finally" block.

    1. Create a "Try" Scope:

      • After the actions that interact with Dynamics 365 (e.g., "Create a new record," "Update a record"), add a new action and search for "Scope."
      • Rename this scope to something like "Try - Process Dynamics 365."
      • Move the Dynamics 365 connector actions inside this "Try" scope. 

    2. Create a "Catch" Scope:

       

      • Add another "Scope" action after the "Try" scope.
      • Rename this scope to something like "Catch - Handle Errors."
      • Configure the "Run after" settings for this "Catch" scope:

        • Click the "..." (three dots) on the "Catch" scope.
        • Select "Configure run after."
        • Check the boxes for "has failed" and "has timed out" for the "Try - Process Dynamics 365" scope. This ensures the "Catch" scope only runs if the "Try" scope fails or times out.  

    3. Implement Error Handling Actions within the "Catch" Scope:

      • Send a Notification: Use the "Send an email (V3) (Office 365 Outlook)" or "Post a message in a chat or channel (Microsoft Teams)" action to notify relevant personnel (e.g., the flow owner, a support team) about the error. Include details like:

        • The Excel file name and row number that caused the error.
        • The specific error message from the Dynamics 365 connector.
        • The data that was being processed (you can use expressions to retrieve the column values from the failed Excel row). 

      • Log the Error: Use an action like "Create a record (Dataverse)" to log the error details in a dedicated "Integration Errors" entity in Dynamics 365. This provides a centralized place to track and analyze integration failures. Include information like:

        • Excel File Name
        • Excel Row Number
        • Error Message
        • Timestamp
        • The data that caused the error. 

      • Update Excel with Error Status: You could add an action to "Update a row" in the Excel sheet to set the "Status" column to "Failed" and include the error message in another column. This provides feedback to the retail team.

      • Terminate the Flow (with status "Failed"): Add a "Terminate" action within the "Catch" scope and set the "Status" to "Failed." This clearly indicates that the flow run encountered an error.

      •  

    4. Optional: Create a "Finally" Scope:

      • Add a third "Scope" action after the "Catch" scope.
      • Rename it to "Finally - Cleanup (Optional)."

      • Configure the "Run after" settings for this "Finally" scope:

        • Check the boxes for "is successful," "has failed," "is skipped," and "has timed out" for both the "Try" and "Catch" scopes. This ensures the "Finally" scope runs regardless of the outcome of the previous scopes. 

      • You can include actions in the "Finally" scope for cleanup tasks, although in this specific data integration scenario, it might not be strictly necessary unless you have specific post-processing steps.


      •  

    Example Flow Structure:

    1. Trigger: When a new row is added to a table in Excel.
    2. Action: Get Row (Excel) - If needed for updates.
    3. Scope: Try - Process Dynamics 365

      • Action: Condition (Check "Action" column).

        • If "New": Action: Create a new record (Dynamics 365).
        • If "Update": Action: Update a record (Dynamics 365). 

      • Action: Update Row (Excel) - Set status to "Processed." 

    4. Scope: Catch - Handle Errors

      • Configure Run After: Runs if "Try" scope fails or times out.
      • Action: Send an email (V3) - Error Notification.
      • Action: Create a record (Dataverse) - Log Error.
      • Action: Update Row (Excel) - Set status to "Failed" and include error.
      • Action: Terminate - Status: Failed. 

    5. Scope: Finally - Cleanup (Optional)

      • Configure Run After: Runs regardless of "Try" or "Catch" outcome.
      • (Optional cleanup actions) 

      •  

    Using Expressions for Error Details:

    Within the "Catch" scope, you can use expressions to access details about the error:

    • result('Try - Process Dynamics 365'): This will give you the output of the "Try" scope, including its status (Failed, Succeeded, etc.) and any error information.
    • body('Create_a_new_record')?['error']?['message']: If the "Create a new record" action failed, this expression might give you the specific error message from the Dataverse connector (replace 'Create_a_new_record' with the actual name of your action).

    •  

    Best Practices for Error Handling:

    • Be Specific: Try to catch specific types of errors if possible and handle them differently.
    • Provide Context: Include enough information in your error notifications and logs so that the issue can be easily understood and resolved (e.g., the problematic Excel row data).
    • Implement Retries (Carefully): For transient errors, you might consider implementing a retry mechanism with a delay, but be cautious of creating infinite loops.
    • Monitor Error Logs: Regularly review your error logs in Dataverse or your notification system to identify and address recurring issues.

    •  

    By implementing a robust error handling strategy, you can ensure the reliability and accuracy of your data integration between Excel and Dynamics 365. Remember to test your error handling scenarios thoroughly to ensure they work as expected.

     
    If my answer was helpful, please click Like, and if it solved your problem, please mark it as verified to help other community members find more. If you have further questions, please feel free to contact me.
     
    My response was crafted with AI assistance and tailored to provide detailed and actionable guidance for your Microsoft Dynamics 365 query.
     
    Regards,
    Daivat Vartak

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 > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 73 Super User 2025 Season 2

#2
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 43 Most Valuable Professional

#3
Daniyal Khaleel Profile Picture

Daniyal Khaleel 32 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans