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 / Incompatible Type Guid...
Power Apps
Answered

Incompatible Type Guid v record- Canvas app

(0) ShareShare
ReportReport
Posted on by 174

Hi,

I have just opened up a canvas app to do some enhancements and some errors have now appeared, which were not there before.

The canvas app consumes data from Datavers tables.

Has the syntax changed in the last 6 months?

I now get the incompatible type error for the "'OneFile Unit'.'OneFile Unit' = 'OneFile Unit'"and I really cannot understand why as this worked fine before. It appears that the programme is trying to compare a guid with a record, however the ClearCollect is only adding the guid column to the collection.

 

ClearCollect(
 colOneFileStandards,
 AddColumns(
 Filter(
 'OneFile Standards',
 'Onefile Apprenticeship Standard/Framework'.'OneFile Framework Template' = 
 LookUp('Learning Assignment Submissions','Learning Assignment Submission' = [@ModelDrivenFormIntegration].Item.'Learning Assignment Submission').'Base Qualification'.'OneFile Framework Template'
 &&
 'Standard Type' = [@'Standard Type'].Programme
 ),
 "OneFileStandardId",
 'OneFile Standard'
 )
);
ClearCollect(
 colOneFileStandardIDs,
 colOneFileStandards.OneFileStandardId
);
Clear(colOneFileUnits);
ForAll(
 colOneFileStandardIDs,
 Collect(
 colOneFileUnits,
 Filter(
 'OneFile Units',
 'OneFile Standard'.'OneFile Standard' = OneFileStandardId
 )
 )
);
ClearCollect(
 colOneFileUnitIDs, colOneFileUnits.'OneFile Unit'
);
Clear(colLearningOutcomes);
ForAll(
 colOneFileUnitIDs,
 Collect(
 colLearningOutcomes,
 Filter(
 'OneFile Learning Outcomes', 
 'OneFile Unit'.'OneFile Unit' = 'OneFile Unit'
 )
 )
);

 

 

Categories:
  • Verified answer
    Michael E. Gernaey Profile Picture
    53,970 Super User 2026 Season 2 on at

    Hello,

     

    No changes in syntax. It appears you are in fact comparing a GUID whjich is what 'OneFile Unit'.'OneFile Unit' is.

    And it appears (to me) that 'OneFile Unit' on the right is a Record, based on all the other times I see in your code you fill collections.

     

    If you can do the following as well.

     

    Run your app, make sure colOneFileUnitIDS has data. Don't cause this error, just want this collection populated.

    Stop running the app (which will keep the collections populated

     

    Can you Click the ... next to Settings in the menu

    Click Open

    Click Collections

    Scroll to the Collection colOneFileUnitIDS, click it and take a picture please and share

     

    To me I know you dont think anything changed but it looks like in fact colOneFileUnitIDS, which maybe was ONLY supposed to be the IDs is now holding record instances, which is why it say the Right Side is a Record, and the left is a GUID

     

    In your code

    ForAll(
     colOneFileUnitIDs,
     Collect(
     colLearningOutcomes,
     Filter(
     'OneFile Learning Outcomes', 
     'OneFile Unit'.'OneFile Unit' = 'OneFile Unit'
     )
     )
    );

    So if I am correct you have to 

    1. Either fix the code filling colOneFileUnitIDs

    or

    2. Change this code to

    'OneFile Unit'.'OneFile Unit' = 'OneFile Unit'.'OneFile Unit

     


    Cheers
    If you like my answer, please Mark it as Resolved, and give it a thumbs up, so it can help others
    Thank You
    Michael Gernaey MCT | MCSE | MCP | Self-Contractor| Ex-Microsoft
    https://gernaeysoftware.com
    LinkedIn: https://www.linkedin.com/in/michaelgernaey

     

  • Martin CPA Profile Picture
    174 on at

    Thanks for your guidance. I managed to fix it by amending 

    'OneFile Unit'.'OneFile Unit' = colOneFileUnitIDs[@'OneFile Unit']

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 July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 393 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 278 Most Valuable Professional

Last 30 days Overall leaderboard