web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Uncaught Error: Except...
Power Apps
Unanswered

Uncaught Error: Exception message: 'Unsupported data type.' when viewing collection

(0) ShareShare
ReportReport
Posted on by 98

I am performing a ClearCollect on an On Premise SQL Server.  There is a search field for a user to look up an account number.  The OnSelect of the of the search button looks up the SaleID of the Account Number and then performs a ClearCollect to grab records that match the saleID variable set by the lookup.

 

ClearCollect(SalesCollection,Filter('[dbo].[tblSaleRecords]',SaleID = fkSaleID ));

 

  • When I tried to view the collection in either the PowerApps windows app or the broswer authoring app, I get the following error:
    WebAuthoring abnormal termination.
    Client date/time: 2017-10-02T16:16:49.092Z
    Version: 2.0.707 (v2.0.707.54503216)
    Session ID: c65fa953-b9a9-fbff-8cd0-81349fcf62e8
    description: {"error":{"isTrusted":true,"detail":{"exception":{}},"message":"Uncaught Error: Exception message: 'Unsupported data type.'\nException call stack:\nError\n at _sourceFromStacktrace (https://cdn-paaprodwus.azureedge.net/v2.0.707.54503216/studio/js/Core.js?v=2.0.707.54503216:857:21)\n at _except (https://cdn-paaprodwus.azureedge.net/v2.0.707.54503216/studio/js/Core.js?v=2.0.707.54503216:870:25)\n at Object.check (https://cdn-paaprodwus.azureedge.net/v2.0.707.54503216/studio/js/Core.js?v=2.0.707.54503216:631:18)\n at Function.ObjectViewerTypeConverter.valueToString (https://cdn-paaprodwus.azureedge.net/v2.0.707.54503216/studio/js/AppMagic.Authoring.js?v=2.0.707.54503216:37101:54)\n at ObjectViewerData.getCellValue (https://cdn-paaprodwus.azureedge.net/v2.0.707.54503216/studio/js/AppMagic.Authoring.js?v=2.0.707.54503216:36796:79)\n at ObjectViewerData.measureColumn (https://cdn-paaprodwus.azureedge.net/v2.0.707.54503216/studio/js/AppMagic.Authoring.js?v=2.0.707.54503216:36865:66)\n at ObjectViewerViewModel.initializeSizes (https://cdn-paaprodwus.azureedge.net/v2.0.707.54503216/studio/js/AppMagic.Authoring.js?v=2.0.707.54503216:18326:62)\n at ObjectViewerView._initializeWidthsAndHeights (https://cdn-paaprodwus.azureedge.net/v2.0.707.54503216/studio/js/AppMagic.Authoring.js?v=2.0.707.54503216:18108:45)\n at ObjectViewerView.<anonymous> (https://cdn-paaprodwus.azureedge.net/v2.0.707.54503216/studio/js/AppMagic.Authoring.js?v=2.0.707.54503216:18087:90)","filename":"https://cdn-paaprodwus.azureedge.net/v2.0.707.54503216/studio/js/Core.js?v=2.0.707.54503216","lineno":871,"colno":9,"error":{},"NONE":0,"CAPTURING_PHASE":1,"AT_TARGET":2,"BUBBLING_PHASE":3,"type":"error","target":"[window]","currentTarget":"[window]","eventPhase":2,"bubbles":false,"cancelable":true,"defaultPrevented":false,"composed":false,"timeStamp":31003.305,"srcElement":"[window]","returnValue":true,"cancelBubble":false,"path":["[window]"],"composedPath":"[function]","stopPropagation":"[function]","stopImmediatePropagation":"[function]","preventDefault":"[function]","initEvent":"[function]"},"errorLine":871,"errorCharacter":9,"errorUrl":"https://cdn-paaprodwus.azureedge.net/v2.0.707.54503216/studio/js/Core.js?v=2.0.707.54503216","errorMessage":"Uncaught Error: Exception message: 'Unsupported data type.'\nException call stack:\nError\n at _sourceFromStacktrace (https://cdn-paaprodwus.azureedge.net/v2.0.707.54503216/studio/js/Core.js?v=2.0.707.54503216:857:21)\n at _except (https://cdn-paaprodwus.azureedge.net/v2.0.707.54503216/studio/js/Core.js?v=2.0.707.54503216:870:25)\n at Object.check (https://cdn-paaprodwus.azureedge.net/v2.0.707.54503216/studio/js/Core.js?v=2.0.707.54503216:631:18)\n at Function.ObjectViewerTypeConverter.valueToString (https://cdn-paaprodwus.azureedge.net/v2.0.707.54503216/studio/js/AppMagic.Authoring.js?v=2.0.707.54503216:37101:54)\n at ObjectViewerData.getCellValue (https://cdn-paaprodwus.azureedge.net/v2.0.707.54503216/studio/js/AppMagic.Authoring.js?v=2.0.707.54503216:36796:79)\n at ObjectViewerData.measureColumn (https://cdn-paaprodwus.azureedge.net/v2.0.707.54503216/studio/js/AppMagic.Authoring.js?v=2.0.707.54503216:36865:66)\n at ObjectViewerViewModel.initializeSizes (https://cdn-paaprodwus.azureedge.net/v2.0.707.54503216/studio/js/AppMagic.Authoring.js?v=2.0.707.54503216:18326:62)\n at ObjectViewerView._initializeWidthsAndHeights (https://cdn-paaprodwus.azureedge.net/v2.0.707.54503216/studio/js/AppMagic.Authoring.js?v=2.0.707.54503216:18108:45)\n at ObjectViewerView.<anonymous> (https://cdn-paaprodwus.azureedge.net/v2.0.707.54503216/studio/js/AppMagic.Authoring.js?v=2.0.707.54503216:18087:90)","setPromise":"[function]","exception":{}}
    stack: null
    errorNumber: 0
    errorMessage: Uncaught Error: Exception message: 'Unsupported data type.'
    Exception call stack:
    Error
     at _sourceFromStacktrace (https://cdn-paaprodwus.azureedge.net/v2.0.707.54503216/studio/js/Core.js?v=2.0.707.54503216:857:21)
     at _except (https://cdn-paaprodwus.azureedge.net/v2.0.707.54503216/studio/js/Core.js?v=2.0.707.54503216:870:25)
     at Object.check (https://cdn-paaprodwus.azureedge.net/v2.0.707.54503216/studio/js/Core.js?v=2.0.707.54503216:631:18)
     at Function.ObjectViewerTypeConverter.valueToString (https://cdn-paaprodwus.azureedge.net/v2.0.707.54503216/studio/js/AppMagic.Authoring.js?v=2.0.707.54503216:37101:54)
     at ObjectViewerData.getCellValue (https://cdn-paaprodwus.azureedge.net/v2.0.707.54503216/studio/js/AppMagic.Authoring.js?v=2.0.707.54503216:36796:79)
     at ObjectViewerData.measureColumn (https://cdn-paaprodwus.azureedge.net/v2.0.707.54503216/studio/js/AppMagic.Authoring.js?v=2.0.707.54503216:36865:66)
     at ObjectViewerViewModel.initializeSizes (https://cdn-paaprodwus.azureedge.net/v2.0.707.54503216/studio/js/AppMagic.Authoring.js?v=2.0.707.54503216:18326:62)
     at ObjectViewerView._initializeWidthsAndHeights (https://cdn-paaprodwus.azureedge.net/v2.0.707.54503216/studio/js/AppMagic.Authoring.js?v=2.0.707.54503216:18108:45)
     at ObjectViewerView.<anonymous> (https://cdn-paaprodwus.azureedge.net/v2.0.707.54503216/studio/js/AppMagic.Authoring.js?v=2.0.707.54503216:18087:90)

    The data types of the table in the filter function are:

  • Int
  • varchar(200)
  • varbinary(max)
  • datetime
  • varchar(max)

 

 

Categories:
I have the same question (0)
  • v-yamao-msft Profile Picture
    Microsoft Employee on at

    Hi jonathanO,

     

    I am not sure with the fkSaleID. What’s the data type of it? Is it in a different table with SaleID?

     

    I test with two functions on my side, they are both working properly.

     

    The first one, add a data source to one SQL table, then add a button and set its OnSelect property likes below. I can get the row for the specific id.
    ClearCollect(test,Filter('[dbo].[a2]',id=50))

     

    The second one, add another table as the data source, then add a button and set its OnSelect property as following. This function returns the items with the same id in two tables.
    ClearCollect(test1,Filter('[dbo].[a2]',id in '[dbo].[Table_1]'.ID))

     

    Please share more details to help reproduce this issue on my side. Hope what I did could be a reference for you.

     

    Best regards,
    Mabel Mao

     

  • jonathanO Profile Picture
    98 on at

    Hello Mabel,

     

    fkSaleID is an int.  I am not sure what other information I can provide.  The SaleID is an int too.  You have the session ID, are you able to look at that to find more information?

     

    What other information can I provide?  I would think this would be a bug since it causes powerapps to crash and loose any unsaved work.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 342 Most Valuable Professional

#2
11manish Profile Picture

11manish 234

#3
Valantis Profile Picture

Valantis 187

Last 30 days Overall leaderboard