stefanstranger / logicappdocs

Generate technical Markdown documentation for your Azure Logic App and Power Automate Flows
MIT License
55 stars 4 forks source link

Index and length must refer to a location within the string. #27

Closed mlaraibkhan closed 8 months ago

mlaraibkhan commented 1 year ago

Describe the bug Using New-LogicAppDoc.ps1 to generate a docs/diagram for a logic app, however got this error.

Where-Object: C:\Code\LAdocs\logicappdocs\src\Helper.ps1:173:36
Line |
 173 |  … ($Actions | Where-Object { $_.RunAfter -eq $(('{0}-False') -f $(($cur …
     |                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | Exception calling "Substring" with "2" argument(s): "Index and length must refer to a location within the string. (Parameter 'length')" 
stefanstranger commented 1 year ago

Hi @mlaraibkhan,

Sorry for the late response. Can you share the anonymized logic app code so I can test this?

stefanstranger commented 8 months ago

Closing the issue because not getting a response for a couple of months.

@mlaraibkhan please download the latest version of the tool and let me know if this resolved in the latest version.

Regards, Stefan