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

Notifications

Announcements

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:
I have the same question (0)
  • v-qiaqi@microsoft.com Profile Picture
    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
    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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard