Zum Hauptinhalt gehen

Workflow QueryTask error with TO_DATE

Kommentare

3 Kommentare

  • Permanently deleted user

    Looks like I've solved this issue actually... kind of strange.

    If I change this:

    definitionExpression & "atu_completion_date BETWEEN TO_DATE('" & fromDate.ToString("yyyy-MM-dd") & "', 'YYYY-MM-DD') AND TO_DATE('" & toDate.ToString("yyyy-MM-dd") & "', 'YYYY-MM-DD')"

    to this:

    definitionExpression & "atu_completion_date BETWEEN DATE'" & fromDate.ToString("yyyy-MM-dd") & "' AND DATE'" & toDate.ToString("yyyy-MM-dd") & "'"

    it works. For some reason, the TO_DATE bit is causing problems with the QueryTask... I'm not sure why TO_DATE would cause a problem in this case, so I would be curious to know, but changing TO_DATE to DATE seems to have fixed the issue!

    0
  • Permanently deleted user

    I'm having this same issue right now. I tried to format my query with 'Date' instead of 'To_Date' but it doesn't seem to be taken.  Can you post an picture of an alert box showing your query with the actual date values? 

    0
  • Permanently deleted user

    I figured it out.  Once I realized that ArcGIS Server was allowing standard queries it made sense.  

    0

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.