I was adding an import button according to the official documentation:
but there is an error pops up as follow
What could cause this error?
Thanks in advance
an error example has been given in attachment
Solved! Go to Solution.
After days of struggle, I think I have found the solution by coincident.
1. Create a Media Import Button
2. Write functions without test
3. DON'T CLICK DURING EDIT!
4. Publish straight away
5. Test on desktop version
checkout the example at the bottom of the docs article: https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/controls/control-export-import#example
You tried to Clear the Collection with the "Import"-button, you should use a normal button for this action.
With the "Import"-Button you can import the exported data from the "Export"-button.
Hope this will help you! 🙂
I am using the Insert - Media - Import button,
This button is for user A upload data saved by user B so that data can be shared between app users.
I found the official documentation here:
I was writing this command according to Collect(ImportedProducts, MyData.Data) in example - Step 6
Hi @CaiChicken ,
You have to refer to the control name.
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
Yes, I am writing as
and it produces an error message as:
The function 'Collect' has some invalid arguments. - invalid argument type
So I was wondering is it function broken?
Or there are some other features/requirements yet not documented?
Hi @CaiChicken ,
I did some testing as below and it functions as expected, presenting a file window to select data from.
Is there anything in your setup you can see different to this?
To me, the first time writing this function is correct without issue.
When I really using this from a power app desktop client, it has no response.
Switch back to Edit Mode. this error comes up.
I tested the import function on Friday and it was working fine. Monday I opened my laptop it brokes.
I even rolled back to Friday's version, still yet no luck 😞
I would like to have a solution, however it seems something intermittent and as you have stated, the code is correct.
One thing I might suggest is to delete the Import object, save and close the app and then try reinstalling it.
Check out the News & Announcements to learn more.
Check out the new Power Platform Community Connections gallery!
Congratulations, the new Super User Season 2 for 2021 has started!
Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.