Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Translation Quality Feedback
Suggested answer

SAP Odata filter query returning internal server error

(2) 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.
Categories:
  • w.p Profile Picture
    3,693 on at
    SAP Odata filter query returning internal server error
    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.
  • stampcoin Profile Picture
    645 on at
    SAP Odata filter query returning internal server error
    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.
     
     
     
     
     
  • darren1372 Profile Picture
    47 on at
    SAP Odata filter query returning internal server error
    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
  • w.p Profile Picture
    3,693 on at
    SAP Odata filter query returning internal server error
     
  • w.p Profile Picture
    3,693 on at
    SAP Odata filter query returning internal server error
    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'
  • stampcoin Profile Picture
    645 on at
    SAP Odata filter query returning internal server error
    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 ? 
     
  • darren1372 Profile Picture
    47 on at
    SAP Odata filter query returning internal server error
    Hi,

    so I have tried:



    then:



    Still returned internal server error.

    Also tried:



    This returned:



    Any other suggestions @stampcoin @w.p
  • stampcoin Profile Picture
    645 on at
    SAP Odata filter query returning internal server error
    Please try $filter=lastModifiedDateTime  eq '2025*' , if not
    use Initialize variable, then pass it to the fitler.
  • Suggested answer
    w.p Profile Picture
    3,693 on at
    SAP Odata filter query returning internal server error
    try to create a compose action for the date/time offset
     
    $filter: lastModifiedDateTime gt outputs('Compose')

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,651 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,997 Most Valuable Professional

Leaderboard

Featured topics