Errors are an important part of the life of anyone building robots and it might seem intimidating at first. How do you approach problem-solving when something doesn’t work on your machine?
Now it’s the time to make full use of the forum. Share your errors, post solutions, help your colleagues who go through the Reboot Your Skills program, and reflect back to all you learned so far.
As this project was not created by me, I leveraged the Run till This Activity to run the project in smaller modules to identify the errors and fix them. It took me several iterations but was able to successfully run the automation after debugging the following errors:
Under Use Excel File Activity, I redirected the Excel File name and Folder Path from Desktop\November_Events to Current Event List. I also unchecked the options Save changes and Create if not exists options in this activity.
Under Excel for Each Row, I reset the range to [Event_Lists] Events.
Under Folder Exists, I reset the folder Path the the location of the Events folder on my system.
Under Create Folder for Event, I fixed the error in Folder name by removing the duplicate Location Name and replacing it with Date.
Under For Each File In Folder, I reset the Templates Folder to its current location.
Under Copy Templates Files and Rename Them, I fixed the error in Folder name and File Name by removing the duplicate Location Name and replacing it with Date.
Under Use Outlook Account, I changed the default account to the email account I wanted to use.
Under Send Outlook Email, I replaced Location with Location [Current Row]Location Name and added commas
Under Send Outlook Email, in Attachments section, I fixed the file path to the files with the dynamic path generated above for both files.
Good catch on the dummy folder creation. I did use the skip condition but that did not fix the issue since the rows in question were not technically empty (each row contained the destination email address). If you delete the email address in each row that is mostly empty the skip condition should achieve the desired result.
I did create the if condition for rows with empty month, then it only create the folder for the customer service and did not continue to create for leadership development and public speaking.
Any advice where do you place the if condition and what condition did you have?
As I read soultion robot it sends each file in one email. So for each event there is two emails. I assume more efficient way is to use one email for one event, so in my solution I just did this:
Thanks! I found my mistake. I put the create folder for month in the if folder exists is false loop which only create the April, May and June for customer service.
On this part, I did select attachments based on Folder but somehow the email still send out individual file for name tag and Diploma of completion. So wonder why email never send out based on folder?
It’s because you probably used “Use outlook Account” inside for each file in folder activity. You should place it as the last activity in for each row loop
I manage to save the value for the folder link and use it for the sending out the email since is out of the rows loop. Happy! Now able to move to the next stage. Thanks for advice!
I think that the main conclusion, after the tour of this week, is that automation processes are iterative and will not always come out the first time, you must be patient, use resources and ask for help when the solution is not found.
This one I was a bit challenging, I created and set all my info and it showed no errors, but it always came up with an error. Finally, I realized it had Location twice in all the fields (London_London) so when it went to email, it couldn’t find a singular Location. Still Analyze found no error. After the fix, I ended up with all the emails in my email account, Yay! Corrected the path, and all is good. Except that I’m a week behind… now to start week 3…