Skip to main content
Solved

Odata with Date Parameter not working and shows following Error

  • September 26, 2024
  • 5 replies
  • 143 views

Forum|alt.badge.img

 

Best answer by hdussa

Hi @jvarughese23 ,

Yes, the GI parameters and conditions are honored if they are available and active. Try disabling the condition at the GI and the filters will help retrieving the wanting results.

You will find more information about parameters at the below link.

https://help.acumatica.com/?ScreenId=ShowWiki&pageid=c5e2f36a-0971-4b33-b127-3c3fe14106ff

View original
Did this topic help you find an answer to your question?

5 replies

hdussa
Jr Varsity I
Forum|alt.badge.img
  • Jr Varsity I
  • 99 replies
  • September 26, 2024

Hello @jvarughese23 ,

 

I would check the datetime format of the parameter and try with this format

$filter=DateFrom gt datetime'yyyy-mm-dd hh:mm:ss'

Hope this helps.


Forum|alt.badge.img
  • Author
  • Freshman II
  • 56 replies
  • September 26, 2024

@hdussa  getting same error ...

<m:message>Syntax error at position 20 in 'DateField gt 2024-09-01 00:00:00'.</m:message>

<m:type>Microsoft.Data.OData.ODataException</m:type>


hdussa
Jr Varsity I
Forum|alt.badge.img
  • Jr Varsity I
  • 99 replies
  • September 26, 2024

Hi @jvarughese23 ,

 

I tried accessing OData of AR Invoices GI from Excel and it worked for me with the below filter.

/odata/AR-Invoices and Memos?$filter=Date ge datetime'2024-08-23'

 


Forum|alt.badge.img
  • Author
  • Freshman II
  • 56 replies
  • September 27, 2024

Though its showing data but only of todays 

the GI has a Default Date Parameter as @today , is that the reason ? actually 

am not trying to Filter the Data, am Trying to get data from with different date  parameter 


hdussa
Jr Varsity I
Forum|alt.badge.img
  • Jr Varsity I
  • 99 replies
  • Answer
  • September 27, 2024

Hi @jvarughese23 ,

Yes, the GI parameters and conditions are honored if they are available and active. Try disabling the condition at the GI and the filters will help retrieving the wanting results.

You will find more information about parameters at the below link.

https://help.acumatica.com/?ScreenId=ShowWiki&pageid=c5e2f36a-0971-4b33-b127-3c3fe14106ff


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings