Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
BrianEllul
New Member

ADF OData Connection Parameters

Hi

 

I am querying data from a Dynamics365 Business Central. I'm passing the Company as the path and that works well however now I want to filter more the data by passing a 'Last Modified Date Time' > ??? 

 

Trying to use the Query, however no errors but my parameter is ignored.

 

Any pointers please?

 

BrianEllul_0-1723811193385.png

 

Regards

Brian

10 REPLIES 10
BEllul
New Member

Hi Everyone and thanks for your input

 

Back to this issue....

 

The error I'm now receiving is then below. Again incorrect datetime format!

 

Requesting response from path Company('xxxxxxxx')/Dimension_Values_Excel?$Filter=Last_Modified_Date_Time gt 2024-08-23T10:00:00.00Z and query $top=10 failed with status code BadRequest and message {"error":{"code":"BadRequest","message":"The DateTimeOffset text '2024-08-23T10:00:00.00Z?$top=10' should be in format 'yyyy-mm-ddThh:mm:ss('.'s+)?(zzzzzz)?' and each field value is within valid range. CorrelationId: 9b43a6ca-1d12-413c-bfcf-a3a9eefed6a0."}}.

 

Not sure what is wrong with this format - 2024-08-23T10:00:00.00Z

'It's expecting this format - yyyy-mm-ddThh:mm:ss('.'s+)?(zzzzzz)? Not sure what the trailing part is tbh

 

Regards

Brian

You seem to have an extra question mark

 

?$top=10

 

replace it with & 

Hello

 

Thanks a lot for your reply.

 

This is what I'm actually passing - Company('xxxxxxxx')/Dimension_Values_Excel?$Filter=Last_Modified_Date_Time gt 2024-08-23T10:00:00.00Z 

The rest has been added by the Data Factory itslef since I'm pressing the Preview Data and it's seems that preview will give me the top 10 rows, so unfortunately I don't have control on this part - ?$top=10 since it has been appended automatically.

 

Reading your comment, I decided to skip the data preview function and run the pipeline with my parameters directly. Again I pasted a format which I found online. 

 

Company('xxxxxxxxxxxx')/Dimension_Values_Excel?$Filter=Last_Modified_Date_Time gt 2024-08-28T00:00:00.0000000Z

 

This time the top was not added however it's still complaining of a sytax error!

 

Failure happened on 'Source' side. ErrorCode=ODataRequestNotSucceeded,'Type=Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,Message=Requesting response from path Company('COME%20ON%20MALTA%20LIMITED')/Dimension_Values_Excel?$Filter=Last_Modified_Date_Time gt 2017-01-02 00:00:00.0000000Z and query failed with status code BadRequest and message {"error":{"code":"BadRequest","message":"Syntax error at position 40 in 'Last_Modified_Date_Time gt 2017-01-02 00:00:00.0000000Z'. CorrelationId: fad854b9-7cee-4327-80a8-8a7133ce5b4b."}}.,Source=Microsoft.DataTransfer.Runtime.ODataConnector,'

 

The below is the previous format I was using... just a difference at the trailing part

Company('xxxxxxxx')/Dimension_Values_Excel?$Filter=Last_Modified_Date_Time gt 2024-08-23T10:00:00.00Z 

 

Regards

Brian

It seems to be swallowing the "T" that is mandatory for ISO8601.

 

Hi Again

 

I found this date time format which I tried passing - 2017-01-02 00:00:00.0000000

 

Still same error!!

 

v-nuoc-msft
Community Support
Community Support

Hi @BrianEllul 

 

Thank you very much rubayatyasmin for your prompt reply.

 

Can you tell me if your problem is solved? If yes, please accept it as solution.

 

This forum is used to discuss Fabric related content.

 

Since this is a product issue beyond the scope of this forum, if you still have questions, I recommend that you post this query on the Azure Data Factory Community Forum.

 

The following links:

 

Azure Data Factory - Microsoft Community Hub


If you have any questions related to fabrics, please continue to use this forum to contact us!

 

Regards,

Nono Chen

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

rubayatyasmin
Super User
Super User

Alos, this thread might help

 

https://community.dynamics.com/forums/thread/details/?threadid=76bbaed2-31b4-ee11-a569-6045bda7c23b

 

make sure the column name is correct. you can also check this one, 

 

https://api.businesscentral.dynamics.com/v2.0/{tenant}/sandbox/ODataV4/Company('YourCompany')/YourEn... gt 2023-08-16T00:00:00Z

 

fill the info


Did I answer your question? Mark my post as a solution!super-user-logo

Proud to be a Super User!


Thank you for your feedback, I am using OData source to connect to the business central and download the data. To the "Path", I am passing these parameters: Company('mycompanyname')/Dimension_Values_Excel?$Filter=Last_Modified_Date_Time gt 2024-08-23T10:00:00.00Z

 

This, doesn't load any errors, however, it loads data from May 2024, it seems that the Last_Modified_Date_Time is being ignored. 

i would think that stuff is case sensitive?

 

Query options overview - OData | Microsoft Learn

rubayatyasmin
Super User
Super User

Hi, 

 

You mentioned ADF, so there should be a last modified date option in the pipeline. I did this a couple of months ago. I was getting data that are 1 day old. In my scenario, I was getting data export. so on aug 19th I'd get export for aug18th data and so forth. so, I used this code below, it works just fine. 

 

rubayatyasmin_0-1723845952507.png

 


Did I answer your question? Mark my post as a solution!super-user-logo

Proud to be a Super User!


Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.