web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Could I get help ident...
Power Automate
Unanswered

Could I get help identifying why an expression, containing a HTML code I made, is not valid.

(0) ShareShare
ReportReport
Posted on by 134

I was following an amazingly informative video by Shane Young https://www.youtube.com/watch?v=2rfAQe1kK8M 

 

I wish to use the action called OneDrive for Business – Create File, to create a HTML.

G0Springs_0-1642515460154.png

Tired input an Expression using an Expression of concat() with the HTML code copied inside it, but I keep getting an error message that says that the expression is invalid.

 

I created the HTML using: https://www.youtube.com/redirect?event=video_description&redir_token=QUFFLUhqbkFnSFNYVl9sTlBmSTZiVHQzYTlzQVdoQVpxQXxBQ3Jtc0trR1ZmbWxreDdBOURxbHRaZTgtX1hjSkFhWnduX1lpOW1Fd0pvVmsyaTRJTTZMSzNmejNFOWRWa294OENhYTJYNThBUUZDeDVKY3IxWlp4ZmpIa2l0ano4WVdrQzMwNTVMYnAyNnRtdG4ydktZWDIwbw&q=https%3A%2F%2Fwww.w3schools.com%2Fhtml%2Fhtml_tables.asp 

 

The code generates the table here:

G0Springs_2-1642516353869.png

 

The code is as follows:

G0Springs_0-1642517286824.png

G0Springs_1-1642517328324.png

G0Springs_2-1642517386760.png

G0Springs_3-1642517424029.png

G0Springs_4-1642517462281.png

G0Springs_5-1642517505597.png

 

 

Categories:
I have the same question (0)
  • G0Springs Profile Picture
    134 on at

    I still have the error but I have made a few changes since posting which I thought I should make those of you trying to assist me aware of.

     

    After checking it over visually I found I am not familiar enough with HTML to identify the error, so I turned to sites which would check the HTML code for me and notify me what specifically is the source of the errors. The first site of this nature I tried was https://www.freeformatter.com/html-validator.html

    It found 16 issue:

    1)

    The character encoding was not declared. Proceeding using “windows-1252”.

    Code Extract:

    Issue 1 is not of concern for me.

    2)

    Element “head” is missing a required instance of child element “title”.

    From line 13, column 1 to line 13, column 7

    Code Extract: ↩</style></head>↩

     

    3)

    A table row was 12 columns wide, which is less than the column count established by the first row (13).

    From line 33, column 78 to line 34, column 5

    Code Extract: /div></td↩</tr>↩<!—

     

    4)

    A table row was 12 columns wide, which is less than the column count established by the first row (13).

    From line 39, column 92 to line 40, column 5

    Code Extract:
    ocess</td↩</tr>↩↩<!-

     

    5)

    A table row was 12 columns wide, which is less than the column count established by the first row (13).

    From line 54, column 49 to line 55, column 5

    Code Extract:
    /div></td↩</tr>↩<!--

     

    6)

    A table row was 12 columns wide, which is less than the column count established by the first row (13).

    From line 69, column 42 to line 70, column 5

    Code Extract:
    /div></td↩</tr>↩<!--

     

    7)

    A table row was 12 columns wide, which is less than the column count established by the first row (13).

    From line 84, column 42 to line 85, column 5

    Code Extract:
    /div></td↩</tr>↩<!--

     

    😎

    A table row was 12 columns wide, which is less than the column count established by the first row (13).

    From line 99, column 42 to line 100, column 5

    Code Extract:
    /div></td↩</tr>↩<!--

     

    9)

    A table row was 12 columns wide, which is less than the column count established by the first row (13).

    From line 114, column 42 to line 115, column 5

    Code Extract:
    /div></td↩</tr>↩<!--

     

    10)

    A table row was 12 columns wide, which is less than the column count established by the first row (13).

    From line 129, column 42 to line 130, column 5

    Code Extract:
    /div></td↩</tr>↩<!--

     

    11)

    A table row was 12 columns wide, which is less than the column count established by the first row (13).

    From line 144, column 42 to line 145, column 5

    Code Extract:
    /div></td↩</tr>↩<!--

     

    12)

    A table row was 12 columns wide, which is less than the column count established by the first row (13).

    From line 159, column 42 to line 160, column 5

    Code Extract:
    /div></td↩</tr>↩<!—

     

    13)

    A table row was 12 columns wide, which is less than the column count established by the first row (13).

    From line 174, column 42 to line 175, column 5

    Code Extract:
    /div></td↩</tr>↩<!--

     

    14)

    A table row was 12 columns wide, which is less than the column count established by the first row (13).

    From line 181, column 81 to line 182, column 5

    Code Extract:
    /div></td↩</tr>↩<!--

     

    15)

    A table row was 12 columns wide, which is less than the column count established by the first row (13).

    From line 187, column 57 to line 188, column 5

    Code Extract:
    /div></td↩</tr>↩↩</t

     

    16)

    Table column 13 established by element “td” has no cells beginning in it.

    From line 23, column 66 to line 24, column 20

    Code Extract:
    /div></td↩ <td colspan="3"><p>Na

     

     

    Issue 2 was solved by Including      <title>Don’t panic! This is the title</title>      within the <head> section.

     

    The issues between point 3 and 15 were all the same and solved by changing Row A to the following:

    <!-- Row A -->

    <tr>

    <td colspan="3">Part No.: </td>

    <td colspan="7">Product Record</td>

    <td colspan="2">Name: </td></tr>

    This also solved issue 16.

     

    Despite solving all these issues I still got the error message informing me that the expression is still not valid.

  • Mishablade Profile Picture
    2 on at

    Here is a example of my code for a webpage.

    As you can see ( <meta charset=“UTF-8”> ) enter this between the <head> </head>

    this is for character coding.

     

    <!DOCTYPE html>
    <html lang="en">
    <title>W3.CSS</title>
    <head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
    </head>
    <style>
    input[type=text], select {
    width: 100%;
    padding: 12px 20px;
    margin: 8px 0;
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    }
    input[type=submit] {
    width: 100%;
    background-color: #4CAF50;
    color: white;
    padding: 14px 20px;
    margin: 8px 0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    }
    input[type=submit]:hover {
    background-color: #45a049;
    }
    </style>
    <body>
    <div class="w3-panel">
    <form>
    <label for="fname">First Name</label>
    <input type="text" id="fname" name="firstname" placeholder="Your name" required/>
    <label for="lname">Last Name</label>
    <input type="text" id="lname" name="lastname" placeholder="Your last name..">
    <input class="w3-radio" type="radio" name="gender" value="male" checked>
    <label>Male</label>
    <input class="w3-radio" type="radio" name="gender" value="female">
    <label>Female</label>
    <br/>
    <br/>
    <label for="country">Country</label>
    <select id="country" name="country">
    <option value="australia">Australia</option>
    <option value="canada">Canada</option>
    <option value="usa">USA</option>
    <option value="New Zealand">New Zealand</option>
    </select>
    </form>
    </div>
    <br/>
    <div class="form-group">
    <textarea class="form-control" cols="30" rows="10" placeholder="comments here"></textarea>
    </div>
    <button class="w3-btn w3-blue">Submit</button>
    </body>
    </html>

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard