Skip to main content

Build an Overtime Timesheet App in Power Apps — Part 20: Run the Solution Checker and Export the Solutions

· 22 min read
Jagdish Kumawat
Founder @ Dewiride

The Overtime Timesheet app, its seven flows and the setup flow all work. This part turns them into four files another organization can install: both solutions checked, at version 1.0.0.0, as managed and unmanaged zips, with clearly named connections and without this tenant's SharePoint site and lists inside.

This is Part 20 of a 22-part series.

  1. Part 1: Plan the App and Set Up the Demo Organization
  2. Part 2: Create the SharePoint Site and Lists
  3. Part 3: Keep Overtime Private with SharePoint Permissions
  4. Part 4: Create the Solution, Environment Variables and Canvas App
  5. Part 5: Build the Home Screen
  6. Part 6: Build the Log Overtime Screen
  7. Part 7: Build the My Overtime Screen
  8. Part 8: Build the Approval Flow for Teams and Outlook
  9. Part 9: Show Approvers What's Waiting
  10. Part 10: Build the Departments Screen
  11. Part 11: Build the Reports Screen
  12. Part 12: Import the Old Excel Timesheet
  13. Part 13: Create the Monthly Payroll Workbook with Office Scripts
  14. Part 14: Create the Payroll Workbook from the App
  15. Part 15: Build the Power BI Overtime Report
  16. Part 16: Share the App and Add It to Microsoft Teams
  17. Part 17: Manage Joiners, Movers and Leavers
  18. Part 18: Build a Setup Flow That Creates the Lists
  19. Part 19: Set SharePoint Permissions from the Setup Flow
  20. Part 20: Run the Solution Checker and Export the Solutions (you are here)
  21. Part 21: Install the App in a New Environment (coming soon)
  22. Part 22: Recap, Production Checklist and Next Steps (coming soon)

Everything the app needs lives in two solutions. Overtime Timesheet holds the canvas app, its seven flows, their connection references and the five environment variables from Part 4. Overtime Timesheet Setup holds the flow from Parts 18 and 19 that creates the lists and sets their permissions on a new site. Another organization installs the app by importing these two solutions, so this part checks them, gives them their first release number and exports them.

Three things need attention before the files can go anywhere. The solution checker flags 18 issues in the app. Five connection references have names the designer made up. And the exported app zips carry this tenant's SharePoint site and list IDs, which the switch meant to keep them out doesn't do.

What You'll Have​

FileWhat's in itWho it's for
OvertimeTimesheetSetup_1_0_0_0_managed.zipThe setup flow and its SharePoint connection referenceAnyone installing the app, first
OvertimeTimesheet_1_0_0_0_managed.zipThe canvas app, its seven flows, six connection references and five environment variables, without valuesAnyone installing the app, second
OvertimeTimesheetSetup_1_0_0_0.zipThe Setup solution, unmanagedYou, as the source
OvertimeTimesheet_1_0_0_0.zipThe app's solution, unmanagedYou, as the source

Nothing here costs money. The solution checker is part of Power Apps, and the Power Platform CLI is a free download from Microsoft.

Prerequisites​

Step 1: Make the App's Solution Preferred Again​

Parts 18 and 19 made Overtime Timesheet Setup the preferred solution, so that the setup flow landed there. Anything new you create would land there too. In Power Apps, select Solutions, then Set preferred solution, and choose Overtime Timesheet (dewiride) (How to Create a Solution and Publisher in Power Apps):

The Set your preferred solution dialog with Unless otherwise specified, save my changes in set to Overtime Timesheet (dewiride), and the Apply and Cancel buttons

Select Apply. With Overtime typed in the list's Search box, the page shows the two solutions this part works on, both at the version Part 4 and Part 18 gave them, and never checked:

The Solutions page filtered to Overtime: Current preferred solution Overtime Timesheet, and the list with Overtime Timesheet Setup and Overtime Timesheet, labelled Preferred solution, both at version 0.1.0.0 by Dewiride, Solution check Hasn't been run

Step 2: Check What Each Solution Holds​

A solution takes everything in it to the new environment, and nothing that isn't. Open Overtime Timesheet. A solution now opens on an Overview page; See all under Recent Items goes to Objects:

The Overtime Timesheet solution's Objects page, All (19): seven cloud flows, the canvas app Overtime Timesheet, five connection references whose names start with new_sharedoffice or new_shared, the Overtime Timesheet SharePoint reference, and the five environment variables Departments, Overtime Timesheet Site, OvertimeEntries, Payroll Exports and Settings

TypeCountObjects
Canvas app1Overtime Timesheet
Cloud flows7Overtime Approval (Part 8), Get Waiting Approvals (Part 9), Get Overtime Report (Part 11), Import Old Overtime Timesheet (Part 12), Create Payroll Workbook and Monthly Payroll Workbook (Part 13), Create Payroll Workbook Now (Part 14)
Connection references6One for each connector the flows use
Environment variables5The site, Departments, OvertimeEntries, Payroll Exports and Settings

Overtime Timesheet Setup holds the setup flow and its own SharePoint connection reference:

The Overtime Timesheet Setup solution's Objects page, All (2): the connection reference Overtime Timesheet Setup SharePoint and the cloud flow Set Up Overtime Timesheet

Nothing is missing, and nothing extra is in either solution.

Step 3: Run the Solution Checker on Both​

Run the checker on each solution as How to Run the Solution Checker in Power Apps shows: ... next to the solution, Solution checker, Run. I started both a few seconds apart, and the list showed them running side by side:

The Solutions list with Running... in the Solution check column for both Overtime Timesheet Setup and Overtime Timesheet

About a minute later both said Results as of 11:03 AM. Overtime Timesheet Setup had nothing to report:

The Solution checker results for the Setup solution, Results as of 28/11/2026, 11:03:01, with an empty list and the message We didn't find anything to show here

Overtime Timesheet had 18 Medium issues from two rules, Change the FocusedBorderThickness property to be more than 0 and Set TabIndex to 0 or greater to ensure that interactive elements have a tab stop:

The app solution's checker results, Results as of 28/11/2026, 11:03:15, the first six of eighteen Medium issues, alternating between the FocusedBorderThickness and TabIndex rules, each with the object name /CanvasApps/dewiride_overtimetimesheet_80d5a_Doc... and the references app-make-focusborder-visible and app-include-tab-index

The seven flows added none. Microsoft's article says the checker analyses Power Automate flows via flow checker and Power Fx expressions via app checker: the same checkers the flow designer and Studio show while you build.

Step 4: Find the Controls Behind the 18 Issues​

The results page names only the app's file. Download results names the screen and control behind each issue (How to Download Solution Checker Results in Power Apps). The report's Module, Type and Member columns showed nine controls, each flagged once for TabIndex and once for FocusedBorderThickness:

ScreenControlWhat it is
Home ScreenlblTitleHSThe screen's heading (Part 5)
Log Overtime ScreenlblTitleLOThe screen's heading (Part 6)
My Overtime ScreenlblTitleMOThe screen's heading (Part 7)
Waiting for Approval ScreenlblTitleWAThe screen's heading (Part 9)
Departments ScreenlblTitleDSThe screen's heading (Part 10)
Edit Department ScreenlblTitleEDThe screen's heading (Part 10)
Edit Department ScreenlblProblemEDThe message that says what's wrong before saving (Part 10)
Reports ScreenlblTitleRSThe screen's heading (Part 11)
Reports ScreenlblChartTitleRSThe chart's title (Part 11)

All nine are text that does nothing when selected, with TabIndex -1. Studio's App checker flagged the headings the same way while they were built, and Part 5 kept them as they are on purpose: a label with TabIndex 0 or more is read out as a button by screen readers, and Microsoft's guidance gives labels that aren't interactive TabIndex -1 (Fixed: "Missing Tab Stop", Fixed: "Focus Isn't Showing"). A focus border only shows on a control the keyboard can reach, and these never take the keyboard's focus.

So the app ships with these 18 findings, and with this table to explain them. One thing I can't explain: lblProblemED is a copy of the Log Overtime screen's lblProblemLO (Part 10), and the checker didn't list lblProblemLO.

Step 5: Give the Connection References Clear Names​

Five of the six references were created by the flow designer when the flows first used a connector (Parts 8, 11 and 12). Their Name starts with new_, not the publisher's dewiride_, and their display names are just the connector's. A Name can't be changed, so I kept them, and gave each a display name that says which app it belongs to (How to Rename a Connection Reference in Power Apps):

The Edit Office 365 Outlook panel with Display name changed to Overtime Timesheet Office 365 Outlook, Name new_sharedoffice365_e2405 greyed out, Connector Office 365 Outlook and Connection Overtime Timesheet Outlook

Display name beforeDisplay name nowName, unchangedUsed by
Excel Online (Business)Overtime Timesheet Excel Online (Business)new_sharedexcelonlinebusiness_efd18Create Payroll Workbook, Import Old Overtime Timesheet
Office 365 GroupsOvertime Timesheet Office 365 Groupsnew_sharedoffice365groups_a6b6aGet Overtime Report, Monthly Payroll Workbook
Office 365 OutlookOvertime Timesheet Office 365 Outlooknew_sharedoffice365_e2405Overtime Approval, Monthly Payroll Workbook
Office 365 UsersOvertime Timesheet Office 365 Usersnew_sharedoffice365users_8936fOvertime Approval, Get Waiting Approvals, Get Overtime Report, Import Old Overtime Timesheet
Standard approvalsOvertime Timesheet Approvalsnew_sharedapprovals_df852Overtime Approval
Overtime Timesheet SharePointUnchangeddewiride_OvertimeTimesheetSharePointEvery flow but Create Payroll Workbook Now, which calls its child flow

Office 365 Users became Overtime Timesheet Office 365 Users, not Overtime Timesheet Users, which is the name of the users group in Microsoft Entra. These names are what an installer sees when the import asks for a connection for each reference. All six now read alike:

The solution's Connection references list after the renames: Overtime Timesheet Approvals, Overtime Timesheet Excel Online (Bus..., Overtime Timesheet Office 365 Groups, Overtime Timesheet Office 365 Outlo..., Overtime Timesheet Office 365 Users and Overtime Timesheet SharePoint, with Names still starting new_shared and dewiride_Overti...

Each save showed the confirmation Save changes to this connection reference?, and after the five, the Solutions page showed one banner for each:

Five yellow banners: Cloud flows are being updated for object 'Overtime Timesheet Office 365 Outlook', then Excel Online (Business), Office 365 Groups, Office 365 Users and Approvals, each with See cloud flow updates

Microsoft's article says connection references are saved asynchronously, and that this banner links to the update details. See cloud flow updates opened an empty list, and stayed empty after Refresh:

The Cloud flow updates panel with a Refresh button and the column headers Name, Status, Completed on and Message, and no rows

So I checked the flows instead: all seven were still On, with the same Last Modified as before. A flow stores the reference's Name, which didn't change.

Step 6: Export Both Solutions as 1.0.0.0​

Export each solution twice, managed and unmanaged, with the same version, as How to Export a Solution in Power Apps shows:

SettingValue
Publish all changesPublish, on the first export (about 30 seconds)
Version number1.0.0.0 for all four exports, whatever Power Apps proposes
Export asManaged once, Unmanaged once, for each solution
Run solution checker on exportOff: Step 3 has just run it

The Export this solution pane: Version number 1.0.0.0 under Current version 0.1.0.0, Export as Managed (recommended) selected, Unmanaged, Run solution checker on export unticked, and the Export and Cancel buttons

Version 1.0.0.0 is the first release: Parts 4 and 18 used 0.1.0.0 while the app was being built. After the first export of a solution, Power Apps proposed 1.0.0.1 for the second, so I typed 1.0.0.0 again. The exports I timed took between 16 and 48 seconds, and each ended with a message such as Solution "Overtime Timesheet 1.0.0.0" exported successfully. and a Download button:

Exported files
OvertimeTimesheetSetup_1_0_0_0_managed.zip 8,534 bytes
OvertimeTimesheetSetup_1_0_0_0.zip 8,534 bytes
OvertimeTimesheet_1_0_0_0_managed.zip 201,071 bytes
OvertimeTimesheet_1_0_0_0.zip 201,064 bytes

After a reload, both solutions show 1.0.0.0:

The Solutions page filtered to Overtime after the exports: Overtime Timesheet, Preferred solution, and Overtime Timesheet Setup, both at version 1.0.0.0 by Dewiride, with Results as of 11:03 AM in the Solution check column

Step 7: Take This Tenant's Values Out of the App's Zips​

The five environment variables' current values point at this tenant: the site's address and four list and library IDs. With no value in the solution, the import asks the installer for their own site and lists (How to Set Environment Variable Values When Importing a Solution).

Part 4 set each variable's Advanced → Export value to No. Before exporting, the site variable said Yes:

The Edit Overtime Timesheet Site panel with the Current site masked, and under Advanced, Export value switched on, Yes, The current value will remain in the exported solution file, Delete from this environment, and an empty Default Value

I set it to No and saved, and opened it again: Yes. That's the problem in Fixed: Environment Variable Export Value Switches Back to Yes in Power Apps, and the exported zips had all five values inside. The fix works on the exported files with the Power Platform CLI (How to Keep Environment Variable Values Out of an Exported Solution). In a folder OvertimeTimesheet that holds the four zips in exported:

Terminal
pac solution unpack --zipfile exported/OvertimeTimesheet_1_0_0_0.zip --folder source --packagetype Both
Output
Unpacking Solution...

Extracting ~/OvertimeTimesheet/exported/OvertimeTimesheet_1_0_0_0.zip and ~/OvertimeTimesheet/exported/OvertimeTimesheet_1_0_0_0_managed.zip to ~/OvertimeTimesheet/source

Skipping localization
Processing Component: Workflows
- Create Payroll Workbook
- Create Payroll Workbook Now
- Get Overtime Report
- Get Waiting Approvals
- Import Old Overtime Timesheet
- Monthly Payroll Workbook
- Overtime Approval
Processing Component: CanvasApps
- dewiride_overtimetimesheet_80d5a

Unmanaged Extract complete.

Skipping localization

Managed Extract complete.


Unpacked Solution.

Each variable has its own folder with two files. The environmentvariablevalues.json file is this tenant's value:

source/environmentvariabledefinitions
dewiride_DepartmentsList/environmentvariabledefinition.xml
dewiride_DepartmentsList/environmentvariablevalues.json
dewiride_OvertimeEntriesList/environmentvariabledefinition.xml
dewiride_OvertimeEntriesList/environmentvariablevalues.json
dewiride_OvertimeTimesheetSite/environmentvariabledefinition.xml
dewiride_OvertimeTimesheetSite/environmentvariablevalues.json
dewiride_PayrollExportsLibrary/environmentvariabledefinition.xml
dewiride_PayrollExportsLibrary/environmentvariablevalues.json
dewiride_SettingsList/environmentvariabledefinition.xml
dewiride_SettingsList/environmentvariablevalues.json

Delete the five value files:

Terminal
rm source/environmentvariabledefinitions/*/environmentvariablevalues.json

The * stands for each variable's folder, so the command deletes the five value files and leaves the five definitions. Then pack both zips again into release:

Terminal
pac solution pack --zipfile release/OvertimeTimesheet_1_0_0_0.zip --folder source --packagetype Both

The output lists every component type it looks for and ends with Unmanaged Pack complete., Managed Pack complete. and Packed Solution. All three steps together:

A macOS-style terminal window with three commented commands: pac solution unpack of the exported unmanaged zip into source with --packagetype Both, rm of every environmentvariablevalues.json under source/environmentvariabledefinitions, and pac solution pack into release with --packagetype Both

The Setup solution has no environment variables, so its two zips go into release as they were exported. Nothing in Power Apps changed: the app keeps its values in this environment and keeps working.

Step 8: Check What Still Points at This Tenant​

With the values out, I looked through the seven flows' definitions in source/Workflows for anything else tied to this tenant: a site address, an ID or an email address typed into an action. Every SharePoint action reads the environment variables. Two actions keep IDs that were picked from drop-downs:

FlowActionIDs it keeps
Create Payroll Workbook (Part 13)Fill the workbookThe Payroll Exports library, and the library and file of the Fill Payroll Workbook script
Import Old Overtime Timesheet (Part 12)List the old rowsThe old workbook in my OneDrive: its library, file and table

Here is Fill the workbook in CreatePayrollWorkbook-….json, with the IDs shortened:

source/Workflows/CreatePayrollWorkbook-….json (part)
"source": "@parameters('Overtime Timesheet Site (dewiride_OvertimeTimesheetSite)')",
"drive": "b!…",
"file": "@outputs('Create_the_workbook')?['body/Id']",
"scriptSource": "@parameters('Overtime Timesheet Site (dewiride_OvertimeTimesheetSite)')",
"scriptDrive": "b!…",
"scriptId": "01…",

The site and the new workbook come from the flow, but drive, scriptDrive and scriptId are fixed IDs. Microsoft's connector reference describes those three only as picked from a drop-down, for example the script: "Select an Office Script file (.osts) in a SharePoint library from the drop-down." So they stay as they are, and in Part 13's words, "When the solution is installed somewhere else, in Part 21, they have to be picked again." The import flow is the same: an installer points it at their own old workbook.

Check the Four Release Files​

The release folder now holds the four files to share:

FileSizeManagedValue files
OvertimeTimesheetSetup_1_0_0_0_managed.zip8,534 bytes1None in this solution
OvertimeTimesheet_1_0_0_0_managed.zip198,494 bytes10
OvertimeTimesheetSetup_1_0_0_0.zip8,534 bytes0None in this solution
OvertimeTimesheet_1_0_0_0.zip198,493 bytes00

The repacked app zips still hold the five variable definitions, version 1.0.0.0, the same canvas app byte for byte and the same seven flows. They have 18 files instead of 23: the five value files are gone (How to See What's Inside a Power Platform Solution Zip File shows how to look).

Which File Goes Where​

  • Installing the app in another environment takes the two managed zips, Setup first, then the app. They can't come back into this environment: "You can't import a managed solution into the same environment that contains the originating unmanaged solution" (Solution concepts).
  • The unmanaged zips are the source: keep them, for example in source control, and give them to anyone who'll change the app in their own development environment.

The Problems I Hit​

  • The Export value switch went back to Yes. Already a known problem with its own fixes post, linked in Step 7, and fixed the same way.
  • The solution's All view listed flows that no longer existed. The first time I opened Objects, the All list included test flows I had deleted a week before, although its counts said 7 cloud flows and the Cloud flows view listed only the real seven. A reload showed the real 19 objects. I hadn't taken a screenshot before the reload, and it didn't come back, so it has no fixes post.
  • My own download slip. With two success messages on the page, the script I drive the browser with clicked the older one's Download and saved the managed Setup zip a second time. I checked each zip's solution.xml for its version and Managed value before going on, then downloaded the missing one.

Clean Up​

Nothing in this part creates anything in your tenant. The renamed references and the preferred solution are meant to stay. On your computer, source and exported are working folders: delete them when you've finished. Keep release.

Common Mistakes​

MistakeWhat happensDo this instead
Exporting with Setup still preferredAnything you create next lands in the wrong solutionMake Overtime Timesheet preferred first
Trusting Export value: NoYour site and list IDs ship inside the app's zipsCheck the zip, and remove the value files
Accepting the proposed version on the second exportThe managed and unmanaged zips get different versionsType 1.0.0.0 every time
Sharing the files from exportedThey still hold your valuesShare the files from release
Renaming Office 365 Users to Overtime Timesheet UsersIt reads like the Entra group of that nameKeep the connector's name in it

Troubleshooting​

SymptomLikely causeFix
18 Medium issues on the appThe nine text labels with TabIndex -1Expected; see Step 4
zsh: no matches found from the rm in Step 7The value files are already gone, or you're in another folderCheck you're in the folder that holds source
A Cloud flows are being updated banner stays on the pageThe references were savedClose it; the flows keep running
The list still shows 0.1.0.0 after exportingThe page hasn't refreshedReload Solutions

FAQ​

Why export unmanaged zips at all?​

They're the source of the app. Microsoft's solution concepts article says "You can't export a managed solution. But you can export an unmanaged solution as managed." So the unmanaged zips are what you keep developing from, and what each next managed release is exported from.

Why not replace the new_ references with dewiride_ ones?​

It's possible: create new references, switch every action in six flows to them, publish and test each flow again. The flows work the same with either, and installers see the display names, so clear display names did the job without touching the flows.

Will an installer see this tenant's site anywhere?​

Not as a value: the variables in the release zips have none, so the import asks for theirs. The two actions in Step 8 still hold this tenant's IDs until they're picked again in Part 21.

What changes for the next release?​

Raise the version, for example to 1.0.1.0, export both solutions again, and take the value files out again.

Conclusion​

Both solutions are ready to ship:

  • the app's solution is preferred again, and each solution holds exactly what it should;
  • the solution checker found nothing in the Setup solution and nothing in the flows, and 18 explained label findings in the app;
  • the six connection references have names an installer can tell apart;
  • both solutions are at 1.0.0.0, exported as managed and unmanaged;
  • the app's zips carry no environment variable values, thanks to the Power Platform CLI, and the two actions that still hold this tenant's IDs are known.

Additional Resources​

← Previous: Part 19: Set SharePoint Permissions from the Setup Flow Next → Part 21: Install the App in a New Environment (coming soon)