cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Post Prodigy
Post Prodigy

Help needed Flow failing due to 'Null' value

HI All

Could some one help me with a Compose expression?

 

I have a flow that is creating a dynamic HTML based on a sharepoint list item but when i trigger my flow it is saying that the item i am composing is NULL when i has a entry in it.

My expression is this

replace(outputs('Compose_assess_number'), '{damage}',body('Get_item')?['adjust_backplate']?['Value'])
 
but the flow run error message is

 

InvalidTemplate. Unable to process template language expressions in action 'Compose_crit1' inputs at line '1' and column '2778': 'The template language function 'replace' expects its third parameter 'new string' to be a string. The provided value is of type 'Null'. Please see https://aka.ms/logicexpressions#replace for usage details.'.

 

Any help appreciated

Gary

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted

After googling intensely i have at last come across the issue.

The original sharepoint list was made from duplicating a previous one so the columns have been renamed and you have to use the original internal sharepoint column name..

 

Just to help people 

If you have this issue then click your sharepoint list options to list view

Hover over the column name and you will see the original column name.

 

i used this and it works fine.

 

Gary

View solution in original post

3 REPLIES 3
Highlighted
Super User III
Super User III

@gazzo1967 

Have you taken a look at the output of the Get item action in your Flow?  Does it confirm that there is a value in the adjust backplate choice column?

 

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Scott
Highlighted

@ScottShearer 

Hi Scott

Yes i did check the outputs on my test from Get Item and the field is populated correctly

 

Gary

Highlighted

After googling intensely i have at last come across the issue.

The original sharepoint list was made from duplicating a previous one so the columns have been renamed and you have to use the original internal sharepoint column name..

 

Just to help people 

If you have this issue then click your sharepoint list options to list view

Hover over the column name and you will see the original column name.

 

i used this and it works fine.

 

Gary

View solution in original post

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Top Solution Authors
Top Kudoed Authors
Users online (10,134)