Dears,
I created an action to read from a SharePoint list.
It reads the items but when I checked the body, it only contains the columns with data.
How I can read other columns too, the ones with empty values as this gives me an error when I trying to insert the item in Excel file.
Edit:
the case is that
1- I read the list items using SharePoint get items Action.
2- loop on items using apply to each
3- insert the item in DB using an on-premise gateway.
the error occurred when I try to insert an item with incomplete data, say my list has 5 fields, it gives an error if I only insert 3 fields and not the five.
Unable to process template language expressions in action 'Insert_row_(V2)' inputs at line '1' and column '2815': 'The template language expression 'item()['Revised_x0020_Baseline_x0020_Pla']' cannot be evaluated because property 'Revised_x0020_Baseline_x0020_Pla' doesn't exist, available properties are '@odata.etag, ItemInternalId, ID, Title, Baseline0_x0020_Planned_x0020__x, Actual_x0020__x0025_, {Identifier}, {IsFolder}, {Thumbnail}, {Link}, {Name}, {FilenameWithExtension}, {Path}, {FullPath}, {HasAttachments}, {VersionNumber}'. Please see https://aka.ms/logicexpressions for usage details.'.
I didn't try it, but I think it will work too.
I used Contain function.
Thanks for your reply.
it Works. Also i used Contain function and it works too.
Thanks.
Hi @MGamal89 ,
Take a try with expression for each column insert to the server:
if(equals(length(ColumnExpression),0),null, ColumnExpression)
Example:
if(equals(length(items('Apply_to_each')?['Title']),0),null,items('Apply_to_each')?['Title'])
Best Regards,
Alice
Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Haven't tested this, but give this a try...
Replace all references to SharePoint columns that are not required columns with an expression similar to my example below. My example references the title column:
Thanks for your reply.
I updated the main message with a screenshot of the flow section with the error.
Also, I added a scenario of what I'm doing to see the error
Please post a screen shot of your Flow in edit mode - that will be a big help to those trrying to assist.
WarrenBelz
146,524
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,906
Most Valuable Professional