modery / PowerDocu

Generate technical documentation from your existing Power Automate Flows and Power Apps canvas apps
MIT License
441 stars 73 forks source link

Security error. Parameter is not valid. #71

Closed Adterania closed 1 year ago

Adterania commented 1 year ago

The tool was awesome and it definitely helps a lot.

I am trying to run it on a solution and I have encountered this issue.

Screenshot 2023-01-10 141652

modery commented 1 year ago

Hi @Adterania , do you have any video or audio files in any of your apps inside that solution? Just realised that I am not handling them yet, thus they should throw this kind of error

modery commented 1 year ago

Hi @Adterania , do you have any video or audio files in any of your apps inside that solution? Just realised that I am not handling them yet, thus they should throw this kind of error

Wait, I think they get ignored. But either way, can you actually open make.powerapps.com and check inside the Media section of your app(s) what kind of resources you have there? I'm curious if it's a "broken image" that's causing this problem, or if it's something else image

Adterania commented 1 year ago

Hi Rene, Thank your the information. There are no audio and video in the media however there are some Javascript code added as web resource. I am not sure if this is the one causing the error. The solution I ran have both canvas and MDA which it able to document the apps and flows. All good from my end and your tool is definitely a huge help.

modery commented 1 year ago

Not entirely sure why it breaks for you, but I was able to replicate the behaviour (approximately) by adding "broken media files" (that is, items added as JPG files, but they aren't valid images) to an app. Added some extra code to handle such problems, the documentation will include a comment saying "Resource Preview is not available, media file is invalid." if it encounters such a problem image

This fix will be included in the next release

modery commented 1 year ago

Latest release is now available: https://github.com/modery/PowerDocu/releases/tag/v-1.1.0