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 / Problem with ClearColl...
Power Apps
Unanswered

Problem with ClearCollect changing date fields to text

(0) ShareShare
ReportReport
Posted on by 17

Hello All,

 

I connect to a Dataverse table to retrieve the data and the datatype of all fields are identified correctly to Powerapps.

 

When I create a new collection (because I join 2 Dataverse tables) then the datatypes of all fields are converted to text (including the date fields).

ClearCollect(ANPR_joined_dataset, 
 AddColumns('ANPR - LiveFeeds NEW',
 "Full_Name_or_Service", LookUp('ANPR - Vehicle Registration Plate Mappings', Car_Plate_No_No_Spaces='ANPR - LiveFeeds NEW'[@cre34_carplate], Full_Name_or_Service)
 )
);

 

The change of date fields to text causes additional problems to my powerapps report as I cannot query the data.

capturedon.png

How can I prevent this from happening?

Also it doesnt give me the option to change the control type from Text Column to Datetime column

 

Is there an efficient way to change the text date column to date column?

I used various formulas for the conversion from Text to Date (or Datetime) but when I query the data using the new date column it never returns any results.

It seems that it doesnt understand the format of the new date column.

 

Thank you

Categories:
  • v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @themistoklis,

    I have made a test and the situation is confirmed on my side.

     

    Firstly, we could not connect a collection to an Edit form.

    Secondly, we could keep the date time type when we collect data from Dateverse table. Here I collect Pet2S table into ColPet and the PaymentDate is a DateTime type in the Dateverse table. You could find that the Label display data in data time format.

    vqiaqimsft_0-1668569092287.png

     

  • themistoklis Profile Picture
    17 on at

    Hello @v-qiaqi-msft ,

     

    Thank you for the reply,

     

    I would like some clarifications regarding your answer.

     

    When you say you confirmed the situation, do you mean that the join of 2 Dataverse tables return text fields only?

  • v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @themistoklis,

    What do you mean by that the joined Dateverse table returning text fields only? 

    Unless you use some function like Text() to format the date time columns, a Date and Time column from Dataverse table will keep its column type in a collection.

     

    Additional, how you populate the form item property with? You could only connect the form with data source from with data based instead of a temporary where you have Text columns storing date time value.

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