Hi Community,
This is my last attempt to get some help with power automate the "low-code" / "no-code" solution... Not being a developer but willing to learn new things, I tried following many examples and videos etc. to simply Create a MS Form, take the output of the form to populate a word template file on SharePoint and store the resultant document to SharePoint Online... The creation of the form was relatively straight forward, the creation of the Word Template was also all good, then I had to learn about site columns and site content types in SharePoint in order to pass the dynamic values from Forms through Power Automate to the Template file...
All went great until I noticed because of field limitations in SharePoint (i.e. Single line = 255 characters), I needed to change some of the column definitions to multi-line. The I found out if you have a date value for a field or a numeric value for a field and bypass it in the flow (through a branching operation) the data passed (i.e. "NULL") would fail the flow, so then we go about dealing with potential NULLS in the flow (flow is growing exponentially now...) just to deal NULLS in these fields... then we go on to learn about dealing nonnumeric data passed from Flow to power automate because we didn't set a restriction on the form field to only accept a numeric value, no sooner we get that sorted we start to hit the next set of challenges, specifically where flow passes, yet run fails and then when checking the flow output I see the following....
Simple retrieve the information from the form and if NULL set it to blank through the ' ' at the end of the coalesce expression (don't ask why coalesce, been around the block with expressions now including the replace(replace... , json( ) defined ones and coalesce seemed to be the one not returning errors like "input expects a string, you passed a null, or input expects an array you passed a string, etc. etc.
I put break points in the flow to literally check each step before moving on to next definition or running the flow in its entirety, when satisfied I get no errors I run flow and then start seeing things like this...
yet when expanded the below cryptic message appearing
In fact, just about every compose field showing this type of error (here I was thinking compose is just an arbitrary placeholder to display "data in motion", nevertheless the flow finally fails at the Update file properties section with a similar message to the one displayed on the compose action...
and then I notice the message at the top of the screen saying I hit a threshold....
all of this just because I wanted to get rid of strange characters like " [ \ | etc. being presented with multi-select options in my MS form....
Can anyone point me in the right direction to finding out what this error actually means and why it occurs? I have even gone so far as downloading Visual Studio 2022 hoping to connect to the data to see where and why it is failing but that is presenting other challenges like SharePoint foundation not installed, what would be great if there was somewhere (a site or something) or even if MS showed you in the flow or presented an error code in the flow to give you a hint where to look for the problem.... telling me it can't fetch something is not helpful if you don't tell me why, being an old IT type guy, I see "443" as part of the error message and I assume that there is something wrong with the credentials or SSL layer, but my connections are fine, I authenticate on the connectors to both SharePoint and Forms, the PC I'm using is sitting as registered in the Azure AD so where to now????
The two other posts I made on this forum Re: Query regarding Apply to each "loop" to remove... - Power Platform Community (microsoft.com) and Re: Dealing with NULL's in Power Automate using co... - Power Platform Community (microsoft.com) show a lot more detail of the flow in its various rewrite iterations, if that might be useful, but I got past those errors and now this is the latest...
PS: I don't want to use the Premium Power Automate word template connector as Mick Hucknall from Simply Red once said "Money's too tight to mention..."
Solved! Go to Solution.
For my objects that are potentially empty I used the following expression which would add a single space " ".
coalesce(item()?['PropertyName'], ' ')
Hey Grant,
Thanks for responding, I'm happy to report I came to the same conclusion (or at least similar). I can also just about sign this off as closed, everything is working I'm getting my reports created and I can see the content in the various SharePoint columns as I expect to see them. There is one last item to solve which I will add to the bottom in case someone has a suggestion on how to fix it... But for now this is how I solved the troubles I was having...
1. I used one of the templates available in Power Automate to create a new flow that would write the output to a SharePoint list and then went about declaring various variables to deal with numeric fields from forms by initialising them to 0 in case a null was presented, I also then went about defining various string and array formatting options depending on the multi-choice fields...
All numeric values were defined as float so that decimals can be handled, if you use integers then the values have to be whole numbers... The other formatting options defined as compose statements with either a carriage return, a comma or a space...
In my apply to each loop, I created various conditions to deal with null fields...
Example of one of the condition fields below that does a "if the field is not null then do nothing" (the condition no/false branch)
I also then went about defining each field that required strange characters to be removed using the various methods I defined in my compose actions prior to the "apply to each loop"
and finally put the data out to SharePoint from within the apply to each loop...
Once I had confirmed all data was ok in SharePoint, I could set about copying pieces of the code to my cloud flow that creates a document in SharePoint, pretty much the way Damien describes on his channel https://www.youtube.com/@DamoBird365...
1. https://youtu.be/KVIWDRjPKUk or 2. https://youtu.be/Qj8SIiGJRnc
Getting the code to the cloud flow was as simple as clicking the 3 "..." on the code block and selecting copy to clipboard
then going to the cloud flow and inserting or creating a new action and pasting the step from the "my clipboard"
The only nuances I encountered was you can copy the individual code snippets, but don't try and copy the entire "apply to each" section, rather create a new one and insert the code definitions you want in the apply to each section. If you try and use the entire apply from the template method, it inherits the properties associated with the output to list...
Another nuance I discovered was the start of the apply to each, you need to make sure you point to the trigger of your cloud flow or else you won't see the desired dynamic fields in the create item or even worse, the various field code snippets don't work as they can't find the input action. For the apply to each in your cloud flow just use the following expression on the "Select an output from a previous step" field...
array(triggerOutputs()?['body'])
the last bit was the final step in the apply to each loop, when using the template option it uses a "Create Item SharePoint" function, when you want to update your document template stored in SharePoint, you must use the "Update file properties" function and point it to the itemID of your create file step of the cloud flow...
Flow template SharePoint looks like this
while update of a word template stored in SharePoint looks like this
Hopefully my trials and tribulations will help somebody else down the line....
Now my final challenge is to rid myself of the following message appearing in the created word document when opening from SharePoint using the "Open in app" option...
If anyone has any pointers on how to rid myself of this message, I would be grateful...
PS, I have already inspected the file properties using the "info" link on the File menu, all the dynamic data is there and there are two fields showing "invalid" but no real error message to tell me why it is "invalid" ...
SharePoint site column is defined as "multi-line" plain text (to get around the 255-character limit), the Column is defined in a SharePoint content type just like all the other fields and it seems to be totally random as to which fields are reflected as being in error (i.e., invalid), since the right content is in the field...
Well thats it, now back to researching a solution for this latest problem...
@GavinF69 Looks like you've been having a bunch of fun with this 😉
I'll do some testing with the information you've provided and get back to you with some options on how to get it all working.
On initial testing my multiple line text from Forms to SharePoint to Word works as expected. I'm not sure why you're getting yours coming back as an array of string.
One important thing I've found is that the Word Template solution by Damo has some issues due to Quick Parts and opening Word documents in Word Online. The Word document will need to be opened in Word Desktop before the properties will be visible in Word Online. If you open the Word document in Word Online before Word Desktop, then you will just see the property placeholders and not the actual content.
This will also be the case if you change some of the properties in your SharePoint Library - the changes will only be seen once you've opened the document in Word Desktop.
I know you said there is a cost involved with Word Premium connector but might be worth looking at the issues with the free version and see if it's worth it or not. You would only need to license the person running the flow (flow owner).
I'll do some further testing with null values and let you know how I go.
For my objects that are potentially empty I used the following expression which would add a single space " ".
coalesce(item()?['PropertyName'], ' ')
Hey Grant,
Thanks for responding, I'm happy to report I came to the same conclusion (or at least similar). I can also just about sign this off as closed, everything is working I'm getting my reports created and I can see the content in the various SharePoint columns as I expect to see them. There is one last item to solve which I will add to the bottom in case someone has a suggestion on how to fix it... But for now this is how I solved the troubles I was having...
1. I used one of the templates available in Power Automate to create a new flow that would write the output to a SharePoint list and then went about declaring various variables to deal with numeric fields from forms by initialising them to 0 in case a null was presented, I also then went about defining various string and array formatting options depending on the multi-choice fields...
All numeric values were defined as float so that decimals can be handled, if you use integers then the values have to be whole numbers... The other formatting options defined as compose statements with either a carriage return, a comma or a space...
In my apply to each loop, I created various conditions to deal with null fields...
Example of one of the condition fields below that does a "if the field is not null then do nothing" (the condition no/false branch)
I also then went about defining each field that required strange characters to be removed using the various methods I defined in my compose actions prior to the "apply to each loop"
and finally put the data out to SharePoint from within the apply to each loop...
Once I had confirmed all data was ok in SharePoint, I could set about copying pieces of the code to my cloud flow that creates a document in SharePoint, pretty much the way Damien describes on his channel https://www.youtube.com/@DamoBird365...
1. https://youtu.be/KVIWDRjPKUk or 2. https://youtu.be/Qj8SIiGJRnc
Getting the code to the cloud flow was as simple as clicking the 3 "..." on the code block and selecting copy to clipboard
then going to the cloud flow and inserting or creating a new action and pasting the step from the "my clipboard"
The only nuances I encountered was you can copy the individual code snippets, but don't try and copy the entire "apply to each" section, rather create a new one and insert the code definitions you want in the apply to each section. If you try and use the entire apply from the template method, it inherits the properties associated with the output to list...
Another nuance I discovered was the start of the apply to each, you need to make sure you point to the trigger of your cloud flow or else you won't see the desired dynamic fields in the create item or even worse, the various field code snippets don't work as they can't find the input action. For the apply to each in your cloud flow just use the following expression on the "Select an output from a previous step" field...
array(triggerOutputs()?['body'])
the last bit was the final step in the apply to each loop, when using the template option it uses a "Create Item SharePoint" function, when you want to update your document template stored in SharePoint, you must use the "Update file properties" function and point it to the itemID of your create file step of the cloud flow...
Flow template SharePoint looks like this
while update of a word template stored in SharePoint looks like this
Hopefully my trials and tribulations will help somebody else down the line....
Now my final challenge is to rid myself of the following message appearing in the created word document when opening from SharePoint using the "Open in app" option...
If anyone has any pointers on how to rid myself of this message, I would be grateful...
PS, I have already inspected the file properties using the "info" link on the File menu, all the dynamic data is there and there are two fields showing "invalid" but no real error message to tell me why it is "invalid" ...
SharePoint site column is defined as "multi-line" plain text (to get around the 255-character limit), the Column is defined in a SharePoint content type just like all the other fields and it seems to be totally random as to which fields are reflected as being in error (i.e., invalid), since the right content is in the field...
Well thats it, now back to researching a solution for this latest problem...
Dear Community Members, We'd like to let you know of an upcoming change to the community platform: starting July 16th, the platform will transition to a READ ONLY mode until July 22nd. During this period, members will not be able to Kudo, Comment, or Reply to any posts. On July 22nd, please be on the lookout for a message sent to the email address registered on your community profile. This email is crucial as it will contain your unique code and link to register for the new platform encompassing all of the communities. What to Expect in the New Community: A more unified experience where all products, including Power Apps, Power Automate, Copilot Studio, and Power Pages, will be accessible from one community.Community Blogs that you can syndicate and link to for automatic updates. We appreciate your understanding and cooperation during this transition. Stay tuned for the exciting new features and a seamless community experience ahead!
We are excited to announce the Summer of Solutions Challenge! This challenge is kicking off on Monday, June 17th and will run for (4) weeks. The challenge is open to all Power Platform (Power Apps, Power Automate, Copilot Studio & Power Pages) community members. We invite you to participate in a quest to provide solutions to as many questions as you can. Answers can be provided in all the communities. Entry Period: This Challenge will consist of four weekly Entry Periods as follows (each an “Entry Period”) - 12:00 a.m. PT on June 17, 2024 – 11:59 p.m. PT on June 23, 2024 - 12:00 a.m. PT on June 24, 2024 – 11:59 p.m. PT on June 30, 2024 - 12:00 a.m. PT on July 1, 2024 – 11:59 p.m. PT on July 7, 2024 - 12:00 a.m. PT on July 8, 2024 – 11:59 p.m. PT on July 14, 2024 Entries will be eligible for the Entry Period in which they are received and will not carryover to subsequent weekly entry periods. You must enter into each weekly Entry Period separately. How to Enter: We invite you to participate in a quest to provide "Accepted Solutions" to as many questions as you can. Answers can be provided in all the communities. Users must provide a solution which can be an “Accepted Solution” in the Forums in all of the communities and there are no limits to the number of “Accepted Solutions” that a member can provide for entries in this challenge, but each entry must be substantially unique and different. Winner Selection and Prizes: At the end of each week, we will list the top ten (10) Community users which will consist of: 5 Community Members & 5 Super Users and they will advance to the final drawing. We will post each week in the News & Announcements the top 10 Solution providers. At the end of the challenge, we will add all of the top 10 weekly names and enter them into a random drawing. Then we will randomly select ten (10) winners (5 Community Members & 5 Super Users) from among all eligible entrants received across all weekly Entry Periods to receive the prize listed below. If a winner declines, we will draw again at random for the next winner. A user will only be able to win once overall. If they are drawn multiple times, another user will be drawn at random. Individuals will be contacted before the announcement with the opportunity to claim or deny the prize. Once all of the winners have been notified, we will post in the News & Announcements of each community with the list of winners. Each winner will receive one (1) Pass to the Power Platform Conference in Las Vegas, Sep. 18-20, 2024 ($1800 value). NOTE: Prize is for conference attendance only and any other costs such as airfare, lodging, transportation, and food are the sole responsibility of the winner. Tickets are not transferable to any other party or to next year’s event. ** PLEASE SEE THE ATTACHED RULES for this CHALLENGE** Week 1 Results: Congratulations to the Week 1 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Community MembersNumber SolutionsSuper UsersNumber Solutions Deenuji 9 @NathanAlvares24 17 @Anil_g 7 @ManishSolanki 13 @eetuRobo 5 @David_MA 10 @VishnuReddy1997 5 @SpongYe 9JhonatanOB19932 (tie) @Nived_Nambiar 8 @maltie 2 (tie) @PA-Noob 2 (tie) @LukeMcG 2 (tie) @tgut03 2 (tie) Week 2 Results: Congratulations to the Week 2 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Week 2: Community MembersSolutionsSuper UsersSolutionsPower Automate @Deenuji 12@ManishSolanki 19 @Anil_g 10 @NathanAlvares24 17 @VishnuReddy1997 6 @Expiscornovus 10 @Tjan 5 @Nived_Nambiar 10 @eetuRobo 3 @SudeepGhatakNZ 8 Week 3 Results: Congratulations to the Week 3 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Week 3:Community MembersSolutionsSuper UsersSolutionsPower Automate Deenuji32ManishSolanki55VishnuReddy199724NathanAlvares2444Anil_g22SudeepGhatakNZ40eetuRobo18Nived_Nambiar28Tjan8David_MA22 Week 4 Results: Congratulations to the Week 4 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Week 4:Community MembersSolutionsSuper UsersSolutionsPower Automate Deenuji11FLMike31Sayan11ManishSolanki16VishnuReddy199710creativeopinion14Akshansh-Sharma3SudeepGhatakNZ7claudiovc2CFernandes5 misc2Nived_Nambiar5 Usernametwice232rzaneti5 eetuRobo2 Anil_g2 SharonS2
On July 16, 2024, we published the 2024 release wave 2 plans for Microsoft Dynamics 365 and Microsoft Power Platform. These plans are a compilation of the new capabilities planned to be released between October 2024 to March 2025. This release introduces a wealth of new features designed to enhance customer understanding and improve overall user experience, showcasing our dedication to driving digital transformation for our customers and partners. The upcoming wave is centered around utilizing advanced AI and Microsoft Copilot technologies to enhance user productivity and streamline operations across diverse business applications. These enhancements include intelligent automation, AI-powered insights, and immersive user experiences that are designed to break down barriers between data, insights, and individuals. Watch a summary of the release highlights. Discover the latest features that empower organizations to operate more efficiently and adaptively. From AI-driven sales insights and customer service enhancements to predictive analytics in supply chain management and autonomous financial processes, the new capabilities enable businesses to proactively address challenges and capitalize on opportunities.
We're embarking on a journey to enhance your experience by transitioning to a new community platform. Our team has been diligently working to create a fresh community site, leveraging the very Dynamics 365 and Power Platform tools our community advocates for. We started this journey with transitioning Copilot Studio forums and blogs in June. The move marks the beginning of a new chapter, and we're eager for you to be a part of it. The rest of the Power Platform product sites will be moving over this summer. Stay tuned for more updates as we get closer to the launch. We can't wait to welcome you to our new community space, designed with you in mind. Let's connect, learn, and grow together. Here's to new beginnings and endless possibilities! If you have any questions, observations or concerns throughout this process please go to https://aka.ms/PPCommSupport. To stay up to date on the latest details of this migration and other important Community updates subscribe to our News and Announcements forums: Copilot Studio, Power Apps, Power Automate, Power Pages