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 / Unknown word starting ...
Power Apps
Answered

Unknown word starting at index 0 ???

(0) ShareShare
ReportReport
Posted on by 602

Hey guys, i need your help with this one.

 

Ive made an If statement in my gallery and it used to work until I changed the formula to deal with the Date colum 'Datumtelling' and now i get a strange error

 

If(
ddHoofdprojecten.Selected.Result= "Alle projecten" And ddDatumTelling.Selected.Result = "Alle tellingen";
                 'Voorraden Logistiek';
ddHoofdprojecten.Selected.Result= "Alle projecten" And ddDatumTelling.Selected.Result = "Alle tellingen";
                 Filter('Voorraden Logistiek';(Text('Datumtelling'))=ddDatumTelling.Selected.Result);
ddHoofdprojecten.Selected.Result <> "Alle projecten" And ddDatumTelling.Selected.Result = "Alle tellingen";
                Filter('Voorraden Logistiek';Hoofdproject.Value = ddHoofdprojecten.Selected.Result);
ddHoofdprojecten.Selected.Result <> "Alle projecten" And ddDatumTelling.Selected.Result <> "Alle tellingen";
                Filter ('Voorraden Logistiek';Hoofdproject.Value = ddHoofdprojecten.Selected.Result And (Text('Datumtelling')) = ddDatumTelling.Selected.Result))

 

The Error states: that the string wasn't recognized as a valid date/time. There is an unknown word starting at index 0.

I have no idea where to begin trying to fix this problem but I do Know it started when I changed the part with (Text('Datumtelling'))

However the complete formula now has a red line under it so basically the whole thing is broken 

 

2021-11-19_10-30-17.png

Categories:
I have the same question (0)
  • v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @RvdHeijden,

    Do you mean that the 'Datum telling' is a Date column in your Data Source?

    Could you please tell me that how you set the ddDatumtelling?

     

    Actually, a data and time column has value with date time format, there is no necessary to format it as text string and populate a dropdown with it. Since you have formatted it as text string, it may cause invalid date/time issue when you compare it with the date column directly in your formula.

     

    I would suggest you use a normal DatePicker to select date which could compare it with the date column directly.

  • Verified answer
    RvdHeijden Profile Picture
    602 on at

    @v-qiaqi-msft the funny thing is that the error isn't there anymore ... and i have no idea why.

    Maybe there was an error somewhere but either way it's gone now.

     

    I just have a warning symbol in the formula because of the = statement at the end of the formula but I fixed that myself because I referenced to the colum DatumTelling but the column wasn't in "" 

     

    Problem solved I guess.....

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

    Hi @RvdHeijden,

    Glad that you have solved your problem.

    Please mark your reply as answer.

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

#2
11manish Profile Picture

11manish 212

#3
Valantis Profile Picture

Valantis 167

Last 30 days Overall leaderboard