cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Getting errors, changed my application from Excel to SharePoint

Hello!

I made my application using an Excel database but then changed to SharePoint. Now I have fixed a lot of errors myself but I can't figure out where these errors are coming from.

The only thing I did change is the following: I had to change the tablename from "MancoTabel" to "   'Manco-Informatie'. The code works with Excel database but not with Sharepoint for some reasons. So basically all I did was change the table to the right table and I get this error. 

This is how the error looks:
https://gyazo.com/f67868610f8fc371daa1d1da2db721b2

I also get a deligation error somewhere, it just shows I have one but I do not know where it comes from.

Here is the code:

 

SortByColumns(
    Search(
        If(
            gblIsAdmin;
            'Manco-Informatie';
            Filter(
                'Manco-Informatie';
                Verzender = User().FullName && If(
                    selectedStatus <> "All";
                    IsBlank(selectedStatus) || Status = selectedStatus
                )
            )
        );
        TekstZoekVeld.Text;
        "Ordernummer";
        "Verzender";
        "Deelorder";
        "Extern";
        "Product";
        "Intern";
        "Deelorder";
        "Tekeningnummer";
        "Omschrijving";
        "Status"
    );
    "Datum";
    If(
        SortDescending1;
        Ascending;
        Descending
    )
)

 

 

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @Anonymous :

Can you tell me :

Have you replaced ";" with "," in this code ?

1.PNG

Have you tested field names other than “Ordernummer”?

In addition,I think this link will help you a lot.

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-filter-lookup

Best Regards,

Bof

View solution in original post

34 REPLIES 34
RandyHayes
Super User
Super User

@Anonymous 

A couple of questions to start...

1) Are all the columns of string/text type, or do you have other types in use in this formula (please verify in your list settings)?

2) For the delegation - how many records in your list are we talking about?  The search function will not be delegable to SharePoint, so, if you have more records than the record limit in your settings, you will have issues with this.

 

In general for the formula - 

Try changing your formula to this:

SortByColumns(
    Search(
       Filter('Manco-Informatie';
             If(gblIsAdmin; true;
                Verzender = User().FullName &&
                If(SelectedStatus <> "All"; Status = selectedStatus; true)
                )
              );
       TekstZoekVeld.Text;
       "Ordernummer";
       "Verzender";
       "Deelorder";
       "Extern";
       "Product";
       "Intern";
       "Tekeningnummer";
       "Omschrijving";
       "Status"
);
           

 

I hope this is helpful for you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!
v-bofeng-msft
Community Support
Community Support

Hi @Anonymous :

Firstly, let me explain why the “delegation error” appears.

Delegation warnings appear only on formulas that operate on delegable data.

  • Why there was no delegation warning before: Excel is not a delegable data source.
  • Why the delegation warning appears: SharePoint is a delegable data source, but search is not a delegable function.

Secondly, let’s focus on your code

Can you tell me more detail about your SharePoint list?

I suggest you check the fieldnames and field data type in your SharePoint list:

  • Date type: search function could only works for text type field.
  • Field name: check the field name.

In order to make the original formula works ,you must make sure your fields meet these following conditions:

Cloumn Name

Data Type

Ordernummer

”Single line of text“OR“Multiple lines of text”

Verzender

”Single line of text“OR“Multiple lines of text”

Deelorder

”Single line of text“OR“Multiple lines of text”

Extern

”Single line of text“OR“Multiple lines of text”

Product

”Single line of text“OR“Multiple lines of text”

Intern

”Single line of text“OR“Multiple lines of text”

Deelorder

”Single line of text“OR“Multiple lines of text”

Tekeningnummer

”Single line of text“OR“Multiple lines of text”

Omschrijving

”Single line of text“OR“Multiple lines of text”

Status

”Single line of text“OR“Multiple lines of text”

 

Beat Regards,

Bof

Anonymous
Not applicable

I'm trying to do it like this:

I have changed my whole excel file to text only. Whenever I try to export my excel file to sharepoint it automatically turns some columns into numbers. 

It's in my language but you can still see I've set everything to text only.
https://gyazo.com/5abfe9243b716c96c4e9448c35e5aa77

Whenever I try to export my excel table to sharepoint I see this:
https://gyazo.com/9d68f4e425d16bb6fee76ff688b294c3

It has automatically changed these columns to numbers although I've turned them to text in Excel. I've then changed all of my column except the column named "Datum" to date and time. The code still does not work. @v-bofeng-msft 

I've also tried to remove everything except the column that was already a text column from the fields and even then I got an error.

Anonymous
Not applicable

Even running that code, it gives me an error at the search part, sadly. @RandyHayes 

Hi @Anonymous :

About data type:

I made a test,but didn't encounter the problem.

sharepoint.PNG

Mabe you should try to change the fileds' date type in SharePoint.

list.PNGlist2.PNG

About the error:

check the field name in PowerApps

  • Add a button and set its OnSelect property to : ClearCollect(Test1; 'Manco-Informatie')
  • Check the field name in Test1(file-Collections-Test1).

If you cant find Ordernummer, "Verzender", "Deelorder"……"Status", maybe there is something wrong with your SharePoint list.

In this case,I suggest you create a new SharePoint list.

 

If you still have problems, could you show more detail about your sharepoint list? 

 

Beat Regards,

Bof

Anonymous
Not applicable

Really weird!

I have done what you adviced me to do, the collection looks like this, I see a lot of columns that I don't know where they came from:

https://gyazo.com/f266d4a1805fa643bc4efc8dc6520653

When the sharepoint list looks like this:
https://gyazo.com/321c1eb9bac2df04a986106c205c047c

I've tried to re-do it all but it does the same thing.

All the columns are one line text except the column named "datum" cause that is a date.

@v-bofeng-msft @RandyHayes 

@Anonymous 

Firstly, I would go into the list settings of your SharePoint list and change all the fields to text that you want to be text, and all those you want to be a date, to a date.

Importantly!!!  When you change the SharePoint datasource - make sure you remove the datasource from your App and then add it back in.  PowerApps will NOT notice any list changes you make without doing that step.

 

Then, attempt your formulas.

Also - keep in mind, as mentioned - Search is not delegable - you will get a warning for delegation always.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!
Anonymous
Not applicable

Thank you for your answer.

I have already tried to do this but it still gives me an error.

@RandyHayes 

Can you provide details on what error you are seeing?
_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

Helpful resources

Announcements

Celebrating the May Super User of the Month: Laurens Martens

  @LaurensM  is an exceptional contributor to the Power Platform Community. Super Users like Laurens inspire others through their example, encouragement, and active participation. We are excited to celebrated Laurens as our Super User of the Month for May 2024.   Consistent Engagement:  He consistently engages with the community by answering forum questions, sharing insights, and providing solutions. Laurens dedication helps other users find answers and overcome challenges.   Community Expertise: As a Super User, Laurens plays a crucial role in maintaining a knowledge sharing environment. Always ensuring a positive experience for everyone.   Leadership: He shares valuable insights on community growth, engagement, and future trends. Their contributions help shape the Power Platform Community.   Congratulations, Laurens Martens, for your outstanding work! Keep inspiring others and making a difference in the community!   Keep up the fantastic work!        

Check out the Copilot Studio Cookbook today!

We are excited to announce our new Copilot Cookbook Gallery in the Copilot Studio Community. We can't wait for you to share your expertise and your experience!    Join us for an amazing opportunity where you'll be one of the first to contribute to the Copilot Cookbook—your ultimate guide to mastering Microsoft Copilot. Whether you're seeking inspiration or grappling with a challenge while crafting apps, you probably already know that Copilot Cookbook is your reliable assistant, offering a wealth of tips and tricks at your fingertips--and we want you to add your expertise. What can you "cook" up?   Click this link to get started: https://aka.ms/CS_Copilot_Cookbook_Gallery   Don't miss out on this exclusive opportunity to be one of the first in the Community to share your app creation journey with Copilot. We'll be announcing a Cookbook Challenge very soon and want to make sure you one of the first "cooks" in the kitchen.   Don't miss your moment--start submitting in the Copilot Cookbook Gallery today!     Thank you,  Engagement Team

Announcing Power Apps Copilot Cookbook Gallery

We are excited to share that the all-new Copilot Cookbook Gallery for Power Apps is now available in the Power Apps Community, full of tips and tricks on how to best use Microsoft Copilot as you develop and create in Power Apps. The new Copilot Cookbook is your go-to resource when you need inspiration--or when you're stuck--and aren't sure how to best partner with Copilot while creating apps.   Whether you're looking for the best prompts or just want to know about responsible AI use, visit Copilot Cookbook for regular updates you can rely on--while also serving up some of your greatest tips and tricks for the Community. Check Out the new Copilot Cookbook for Power Apps today: Copilot Cookbook - Power Platform Community.  We can't wait to see what you "cook" up!      

Tuesday Tip | How to Report Spam in Our Community

It's time for another TUESDAY TIPS, your weekly connection with the most insightful tips and tricks that empower both newcomers and veterans in the Power Platform Community! Every Tuesday, we bring you a curated selection of the finest advice, distilled from the resources and tools in the Community. Whether you’re a seasoned member or just getting started, Tuesday Tips are the perfect compass guiding you across the dynamic landscape of the Power Platform Community.   As our community family expands each week, we revisit our essential tools, tips, and tricks to ensure you’re well-versed in the community’s pulse. Keep an eye on the News & Announcements for your weekly Tuesday Tips—you never know what you may learn!   Today's Tip: How to Report Spam in Our Community We strive to maintain a professional and helpful community, and part of that effort involves keeping our platform free of spam. If you encounter a post that you believe is spam, please follow these steps to report it: Locate the Post: Find the post in question within the community.Kebab Menu: Click on the "Kebab" menu | 3 Dots, on the top right of the post.Report Inappropriate Content: Select "Report Inappropriate Content" from the menu.Submit Report: Fill out any necessary details on the form and submit your report.   Our community team will review the report and take appropriate action to ensure our community remains a valuable resource for everyone.   Thank you for helping us keep the community clean and useful!

Community Roundup: A Look Back at Our Last 10 Tuesday Tips

As we continue to grow and learn together, it's important to reflect on the valuable insights we've shared. For today's #TuesdayTip, we're excited to take a moment to look back at the last 10 tips we've shared in case you missed any or want to revisit them. Thanks for your incredible support for this series--we're so glad it was able to help so many of you navigate your community experience!   Getting Started in the Community An overview of everything you need to know about navigating the community on one page!  Community Links: ○ Power Apps ○ Power Automate  ○ Power Pages  ○ Copilot Studio    Community Ranks and YOU Have you ever wondered how your fellow community members ascend the ranks within our community? We explain everything about ranks and how to achieve points so you can climb up in the rankings! Community Links: ○ Power Apps ○ Power Automate  ○ Power Pages  ○ Copilot Studio    Powering Up Your Community Profile Your Community User Profile is how the Community knows you--so it's essential that it works the way you need it to! From changing your username to updating contact information, this Knowledge Base Article is your best resource for powering up your profile. Community Links: ○ Power Apps ○ Power Automate  ○ Power Pages  ○ Copilot Studio    Community Blogs--A Great Place to Start There's so much you'll discover in the Community Blogs, and we hope you'll check them out today!  Community Links: ○ Power Apps ○ Power Automate  ○ Power Pages  ○ Copilot Studio    Unlocking Community Achievements and Earning Badges Across the Communities, you'll see badges on users profile that recognize and reward their engagement and contributions. Check out some details on Community badges--and find out more in the detailed link at the end of the article! Community Links: ○ Power Apps  ○ Power Automate  ○ Power Pages  ○ Copilot Studio    Blogging in the Community Interested in blogging? Everything you need to know on writing blogs in our four communities! Get started blogging across the Power Platform communities today! Community Links: ○ Power Apps  ○ Power Automate  ○ Power Pages  ○ Copilot Studio   Subscriptions & Notifications We don't want you to miss a thing in the community! Read all about how to subscribe to sections of our forums and how to setup your notifications! Community Links: ○ Power Apps  ○ Power Automate  ○ Power Pages  ○ Copilot Studio   Getting Started with Private Messages & Macros Do you want to enhance your communication in the Community and streamline your interactions? One of the best ways to do this is to ensure you are using Private Messaging--and the ever-handy macros that are available to you as a Community member! Community Links: ○ Power Apps  ○ Power Automate  ○ Power Pages  ○ Copilot Studio   Community User Groups Learn everything about being part of, starting, or leading a User Group in the Power Platform Community. Community Links: ○ Power Apps  ○ Power Automate  ○ Power Pages  ○ Copilot Studio   Update Your Community Profile Today! Keep your community profile up to date which is essential for staying connected and engaged with the community. Community Links: ○ Power Apps  ○ Power Automate  ○ Power Pages  ○ Copilot Studio   Thank you for being an integral part of our journey.   Here's to many more Tuesday Tips as we pave the way for a brighter, more connected future! As always, watch the News & Announcements for the next set of tips, coming soon!

Hear what's next for the Power Up Program

Hear from Principal Program Manager, Dimpi Gandhi, to discover the latest enhancements to the Microsoft #PowerUpProgram, including a new accelerated video-based curriculum crafted with the expertise of Microsoft MVPs, Rory Neary and Charlie Phipps-Bennett. If you’d like to hear what’s coming next, click the link below to sign up today! https://aka.ms/PowerUp  

Top Solution Authors
Top Kudoed Authors
Users online (5,350)