# Error while expanding view FDL.FDMS\_DATA\_COMP\_VIEWS.uat\_t\_disclosure\_deal

**URL:** https://community.dremio.com/t/error-while-expanding-view-fdl-fdms-data-comp-views-uat-t-disclosure-deal/7193
**Category:** Uncategorized
**Created:** [March 24, 2021, 11:06am UTC](https://community.dremio.com/t/error-while-expanding-view-fdl-fdms-data-comp-views-uat-t-disclosure-deal/7193 "2021-03-24T11:06:34Z")
**Posts on this page:** 14
**Page:** 1

<div class="post-metadata">

### Author: ![Vinod](https://avatars.discourse-cdn.com/v4/letter/v/bbce88/32.png) [@Vinod](https://community.dremio.com/u/Vinod)
#### Post date: [March 24, 2021, 11:06am UTC](https://community.dremio.com/t/error-while-expanding-view-fdl-fdms-data-comp-views-uat-t-disclosure-deal/7193/1 "2021-03-24T11:06:34Z")

</div>

My views are created out of parquet files stored in mapr fs. For some of the views, while accesing through DREMIO, it gives error like “Error while expanding view…” which on checking JOB Profile indicates , the error is caused by ‘(java.security.AccessControlException) Permission Denied’.

And sometimes, it gives error “Access denied reading dataset Findatalake.mnr.cts.”

Some of the error gets resolved on refreshing the metadata but sometimes it does not.

I want to know is it always actually related to permission and access. How do I check the metadata, if is it corrupted and for what reasons does it get corrupted.

View Corrupt – How can we find if a view is corrupt  
Will view be corrupt if a new column is added at the end of the current file. Will this ever happen as we always do this via a schema.  
What happens if the schema changes|  
Will the file read fail if a new column is added at the end of the file.|  
Do we need to recreate views / if yes, when?

---

<div class="post-metadata">

### Author: ![balaji.ramaswamy](https://sea2.discourse-cdn.com/flex020/user_avatar/community.dremio.com/balaji.ramaswamy/32/843_2.png) [@balaji.ramaswamy](https://community.dremio.com/u/balaji.ramaswamy)
#### Post date: [March 25, 2021, 8:01am UTC](https://community.dremio.com/t/error-while-expanding-view-fdl-fdms-data-comp-views-uat-t-disclosure-deal/7193/2 "2021-03-25T08:01:57Z")

</div>

@Vinod

Dremio runs the VDS as the last person who saved the VDS and not as the logged in user. It could be possible the user who last saved the VDS lost access, you can resave the VDS too and it should make you as the last saved and run the query as you

Do you have impersonation turned on?

Thanks  
Bali

---

<div class="post-metadata">

### Author: ![Vinod](https://avatars.discourse-cdn.com/v4/letter/v/bbce88/32.png) [@Vinod](https://community.dremio.com/u/Vinod)
#### Post date: [March 25, 2021, 8:49am UTC](https://community.dremio.com/t/error-while-expanding-view-fdl-fdms-data-comp-views-uat-t-disclosure-deal/7193/3 "2021-03-25T08:49:17Z")

</div>

I guess not as it’s a production server. Do we have any option to check if impersonation is enabled from DREMIO Web page?

Also, for access denied error in production, here is what I found.

For query:  
select count(\*) AS “LIQ\_POOL\_DEAL” FROM Fin.Liq.udm.“LIQ\_POOL\_DEAL” where dir0=‘20210129\_0’

It 's throwing error:  
Access denied reading dataset Fin.Liq.udm.LIQ\_POOL\_DEAL

Root cause:  
**ERROR:** **Caused By (java.io.FileNotFoundException) maprfs://xyz/abc/LIQUIDITY\_POOL\_DEAL/20200918\_0/part-00000-160b1e7c-4d43-414c-8ebc-7b4862a7cb80-c000.snappy.parquet**

On investigating I found other parquet file are there but above particular file is not there. Hence, the error is thrown.

My question is: where is it getting the name of the parquet file which is not present in that particular folder, how can I find that?

---

<div class="post-metadata">

### Author: ![balaji.ramaswamy](https://sea2.discourse-cdn.com/flex020/user_avatar/community.dremio.com/balaji.ramaswamy/32/843_2.png) [@balaji.ramaswamy](https://community.dremio.com/u/balaji.ramaswamy)
#### Post date: [March 26, 2021, 5:45am UTC](https://community.dremio.com/t/error-while-expanding-view-fdl-fdms-data-comp-views-uat-t-disclosure-deal/7193/4 "2021-03-26T05:45:30Z")

</div>

@Vinod

Dremio would have learnt about the file when it was originally there, just do the below command and retry  
"ALTER PDS REFRESH METADATA FORCE UPDATE

---

<div class="post-metadata">

### Author: ![Vinod](https://avatars.discourse-cdn.com/v4/letter/v/bbce88/32.png) [@Vinod](https://community.dremio.com/u/Vinod)
#### Post date: [March 30, 2021, 6:57am UTC](https://community.dremio.com/t/error-while-expanding-view-fdl-fdms-data-comp-views-uat-t-disclosure-deal/7193/5 "2021-03-30T06:57:10Z")

</div>

Thanks for your response.

It’s giving ERROR while trying to REFRESH:  
java.io.IOException: maprfs://abc/xyz/part-00000-f7a7f1c5-34d2-41cf-962c-0a00d71bf9d8-c000.snappy.parquet is not a Parquet file. expected magic number at tail [80, 65, 82, 49] but found [-92, -61, -12, -105].

Seems like issue with parquet file format/corrupted. For what reasons, this parquet file could get corrupted and will moving this parquet file to some other folder resolve the issue or is there any other way to resolve the same. I need to be clear before trying anything in production.

---

<div class="post-metadata">

### Author: ![balaji.ramaswamy](https://sea2.discourse-cdn.com/flex020/user_avatar/community.dremio.com/balaji.ramaswamy/32/843_2.png) [@balaji.ramaswamy](https://community.dremio.com/u/balaji.ramaswamy)
#### Post date: [March 30, 2021, 7:35am UTC](https://community.dremio.com/t/error-while-expanding-view-fdl-fdms-data-comp-views-uat-t-disclosure-deal/7193/6 "2021-03-30T07:35:46Z")

</div>

@Vinod What happens if you remove format and add format again?

---

<div class="post-metadata">

### Author: ![Vinod](https://avatars.discourse-cdn.com/v4/letter/v/bbce88/32.png) [@Vinod](https://community.dremio.com/u/Vinod)
#### Post date: [March 30, 2021, 7:44am UTC](https://community.dremio.com/t/error-while-expanding-view-fdl-fdms-data-comp-views-uat-t-disclosure-deal/7193/7 "2021-03-30T07:44:47Z")

</div>

I have not tried to remove or add anything. I have not got access to production for today yet but I am thinking of trying to move the particular parquet file to some other temp location to see if the REFRESH works then.

The point I need to know to avoid such errors in future is like in which cases does this parquet file gets corrupted or un-readable, from DREMIO side, as in what actions/situations could cause such error where the parquet appears as ‘no parquet’.  
Even if moving parquet file to some other location helps, would not that mean I have lost one part of the data. Is there any way to recover that?  
I know there are many questions but these questions are hounding me as I am not able to find any appropriate answers anywhere. Thanks a ton for all your time and help.

---

<div class="post-metadata">

### Author: ![balaji.ramaswamy](https://sea2.discourse-cdn.com/flex020/user_avatar/community.dremio.com/balaji.ramaswamy/32/843_2.png) [@balaji.ramaswamy](https://community.dremio.com/u/balaji.ramaswamy)
#### Post date: [March 30, 2021, 7:50am UTC](https://community.dremio.com/t/error-while-expanding-view-fdl-fdms-data-comp-views-uat-t-disclosure-deal/7193/8 "2021-03-30T07:50:09Z")

</div>

@Vinod

After promotion if the schema changes or you try to ready the file when the ETL job is still writing to it

Would any of the above be true?

---

<div class="post-metadata">

### Author: ![Vinod](https://avatars.discourse-cdn.com/v4/letter/v/bbce88/32.png) [@Vinod](https://community.dremio.com/u/Vinod)
#### Post date: [March 30, 2021, 8:01am UTC](https://community.dremio.com/t/error-while-expanding-view-fdl-fdms-data-comp-views-uat-t-disclosure-deal/7193/9 "2021-03-30T08:01:48Z")

</div>

I think 2nd option could be the case in my production as there is a job which reads the content from oracle tables and dumps it in the form of parquet in mapr filesystem.  
So, during the job run, if the productions guys would be querying the dremio space in order to check the counts, that could be one of the situation where it might happen that data is being written in the form of parquet and the path is being queried from DREMIO.

But another point in this case would be: this data which is causing issue, is data of 20200918 so it should have caused such problem very soon after 20200918, why now.

I am not that into DREMIO world, could you tell what exactly PROMOTION in dremio stands for?

---

<div class="post-metadata">

### Author: ![balaji.ramaswamy](https://sea2.discourse-cdn.com/flex020/user_avatar/community.dremio.com/balaji.ramaswamy/32/843_2.png) [@balaji.ramaswamy](https://community.dremio.com/u/balaji.ramaswamy)
#### Post date: [March 31, 2021, 7:34am UTC](https://community.dremio.com/t/error-while-expanding-view-fdl-fdms-data-comp-views-uat-t-disclosure-deal/7193/10 "2021-03-31T07:34:48Z")

</div>

@Vinod

Folders on your lake cannot be queried until they are converted to a physical dataset which is also called promotion. When a folder is promoted it becomes a purple icon

[http://docs.dremio.com/sql-reference/sql-commands/datasets/](http://docs.dremio.com/sql-reference/sql-commands/datasets/)

The below tutorial explains in detail

> **[Working With Your First Dataset](https://www.dremio.com/tutorials/working-with-your-first-dataset/)**
>
> Tutorial that helps new users learn how to work with Dremio datasets.

---

<div class="post-metadata">

### Author: ![Vinod](https://avatars.discourse-cdn.com/v4/letter/v/bbce88/32.png) [@Vinod](https://community.dremio.com/u/Vinod)
#### Post date: [March 31, 2021, 8:28am UTC](https://community.dremio.com/t/error-while-expanding-view-fdl-fdms-data-comp-views-uat-t-disclosure-deal/7193/11 "2021-03-31T08:28:30Z")

</div>

Thanks Bala. Thanks for the info.

Since, now the situation is that I have to run query on one of the views in DREMIO but it fails for access denied for it is trying to access one of the file which is not present now.  
On trying to refresh the METADATA, it fails for another error saying one of the parquet file does not seem to be parquet.

What I have in mind is to try moving the corrupted parquet to some temp folder and then try refresh and then try the actual query.

But is there anything else which I can try. Also, is there any way in which I can handle such scenario where schema changes or something happens and some parquet gets corrupted.  
I mean how to avoid that or if it occurs is there a way to recover the parquet because we do not want to lose any data.

---

<div class="post-metadata">

### Author: ![balaji.ramaswamy](https://sea2.discourse-cdn.com/flex020/user_avatar/community.dremio.com/balaji.ramaswamy/32/843_2.png) [@balaji.ramaswamy](https://community.dremio.com/u/balaji.ramaswamy)
#### Post date: [April 1, 2021, 7:34am UTC](https://community.dremio.com/t/error-while-expanding-view-fdl-fdms-data-comp-views-uat-t-disclosure-deal/7193/12 "2021-04-01T07:34:51Z")

</div>

@Vinod

I am curious to see what this error on Parquet is? Do you have a query profile?

> **[How To Share A Query Profile](https://www.dremio.com/tutorials/share-query-profile-dremio/)**
>
> Tutorial explaining how to share a query profile in Dremio.

---

<div class="post-metadata">

### Author: ![Vinod](https://avatars.discourse-cdn.com/v4/letter/v/bbce88/32.png) [@Vinod](https://community.dremio.com/u/Vinod)
#### Post date: [April 1, 2021, 12:51pm UTC](https://community.dremio.com/t/error-while-expanding-view-fdl-fdms-data-comp-views-uat-t-disclosure-deal/7193/13 "2021-04-01T12:51:26Z")

</div>

The error pasted in the previous comment is from Job Profile’s Error tab only.  
Now, I cannot access the JOB profile of production as we are not allowed to.  
But had got the corrupted parquet moved to archive directory with prod. support’s help  
And the issue is resolved now.  
But the question remains what led to file getting corrupt.

---

<div class="post-metadata">

### Author: ![balaji.ramaswamy](https://sea2.discourse-cdn.com/flex020/user_avatar/community.dremio.com/balaji.ramaswamy/32/843_2.png) [@balaji.ramaswamy](https://community.dremio.com/u/balaji.ramaswamy)
#### Post date: [April 2, 2021, 4:14am UTC](https://community.dremio.com/t/error-while-expanding-view-fdl-fdms-data-comp-views-uat-t-disclosure-deal/7193/14 "2021-04-02T04:14:49Z")

</div>

@Vinod

Dremio only reads from these files and does not write so best to check with your ETL team

Thanks  
Bali
