My data source is Dataverse. In PowerApps Studio (edit mode), the data loads correctly. However, when I publish the application, nothing appears, and I'm forced to use the latest version of the app. In other words, I can't publish any changes.
I'm sure it's a problem with the authoring version because previously I could switch to the published working version in order to make it work. Now it doesn't even appear; I tried all versions (not just the recommended one), but the problem persists."
I
've been debugging and found the following in the monitor. In the edit mode of the application, the getRows method is present, as shown in the following screenshot:
But when I debug in the published version, it's not there. For some reason I don't know, it does not bring the data from Dataverse.
Please, I need help as I require to publish changes in my application."
Thank you very much for the response! I really appreciate it.
Answering your questions:
Not only me, but no one can see the data once the app is published. It is an error that affects all users.
Gallery
By doing what you recommended, I found something that might help.
Apparently, the error is in the following code snippet. In this situation, I did a ClearCollect for testing purposes, but in the application, that section of code is in the items property of the gallery which has the problem.
What happens is that in edit mode, it does not throw any errors.
But when I publish the app, it does, although it does not specify why the error occurs.
Hi @ssgalo
Several things
1. So you are publishing in the Same environment and data is not loaded, both for yourself and everyone else?
2. How are you loading the data, is there a gallery, or Form, or Controls, when the screen you are referencing (having no data) loads?
3. If you have a specific DataSource, that you expect to see but don't, I would do this as a test.
Several things
A) Add a Text label, and set the Text to Text(CountRows('DataSource')) and ignore the delegation warning - verify that it doesnt show blank or 0
B) Add a Button, and in the Button run whatever filter, you are doing that should show data above and then do a CountRows on that like
Notify(Text(CountRows(Filter('My Source', Field = Value))));
Now, as for the getRows not being run, can you please share the Code around it, as in if there is a Condition of If statement or Check that you are using, to filter, or decide and in fact that code never runs.
So I would Add Trace statements all over the place, near before, after, the code that should get the data so you can see them in Monitor and find out what is NOT firing.
Trace("My Debug Message Here");
If you follow those things you'll figure it out. In the end it could be Permission issues (as I dont know if its the same environment or not), as well as, are people Agreeing to the Connection work etc.
If I have helped you, I would really appreciate if you please Mark my answer as Resolved/Answered, and give it a thumbs up, so it can help others
Cheers
Thank You
Michael Gernaey MCT | MCSE | MCP | Self-Contractor| Ex-Microsoft
https://gernaeysoftware.com
LinkedIn: https://www.linkedin.com/in/michaelgernaey
WarrenBelz
146,524
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,906
Most Valuable Professional