Showing results for 
Search instead for 
Did you mean: 
New Member

Reading Data from Excel to Sharepoint with Update or Create Item. Filter Query not working with multiple Columns.

All right. I've been working for almost 8 hours now to figure this out, and somehow i can't get it right. I have a Excel List with a few columns. Unfortunately the Data in the list has no unique identifier, and i can't change that, since the list is an SAP Export and there is no absolute identifier there that i could use. However, inside the List i have four columns that will completely identify the record. Now here's the trick: Two of those columns are always filled. But column 3 and 4 are opposites. If there is an entry in column 3 then 4 is "0" while if column 3 is empty then 4 contains a number. Here is some Sample Data. In the column to the far right i've marked x or -. With the following statement (1) the Flow imports all x, but leaves the - out.  With the second statement (2) the Flow imports the two samples that have a value in Column 4 (column 3 empty)  and creates duplicates. 

Also: Column 3 is unique, and the other three are unique in combination.

I hope someone can help me understand what i need to do. also below a screenshot of the actual step i take to compare the excel table to records in the sharepoint.


Statement (1):

(Gesch_x00e4_ftsfall_x002d_ID eq '@{items('ForAll')?['Geschäftsfall-ID']}' or LaufnrBO eq '@{items('ForAll')?['Laufnr BO']}') and Stationsbezeichnung eq '@{items('ForAll')?['Stationsbezeichnung']}' and WS_x002d_Nummer eq '@{items('ForAll')?['WS-Nummer']}'


Statement (2):

Gesch_x00e4_ftsfall_x002d_ID eq '@{items('ForAll')?['Geschäftsfall-ID']}' and LaufnrBO eq '@{items('ForAll')?['Laufnr BO']}' and Stationsbezeichnung eq '@{items('ForAll')?['Stationsbezeichnung']}' and WS_x002d_Nummer eq '@{items('ForAll')?['WS-Nummer']}'


WS-NummerStationsbezeichnungGeschäftsfall-IDLaufnr BOColumn
101Affoltern am Albis956791b9-849b-470a-bfc6-96d89a7078e60-
101Affoltern am Albise282d194-88d0-4ffc-8ec5-5e40f8729e260x
102Affoltern am Albis252eedf4-3f51-4b20-aac9-70d17f0c560e0x
102Bad Zurzach3060e652-ff03-4802-9a7c-e904fb6ce9110x
102Brugg AG9c3c396b-46e5-47b2-b8e3-d9a1be6b40150-
102Brugg AG9d76efb9-a1b3-49c7-851f-f81971fb32b00x
103Brugg AG6cac7dad-f372-49c9-828d-fbbdbde2dadd0x
104Brugg AG50f9534c-fcc3-4fee-9299-a357c2921a430x
101Schlieren 973246x
101Spreitenbach Tivoli80019936-a738-49bd-b1cc-c8a4793059f40-
101Spreitenbach Tivolif7497756-4a1a-484b-9b68-0c228c1324440x
102Spreitenbach Tivoliacfee5b2-1f50-44c9-a42d-91fb6c051f0e0x
102Spreitenbach Tivoli 548118x



Community Support
Community Support

Hi @Dunadaen 

Thank you for posting.

I tried to reproduce your Filter Query statement but it works fine for me.

This is my Excel


This is my list


When I test the Filter Query as you I can get the Items




You can check the column name by the screenshot,confirm that your column is correct.




Hope the content above may help you.


Best Regards


Hello @v-LilyW-msft 

It's true that the filter basically works. But when i use filter one only 21 of 28 records make it into sharepoint. If i use filter 2 then the two records that have no 'Geschäftsfall ID' but a 'Laufnummer BO' get imported twice and duplicates are created. I studied your answer but can't see anything that helps me solve this problem. 

Do you have any suggestions why that is the case or where i make the error in my logical thinking? 🙂 

Helpful resources

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

Carousel_PP_768x460_Wave2 (1).png

2022 Release Wave 2 Plan

Power Platform release plan for the 2022 release wave 2 describes all new features releasing from October 2022 through March 2023.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (3,073)