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

Get Fabric certified for FREE! Don't miss your chance! Learn more

Reply
smpa01
Esteemed Contributor

sqlEndPoint metadata refresh

curl -X POST \
  "https://api.fabric.microsoft.com/v1/workspaces/<ws_id>/sqlEndpoints/<sql_enddpoint_id>/refreshMetadata" \
  -H "Authorization: Bearer <your-access-token>" \
  -H "Content-Type: application/json" \
  -d '{"timeout": {"timeUnit": "Minutes", "value": 10}}'

 

I keep on getting Response code 200, I was expecting 202.

 

As a result, I am getting

{
  "value": [
    {
      "tableName": "test",
      "status": "NotRun",
      "startDateTime": "2025-07-31T00:07:15.0306056Z",
      "endDateTime": "2025-07-31T00:07:15.5150298Z",
      "lastSuccessfulSyncDateTime": "2025-06-05T02:29:01.543114Z",
      "error": null
    }]}

 

Why is it only returning TableSync Status and not triggering a refresh?

 

Do I understand that I need to make the service call immediately following a transaction such as following? Else it will show as NotRun if the background jobs deems it is not necessary to refresh the metadata?

def acid_transaction():
    # do something
def refresh_metadata ():
    # refresh metadata

# pseudo workflow
acid_transaction()
   โ†“
refresh_metdata()
         

 

Did I answer your question? Mark my post as a solution!
Proud to be a Super User!
My custom visualization projects
Plotting Live Sound: Viz1
Beautiful News:Viz1, Viz2, Viz3
Visual Capitalist: Working Hrs
2 ACCEPTED SOLUTIONS
lbendlin
Esteemed Contributor III

it believes that a refresh is not necessary in the current circumstances.

View solution in original post

v-veshwara-msft
Honored Contributor II

Hi @smpa01 ,

Thanks for sharing this in Microsoft Fabric Community.
As mentioned by @lbendlin , the behavior you're seeing is expected. The refreshMetadata call checks if a refresh is needed based on recent changes, and if it determines that there's no schema change or update requiring sync, it completes with a 200 response and status as NotRun.

 

This means the service has received the request but didn't find any reason to run the refresh job.

As you pointed out, if the preceding transaction didn't introduce any structural changes to the table, this outcome is expected.

 

Blog Reference : Refresh SQL analytics endpoint Metadata REST API (Generally Available) | Microsoft Fabric Blog | Mic...

 

Please reach out for further assistance.

Thank you.

View solution in original post

5 REPLIES 5
lbendlin
Esteemed Contributor III

it believes that a refresh is not necessary in the current circumstances.

v-veshwara-msft
Honored Contributor II

Hi @smpa01 ,

Thanks for sharing this in Microsoft Fabric Community.
As mentioned by @lbendlin , the behavior you're seeing is expected. The refreshMetadata call checks if a refresh is needed based on recent changes, and if it determines that there's no schema change or update requiring sync, it completes with a 200 response and status as NotRun.

 

This means the service has received the request but didn't find any reason to run the refresh job.

As you pointed out, if the preceding transaction didn't introduce any structural changes to the table, this outcome is expected.

 

Blog Reference : Refresh SQL analytics endpoint Metadata REST API (Generally Available) | Microsoft Fabric Blog | Mic...

 

Please reach out for further assistance.

Thank you.

v-veshwara-msft
Honored Contributor II

Hi @smpa01 ,

Just checking in to see if you query is resolved and if any responses were helpful.
Otherwise, feel free to reach out for further assistance.

Thank you.

v-veshwara-msft
Honored Contributor II

Hi @smpa01 ,
Just wanted to check if the responses provided were helpful. If further assistance is needed, please reach out.
Thank you.

v-veshwara-msft
Honored Contributor II

Hi @smpa01 ,

Following up to see if your query is resolved and if any of the responses helped.
If you're still facing issues, feel free to reach out.

Thank you.

Helpful resources

Announcements
Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Free Fabric Certifications

Free Fabric Certifications

Get Fabric certified for free! Don't miss your chance.

January Fabric Update Carousel

Fabric Monthly Update - January 2026

Check out the January 2026 Fabric update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Users online (4,727)