Friday, 1 November 2024
Thursday, 10 October 2024
Network calls intermittently do not occur in Published play mode on a Canvas app
Problem: An app created does not run Patch or any other network call when published and in run mode. The network calls work in edit mode. Looking at the logs, I identified some users are successfully updating using network calls
Figure 1. Monitoring shows the Edit/Play working and the Publish/Play not making any network calls.
Initial
Hypothesis:
The Patch call works in edit mode, and then intermittently, some users get it to work in Published/Play mode. This tells me the data in the Patch call is causing the network patch call to fail.
Using a Trace and running in play mode, I remove properties until I find the offending property.
Figure 2. In edit mode, a label control, CurrentDateVaue_1.Text is used
Once, we traced the value of CurrentDateValue_1, which is set by the global variable varCurrentDateTime. As this is done on a random screen, if the user does not open the screen in Publish /Play mode, the label control CurrentDateValue_1.Text is never set.
Resolution: Replace all the code using CurrentDateValue_1.Text with the variable varCurrentDateTime. The label control is not set when the network/patch call is made, and bizarrely, it does not happen. I'd expect it to send regardless and let the error handling catch the issue.
Monday, 16 September 2024
Opening Canvas App in Edit mode takes excessive time to open
Problem: Two Canvas apps in my enterprise portfolio took over 20 minutes to load in edit mode.
Initial Hypothesis: If I specify the version of a studio in the URL to an old version, the offending app loads in edit mode in under a minute.
&studio-version=v3.24052.30.298708436 onto the Canvas app edit URL
This tells me that something in my app is offending when the latest studio versions are used to edit the app. While this was okay for a few weeks as a workaround, MS support eventually gave me two settings that fixed both my apps.
Resolution:
- Turn off "Collection access in component scope"
- Turn on "New analysis engine"
Monday, 9 September 2024
Microsoft Learn company training plans is worth a look
Overview: Microsoft Learn has a nice feature to ensure users are trained on MS technologies. You can create collections of learning resources and add these to plans. Then, specify who should do the training and record the progress.
An example of a plan for new joiners to ensure they are skilled. |
Tuesday, 3 September 2024
Power Automate Flows naming for documentation
I was recently shown this format and I think it's fantastic. I'm moving all my flows to this Action naming approach:
Format: <Original OOTB name of the Action> | <Verb on Noun>
Also, see my Flow tips here
Tuesday, 13 August 2024
Pulumi to create App Insights on Azure with VS Code
Overview: Provision Azure App Insights using Pulumi on VS Code using TypeScript, code generate by Pulumi's AI web code engine. It is so lovely.
Series on Pulumi:
Introduction and setup Pulumi on VS Code
Pulumi to create App Insights on Azure with VS Code (This post)
An Introduction to Pulumi for Azure
Overview: I have been using Pulumi predominantly on AWS. This post is an introduction to setting up Pulumi on VS Code and building resources out on Azure.
Setup Pulumi a new Pulumi project using VS Code, connect to Azure and retrieve a specific Azure Resource Group", the video below walks thru me setting it up.
Summary: At this point you should have a VS code TypeScript pulumi project setup that can read/access a resource group in Azure.
Series on Pulumi:
Introduction and setup Pulumi on VS Code (This post)