Hello,
I have an MS form created for IT Requests and the user has the ability to submit up to 3 attachments. On the form there are 3 separate upload fields where they can attach 1 file. My flow only works when I submit 3 attachments, I can see that they uploaded to the SharePoint list without issue. However, anything less than 3 causes my flow to fail and no attachments are added to the SharePoint list. If I upload 1 attachment, the 2nd Parse JSON fails, if I upload 2 attachments the 3rd Parse JSON fails. This is really odd to me because my flow was working fine without issue until a few days ago and I did not change anything, so I have no idea what happened.
Here are screenshots of my workflow, any guidance would be appreciated. Note: In my Condition, I have it set to Attachments is equal to "".
Here are the error messages that come up when the flow is run: In this example below, I uploaded 2 attachments...the Parse JSON 1 and 2 both have a green check mark (even though none are added to the SharePoint list, why?) and because there was no 3rd attachment uploaded the 3rd Parse JSON failed. As previously mentioned, this occurs for 1 attachment as well but instead Parse JSON 1 passes and Parse JSON 2 fails then the flow stops.
I hope my post makes sense. I did research and found others coming across similar issues but when I tried some of the suggested fixes they did not work. Fingers crossed someone can help me out. Let me know if additional information is needed.
Thanks - LC_0004
Solved! Go to Solution.
Hi @LC_0004 ,
If you don't like to judge [Attachment] contains attachments.
There is also a more direct method, which is to execute the next step regardless of whether the above action (get the attachment content) is successful or not. In this way, no matter how many attachments the user uploads, they can be identified
Please set【Configure run after】
Set the second whole, the third whole and [Send an email (V2)] according to the diagram
Best Regards
Cheng Feng
Hi @LC_0004 ,
Sorry for not explaining clearly and causing you trouble.
I mean put [ParseJSON] and [Apply to each] into Scope, and this Scope is seen as a whole.
If you don't want to use Scope, you can also set [Configure run after] for [ParseJSON] and [Apply to each] (for all [ParseJSON] and [Apply to each] and [Send an email (V2)] ), so even if any If an action reports an error, it will continue to execute.
It is recommended to judge the content of each attachment here,
if it is empty, it will not get the content, if it is not empty, it will get the content
Best Regards
Cheng Feng
Hi @LC_0004 ,
The cause of this problem is:
1. When the user submits attachments below three.
2. [ParseJson] Parse content is empty
3. An error will be reported if the parsing is empty.
In order to avoid process failure caused by PraseJSON invalidation,
We parse through the Json() function,
Traverse this file set by 【Apply to each】
And get the file id by formula,
Note: (Files submitted by Form will be saved in a folder of OneDrive, we can get the files by parsing the obtained ID)
Here is a test for your reference:
Here is result:
Best Regards
Cheng Feng
Hi Cheng,
I truly appreciate and thank you for your reply. I am new to Power Automate; therefore, I am not sure I completely understand your response.
A couple things I should point out are:
This is how I have the attachment section on my MS form set up:
Does what I mentioned change anything from your original response? And even if it doesn't as I mentioned before I am not sure I completely understand your response ☹️. I am still not sure where to go from here.
Thank you!
LC_0004
HI @LC_0004 ,
Sorry for my misunderstanding.
if it is like this. Each process of obtaining attachments [Parse JSON] and [Apply to each] should be regarded as a whole,
Before the whole, judge whether the content of the attachment is empty, if it is empty, skip it
Best Regards
Cheng Feng
Hi Cheng,
Not sure if I understood but when you say "regarded as a whole" do you mean like this? (See Parse JSON and apply's screenshot below). Also, when you say "Before the whole, judge whether the content of the attachment is empty, if it is empty, skip it"...If it's not too much trouble, could you please provide screen shots of everything you've mentioned above (regarding JSON and apply's as a whole and before the whole to judge whether content is empty) so that I make sure I set everything up correctly? As previously mentioned, I am new to Power Automate so it's helpful for me to see exactly how something is supposed to be set up. I truly appreciate it.
Thanks, LC_0004
Hi @LC_0004 ,
If you don't like to judge [Attachment] contains attachments.
There is also a more direct method, which is to execute the next step regardless of whether the above action (get the attachment content) is successful or not. In this way, no matter how many attachments the user uploads, they can be identified
Please set【Configure run after】
Set the second whole, the third whole and [Send an email (V2)] according to the diagram
Best Regards
Cheng Feng
Hi Cheng,
Prior to your reply above, last week I made a change that then allowed me to start seeing my attachments whether it was 1 or 2. However, the workflow still fails, even though now it is pulling the 1 or 2 attachments where it wasn't adding them at all before. Why would the flow fail if it is now pulling attachments?
Also, I assumed from your screen shots that I had to remove the condition. Is that correct? I removed the condition and just now added the scopes you mentioned to the 2nd and 3rd whole in addition to the "send email", but I still receive the error message.
See below:
Thanks.
HI @LC_0004 ,
Please see and try:
Although written for an approval action, you can change the "Append to Attachments array" action to "Add an Attachment action".
Ellis
____________________________________
If I have answered your question, please mark the post as ☑️ Solved.
If you like my response, please give it a 👍🏼 Thumbs Up.
My Blog Site | Twitter | LinkedIn
Hi @LC_0004 ,
Sorry for not explaining clearly and causing you trouble.
I mean put [ParseJSON] and [Apply to each] into Scope, and this Scope is seen as a whole.
If you don't want to use Scope, you can also set [Configure run after] for [ParseJSON] and [Apply to each] (for all [ParseJSON] and [Apply to each] and [Send an email (V2)] ), so even if any If an action reports an error, it will continue to execute.
It is recommended to judge the content of each attachment here,
if it is empty, it will not get the content, if it is not empty, it will get the content
Best Regards
Cheng Feng
Hi Cheng,
Thank you for your patience and your willingness to help me.
Ok, so I moved the Parse JSON (2 & 3) and the Apply to each (2&3) within the Scopes and I moved the "Send an Email" into the scope as well. I ran it twice and it "Succeeded".
So, when I open the workflow that was run, the results (shown below) are what's expected, correct?
I just want to make sure this is how it is supposed to display even though it shows the red exclamation marks in the 1st & 2nd Scope for the areas that did not run. (The example below was for 1 attachment added).
Again, thank you.
-LC_0004-
Hi ekarim2020,
Thank you for your reply. I have not tried what you sent yet for this issue as I am still testing out what the previous replier has provided, but if I do, I will keep you posted on my results!
I will save the information you provided though as I will be needing this for another project I am working, where approvals of documents are required. So, either way, thank you so much! 😊
LC_0004
Hi @LC_0004 ,
Will there be a situation where the user does not submit the first attachment, but submits the second or third attachment?
Here it is suggested that the first part also use Scope, which is regarded as three parts,
If any one of them goes wrong, it will go to the next one, and then to the end.
If this post helps, then please consider Accept it as the solution to help the other members find it.
Best Regards
Cheng Feng
Good day, Cheng
Thank you for bringing that up as a I forgot to test without adding attachments. So, to answer your question no, there will not be a case where the user is not submitting the first attachment but then submits a 2nd and 3rd. However, there could be cases where the user decides they do not need to submit an attachment at all.
So, I added the first part (1st parse JSON and apply) into the scope and updated "configure run after" check boxes to "is successful" and "has failed". I then submitted my form without attachments, and it failed. ☹️ What do I do now?
In addition, I do have an overall question, when I first submitted this post the screenshots that I provided of my workflow was working without issue the way I had it set up...then out of nowhere started failing. Do you have any idea why a workflow would work without issue (always providing a successful run) and then all of a sudden stop & start failing?
Thank you,
LC_0004
Hi @LC_0004 ,
The cause of this problem is:
If the operation of setting 【Scope4】is successful or failed, it is for the previous [Get items].
If we want to consider the success or failure of [Scope4], we should set [Configure run after] for the action under [Scope 4]
If this post helps, then please consider Accept it as the solution to help the other members find it.
Best Regards
Cheng Feng
Ok,
So, I re-arranged some things...moved Scope 4 to the bottom and moved the Parse JSON's and apply's so that they are in order. I submitted a form, and it was successful.
Sending screen shots below so that you can let me know if everything is set up properly.
Here is how the "successful" flow run appeared:
Here is how I have everything set up in detail:
Can you confirm if everything above looks, correct?
Thanks, LC_0004
Hi @LC_0004 ,
Please test:
Will adding just one attachment do the trick?
What about adding two attachments?
What about adding three attachments?
I think there should be no problem with the overall flow. If there are unexpected problems, please send me the error and screenshot of the error
If this post helps, then please consider Accept it as the solution to help the other members find it.
Best Regards
Cheng Feng
Hi Cheng,
The flow is successful whether I add 1, 2, 3 attachments.
As of now, I think I am good and will accept as solution. But if I come across anything else with this, I will be sure to reach out.
Thank you again for your time and assistance.
LC_0004
Are you attending the Microsoft Power Platform Conference 2023 in Las Vegas? If so, we invite you to join us for the MPPC's Got Power Talent Show! Our talent show is more than a show—it's a grand celebration of connection, inspiration, and shared journeys. Through stories, skills, and collective experiences, we come together to uplift, inspire, and revel in the magic of our community's diverse talents. This year, our talent event promises to be an unforgettable experience, echoing louder and brighter than anything you've seen before. We're casting a wider net with three captivating categories: Demo Technical Solutions: Show us your Power Platform innovations, be it apps, flows, chatbots, websites or dashboards... Storytelling: Share tales of your journey with Power Platform. Hidden Talents: Unveil your creative side—be it dancing, singing, rapping, poetry, or comedy. Let your talent shine! Got That Special Spark? A Story That Demands to Be Heard? Your moment is now! Sign up to Showcase Your Brilliance: https://aka.ms/MPPCGotPowerSignUp Deadline for submissions: Thursday, Sept 28th How It Works: Submit this form to sign up: https://aka.ms/MPPCGotPowerSignUp We'll contact you if you're selected. Get ready to be onstage! The Spotlight is Yours: Each participant has 3-5 minutes to shine, with insightful commentary from our panel of judges. We’re not just giving you a stage; we’re handing you the platform to make your mark. Be the Story We Tell: Your talents and narratives will not just entertain but inspire, serving as the bedrock for our community’s future stories and successes. Celebration, Surprises, and Connections: As the curtain falls, the excitement continues! Await surprise awards and seize the chance to mingle with industry experts, Microsoft Power Platform leaders, and community luminaries. It's not just a show; it's an opportunity to forge connections and celebrate shared successes. Event Details: Date and Time: Wed Oct 4th, 6:30-9:00PM Location: MPPC23 at the MGM Grand, Las Vegas, NV, USA
The Reading Dynamics 365 and Power Platform User Group is a community-driven initiative that started in September 2022. It has quickly earned recognition for its enthusiastic leadership and resilience in the face of challenges. With a focus on promoting learning and networking among professionals in the Dynamics 365 and Power Platform ecosystem, the group has grown steadily and gained a reputation for its commitment to its members! The group, which had its inaugural event in January 2023 at the Microsoft UK Headquarters in Reading, has since organized three successful gatherings, including a recent social lunch. They maintain a regular schedule of four events per year, each attended by an average of 20-25 enthusiastic participants who enjoy engaging talks and, of course, pizza. The Reading User Group's presence is primarily spread through LinkedIn and Meetup, with the support of the wider community. This thriving community is managed by a dedicated team consisting of Fraser Dear, Tim Leung, and Andrew Bibby, who serves as the main point of contact for the UK Dynamics 365 and Power Platform User Groups. Andrew Bibby, an active figure in the Dynamics 365 and Power Platform community, nominated this group due to his admiration for the Reading UK User Group's efforts. He emphasized their remarkable enthusiasm and success in running the group, noting that they navigated challenges such as finding venues with resilience and smiles on their faces. Despite being a relatively new group with 20-30 members, they have managed to achieve high attendance at their meetings. The group's journey began when Fraser Dear moved to the Reading area and realized the absence of a user group catering to professionals in the Dynamics 365 and Power Platform space. He reached out to Andrew, who provided valuable guidance and support, allowing the Reading User Group to officially join the UK Dynamics 365 and Power Platform User Groups community. One of the group's notable achievements was overcoming the challenge of finding a suitable venue. Initially, their "home" was the Microsoft UK HQ in Reading. However, due to office closures, they had to seek a new location with limited time. Fortunately, a connection with Stephanie Stacey from Microsoft led them to Reading College and its Institute of Technology. The college generously offered them event space and support, forging a mutually beneficial partnership where the group promotes the Institute and encourages its members to support the next generation of IT professionals. With the dedication of its leadership team, the Reading Dynamics 365 and Power Platform User Group is poised to continue growing and thriving! Their story exemplifies the power of community-driven initiatives and the positive impact they can have on professional development and networking in the tech industry. As they move forward with their upcoming events and collaborations with Reading College, the group is likely to remain a valuable resource for professionals in the Reading area and beyond.
As the sun sets on the #SummerofSolutions Challenge, it's time to reflect and celebrate! The journey we embarked upon together was not just about providing answers – it was about fostering a sense of community, encouraging collaboration, and unlocking the true potential of the Power Platform tools. From the initial announcement to the final week's push, the Summer of Solutions Challenge has been a whirlwind of engagement and growth. It was a call to action for every member of our Power Platform community, urging them to contribute their expertise, engage in discussions, and elevate collective knowledge across the community as part of the low-code revolution. Reflecting on the Impact As the challenge ends, it's essential to reflect on the impact it’s had across our Power Platform communities: Community Resilience: The challenge demonstrated the resilience of our community. Despite geographical distances and diverse backgrounds, we came together to contribute, learn, and collaborate. This resilience is the cornerstone of our collective strength.Diverse Expertise: The solutions shared during the challenge underscore the incredible expertise within our community. From intricate technical insights to creative problem-solving, our members showcased their diverse skill sets, enhancing our community's depth.Shared Learning: Solutions spurred shared learning. They provided opportunities for members to grasp new concepts, expand their horizons, and uncover the Power Platform tools' untapped potential. This learning ripple effect will continue to shape our growth. Empowerment: Solutions empowered community members. They validated their knowledge, boosted their confidence, and highlighted their contributions. Each solution shared was a step towards personal and communal empowerment. We are proud and thankful as we conclude the Summer of Solutions Challenge. The challenge showed the potential of teamwork, the benefit of knowledge-sharing, and the resilience of our Power Platform community. The solutions offered by each member are more than just answers; they are the expression of our shared commitment to innovation, growth, and progress! Drum roll, Please... And now, without further ado, it's time to announce the winners who have risen above the rest in the Summer of Solutions Challenge! These are the top community users and Super Users who have not only earned recognition but have become beacons of inspiration for us all. Power Apps Community: Community User Winner: @SpongYe Super User Winner: Pending Acceptance Power Automate Community: Community User Winner: @trice602 Super User Winner: @Expiscornovus Power Virtual Agents Community: Community User Winner: Pending AcceptanceSuper User: Pending Acceptance Power Pages Community: Community User Winner: @OOlashyn Super User Winner: @ChristianAbata We are also pleased to announced two additional tickets that we are awarding to the Overall Top Solution providers in the following communities: Power Apps: @LaurensM Power Automate: @ManishSolanki Thank you for making this challenge a resounding success. Your participation has reaffirmed the strength of our community and the boundless potential that lies within each of us. Let's keep the spirit of collaboration alive as we continue on this incredible journey in Power Platform together.Winners, we will see you in Vegas! Every other amazing solutions superstar, we will see you in the Community!Congratulations, everyone!
Ayonija Shatakshi, a seasoned senior consultant at Improving, Ohio, is a passionate advocate for M365, SharePoint, Power Platform, and Azure, recognizing how they synergize to deliver top-notch solutions. Recently, we asked Ayonija to share her journey as a user group leader, shedding light on her motivations and the benefits she's reaped from her community involvement. Ayonija embarked on her role as a user group leader in December 2022, driven by a desire to explore how the community leveraged various Power Platform components. When she couldn't find a suitable local group, she decided to create one herself! Speaking about the impact of the community on her professional and personal growth, Ayonija says, "It's fascinating to witness how everyone navigates the world of Power Platform, dealing with license constraints and keeping up with new features. There's so much to learn from their experiences.: Her favorite aspect of being a user group leader is the opportunity to network and engage in face-to-face discussions with fellow enthusiasts, fostering deeper connections within the community. Offering advice to budding user group leaders, Ayonija emphasized the importance of communication and consistency, two pillars that sustain any successful community initiative. When asked why she encourages others to become user group leaders, Ayonija said, "Being part of a user group is one of the best ways to connect with experienced professionals in the same field and glean knowledge from them. If there isn't a local group, consider starting one; you'll soon find like-minded individuals." Her highlight from the past year as a user group leader was witnessing consistent growth within the group, a testament to the thriving community she has nurtured. Advocating for user group participation, Ayonija stated, "It's the fastest route to learning from the community, gaining insights, and staying updated on industry trends." Check out her group: Cleveland Power Platform User Group
Hear from Corporate Vice President for Microsoft Business Applications & Platform, Charles Lamanna, as he looks ahead to the second annual Microsoft Power Platform Conference from October 3rd-5th 2023 at the MGM Grand in Las Vegas.Have you got your tickets yet? Register today at www.powerplatformconf.com
We wanted to take the time to celebrate and welcome the new user groups that have joined our community. Along with that take a look at the event that might be happening near you or virtually. Please welcome: Biz Apps Community User Group - Power Platform Community (microsoft.com) This user group is dedicated for all community members of all skill levels to learn how to get the most out of their community experience. East Michigan Power Platform User Group - Power Platform Community (microsoft.com) This is hopefully the beginning of a community, covering eastern Michigan, built around the Power Platform. Biz Apps Community User Group This user group is dedicated for all community members of all skill levels to learn how to get the most out of their community experience. Events to checkout: In-Person: September 2023 Hybrid Philadelphia Dynamics 365 & Power Platform User Group MeetDynamics 365 and Power Platform Physical Meetup Hyderabad Power Platform User Group Meetup - Sept 2023 (In-Person)Manchester September 2023 In Person Meeting Virtual: Everything Dataverse, Do you know that Dataverse is more than just a Database!POWER PLATFORM MONTHLY DIGEST- SEPTEMBERBaltic Summit 2023PL-900 Power Platform Fundamentals TrainingHR and L&D transformation through Power PlatformDynamics 365 Marketing Experience User Groups - Use Cases and NetworkingPower Platform and Dual Write from Dynamics 365 F&O PerspectiveANZ D365 FinOps Team September 2023 meetup
User | Count |
---|---|
66 | |
31 | |
29 | |
28 | |
27 |
User | Count |
---|---|
85 | |
79 | |
56 | |
51 | |
51 |