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 Automate / SAP Odata filter query...
Power Automate
Suggested Answer

SAP Odata filter query returning internal server error

(1) ShareShare
ReportReport
Posted on by 47
Hi,

I am using the SAP Odata connector to retrieve table properties from Success Factors.
Using Postman and help from our SAP developer guys I have managed to compile my query (with expand) and get all desired properties.
So far so good.

However, adding a filter seems to break the query, returning an internal server error.
The SAP team have confirmed the date time format and in Postman the following is working:

lastModifiedDateTime gt datetimeoffset '2025-01-05T15:16:23'

However, Power Automate is returning an internal sever error. What is even more frustrating the SAP back end is showing no error.

Here is my workflow /  query.



So for I have tried: 

lastModifiedDateTime gt datetimeoffset '2025-01-05T15:16:23'
lastModifiedDateTime gt datetimeoffset '2025-01-05T15:16:23z'
lastModifiedDateTime gt datetimeoffset 2025-01-05T15:16:23
lastModifiedDateTime gt datetimeoffset 2025-01-05T15:16:23z
lastModifiedDateTime gt '2025-01-05T15:16:23'
lastModifiedDateTime gt '2025-01-05T15:16:23z'
lastModifiedDateTime gt 2025-01-05T15:16:23
lastModifiedDateTime gt 2025-01-05T15:16:23z

None of the above works.

Any pointers / suggestions would be highly appreciated.
Not a lot of documentation on how to use this connector online, only how to set it up.
I have the same question (0)
  • Suggested answer
    w.p Profile Picture
    8,339 Super User 2025 Season 2 on at
    try to create a compose action for the date/time offset
     
    $filter: lastModifiedDateTime gt outputs('Compose')
  • stampcoin Profile Picture
    5,058 Super User 2025 Season 2 on at
    Please try $filter=lastModifiedDateTime  eq '2025*' , if not
    use Initialize variable, then pass it to the fitler.
  • darren1372 Profile Picture
    47 on at
    Hi,

    so I have tried:



    then:



    Still returned internal server error.

    Also tried:



    This returned:



    Any other suggestions @stampcoin @w.p
  • stampcoin Profile Picture
    5,058 Super User 2025 Season 2 on at
    I am wondering if you use other field for the filter, will that work ? ( for example use twoCharCountryCode)
     
    Does it support z or Z ?
     
    if you initialize all string , will that work ? 
     
  • w.p Profile Picture
    8,339 Super User 2025 Season 2 on at
    i don't know how you calculate the date/time offset, but the Compose output should be 2025-01-05T15:16:23
    Or try $filter: lastModifiedDateTime gt '2025-01-05T15:16:23'
  • w.p Profile Picture
    8,339 Super User 2025 Season 2 on at
     
  • darren1372 Profile Picture
    47 on at
    I have tried this morning:






    also:



    Unfortunately both do not work

    I did do a separate query to see what the value of lastModifiedDateTime is via power automate and it's coming out as:

    so I tried:

    lastModifiedDateTime gt '2025-01-05T15:16:23+00:00' 
    lastModifiedDateTime gt datetimeoffset '2025-01-05T15:16:23+00:00' - gap between datetimeoffset and date string
    lastModifiedDateTime gt datetimeoffset'2025-01-05T15:16:23+00:00' - no gap between datetimeoffset and date string

    Again, the above didn't work.



     @w.p @stampcoin
  • stampcoin Profile Picture
    5,058 Super User 2025 Season 2 on at
    Thanks for sharing the update.
    Have you tried generic GET http ( use power auotmate) against one entity which has lastModifiedDateTime ?
    For example, Use send http request.
    Get https://...../Customers?$filter=lastModifiedDateTime gt ''
     
    If that works, then use Sap connector for querying one entity.
     
    Another try is ,in the current one flow,  use another field for the filter, reduce selection, reduce expand.
     
     
     
     
     
  • w.p Profile Picture
    8,339 Super User 2025 Season 2 on at
    Could you try with the top 5 records to check if the connection works correctly?
    If it does, you might also try using a different date column, such as created at.

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 Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard