cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
ahmadmohdissa94
New Member

Error in Power Automate

Help me with error please:

 

InvalidTemplate. Unable to process template language expressions in action 'Populate_a_Microsoft_Word_template' inputs at line '1' and column '2138': 'The template language expression 'triggerBody()?['name']' cannot be evaluated because property 'name' cannot be selected. Property selection is not supported on values of type 'String'. Please see https://aka.ms/logicexpressions for usage details.'.
 
for your info it appeared after:
1- a HTTP request is received.
 -my json schema is:
{
"type": "object",
"properties": {
"nationalId": {
"type": "string"
},
"cardId": {
"type": "string"
},
"name": {
"type": "string"
},
"names": {
"type": "array",
"items": {
"type": "string"
}
},
"lands": {
"type": "array",
"items": {
"type": "object",
"properties": {
"penBld": {
"type": "integer"
},
"currBld": {
"type": "number"
},
"totPrvEdu": {
"type": "number"
},
"totPrvBld": {
"type": "integer"
},
"municipality": {
"type": "integer"
},
"discount": {
"type": "number"
},
"sum": {
"type": "number"
},
"basin": {
"type": "integer"
},
"currEdu": {
"type": "number"
},
"prvSwg": {
"type": "integer"
},
"subbasin": {
"type": "integer"
},
"plot": {
"type": "integer"
},
"build": {
"type": "integer"
},
"flat": {
"type": "integer"
},
"sheet": {
"type": "integer"
},
"currSwg": {
"type": "number"
},
"id": {
"type": "string"
},
"village": {
"type": "integer"
},
"floor": {
"type": "integer"
},
"penEdu": {
"type": "number"
},
"statusCode": {
"type": "string"
}
},
"required": [
"penBld",
"currBld",
"totPrvEdu",
"totPrvBld",
"municipality",
"discount",
"sum",
"basin",
"currEdu",
"prvSwg",
"subbasin",
"plot",
"build",
"flat",
"sheet",
"currSwg",
"id",
"village",
"floor",
"penEdu",
"statusCode"
]
}
},
"email": {
"type": "string"
},
"phone": {
"type": "string"
},
"inquire": {
"type": "object",
"properties": {
"months": {
"type": "integer"
},
"total": {
"type": "number"
}
}
}
}
}
it appeared when i try to populate my ms word template.
 
your help would be appreciated thank you ❤️ 
1 REPLY 1
Super User
Super User

Re: Error in Power Automate

@ahmadmohdissa94 

Hi there.  People might cringe at this, but try this just to see if it sorts out:

Maybe change: 

"name": {
"type": "string"
},
 
To this:
"name": {
},
 
Either way, keep us posted.
-Ed-
 
 

If you liked this reply, please give it a thumbs up! If this reply has answered your question or resolved your challenge, please consider marking it as a Solution. This helps other users find it more easily via search.

Helpful resources

Announcements
MBAS Gallery 2020

MBAS Gallery 2020

Watch Microsoft Business Applications Summit sessions on-demand.

firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Automate Community!

firstImage

Now Live: Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Users online (5,057)