Preview data of Azure Database for PostgreSQL

Dirk Sachse 126 Reputation points
2024-10-11T18:35:13.4033333+00:00

I have created an Azure Database for PostgreSQL in Azure Portal. I created a database, a schema and a table. I also created a linked service and a dataset in Azure Datafactory.

If I go on this dataset, enter schema name and table name, and then I click on Preview data, I get this error:

42P01: relation "core.a" does not exist

As you can see here, the schema and table do exist:

User's image

What can be the issue here?

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
10,728 questions
Azure Database for PostgreSQL
{count} votes

Accepted answer
  1. phemanth 10,735 Reputation points Microsoft Vendor
    2024-10-15T07:53:18.38+00:00

    @Dirk Sachse

    I'm glad that you were able to resolve your issue and thank you for posting your solution so that others experiencing the same thing can easily reference this! Since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others ", I'll repost your solution in case you'd like to accept the answer .

    Ask: I have created an Azure Database for PostgreSQL in Azure Portal. I created a database, a schema and a table. I also created a linked service and a dataset in Azure Datafactory.

    If I go on this dataset, enter schema name and table name, and then I click on Preview data, I get this error:

    42P01: relation "core.a" does not exist

    As you can see here, the schema and table do exist:

    User's image

    What can be the issue here?

    Solution:The funny thing is, I dont know why, I ve changed nothing and now I can see the data etc.

    Could that be a caching issue or something? Arent tables/data written immediately?

    Possible Reasons for the Delay:

    Caching: ADF might cache metadata or query results, which can sometimes lead to discrepancies if changes are made rapidly. This could explain why you initially encountered the error but later saw the data without making any changes. Transaction Commit Delay: While PostgreSQL typically commits changes immediately, there can be brief delays in visibility, especially in cloud environments where multiple services interact. Service Propagation: Sometimes, changes in one service (like your PostgreSQL database) may take a moment to propagate to another service (like ADF). Try

    • Refresh Metadata: If you encounter similar issues in the future, refreshing the dataset or linked service in ADF can help ensure you’re working with the latest data.
    • Monitor Performance: Keep an eye on performance and connectivity, especially if you’re working in a testing environment.

    If I missed anything please let me know and I'd be happy to add it to my answer, or feel free to comment below with any additional information.

    If you have any other questions, please let me know. Thank you again for your time and patience throughout this issue.


    Please don’t forget to Accept Answer and Yes for "was this answer helpful" wherever the information provided helps you, this can be beneficial to other community members.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.