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 / Error on Export to CSV...
Power Apps
Unanswered

Error on Export to CSV/EXCEL Date Format

(0) ShareShare
ReportReport
Posted on by 11

Hi All,


I encounter error on the data exported in date columns, Date is format is "General" which should be "Date" like the first and second row. and the value should be "6/1/2021".  I don't know why it generated "1622476800000".

GinFSG_1-1623303623633.png

 

Per checking on the config, I've notice that the app labels were not highlighted when used in formula and on the collection, the other data for dates starting the third row is missing.

GinFSG_0-1623303332599.png

Would greatly appreciate any help

 

Thank you very much

Categories:
I have the same question (0)
  • v-jefferni Profile Picture
    on at

    Hi @GinFSG ,

     

    After testing on my end, I could confirm that when using ForAll along with Gallery.AllItems, control names in Collect function would not be highlighted.

     

    Look into your formulas, it is a collection "colExportDetails" but not the excel table, what is the formula for patching to Excel?

     

    Best regards,

    Community Support Team _ Jeffer Ni
    If this post helps, then please consider Accept it as the solution to help the other members find it.

  • GinFSG Profile Picture
    11 on at

    Hi, Sir @v-jefferni 

    I believe, ForAll along with Gallery.AllItems was working a day ago.
    Yes. "colExportDetails" is the collection I used to be exported on excel that came from the gallery "galAllInvoicesMainHidden".

    Attached is my full function for my button control.

    Thank you @v-jefferni 

  • v-jefferni Profile Picture
    on at

    Hi @GinFSG ,

     

    Although control names are not highlighted, the functions are working with no issue. So the wrong output seems from the Flow, could you please share your detailed Flow with me?

     

    Best regards,

    Community Support Team _ Jeffer Ni
    If this post helps, then please consider Accept it as the solution to help the other members find it.

  • GinFSG Profile Picture
    11 on at

    Hi, @v-jefferni 

    Here's the screenshot of my flow.

    GinFSG_0-1623313942725.png
    GinFSG_1-1623313991992.png

            "from""@json(outputs('Content'))",


    GinFSG_2-1623314027512.png


    Here are the first four input from "Create CSV Table" on my last run.

    GinFSG_3-1623314360033.png

    GinFSG_4-1623314461539.png

    GinFSG_5-1623314562481.png

    Thank you 🙂

     

  • v-jefferni Profile Picture
    on at

    Hi @GinFSG ,

     

    I made a test and found that if there are blank values in inputs, some of them would display as those strange numbers.

     

    So, please try and add an If statement into the date received column:

    'Date Received':If(!IsBlank(Lable.Text,Lable.Text,""))

     

    Hope this helps.

     

    Best regards,

    Community Support Team _ Jeffer Ni
    If this post helps, then please consider Accept it as the solution to help the other members find it.

  • GinFSG Profile Picture
    11 on at

    Hi Sir @v-jefferni 

    Thank you very much! It works!

    Just have to edit the formula.

    'Date Received':If(!IsBlank(Lable.Text),Lable.Text,"")



  • GinFSG Profile Picture
    11 on at

    Hi, @v-jefferni 

    It does not work again. 
    My download file when it worked.

    GinFSG_0-1623336068686.png

     

    Now, I have encountered the same issue again.

    GinFSG_1-1623336132623.png

     

    Attached is my current function/formula.

  • GinFSG Profile Picture
    11 on at

    Hi, @v-jefferni @RandyHayes @CNT @WarrenBelz @Pstork1 

    Hope you could check this please.
    Would highly appreciate any help.
    Thank you.


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 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard