BookmarkSubscribeRSS Feed
skarnew
Calcite | Level 5

Hi,

 

i've a table who's metadata registred in a library but don't have corresponding physcial table existing.

 

My library is pre-assigned by metadata engine.

 

When i try to use Update library metadata tool, option report content of library as registred in the metadata repository, I got this error, why?

 

NOTE: Libref C_PA was successfully assigned as follows:
Engine: META
Physical Name: d:\dwh\PA\CDS\Data

 

ERROR: File C_PA.PERIOD_BASE.DATA does not exist.
ERROR: The metadata for the table/view C_PA.PERIOD_BASE does not exist.

 

Documentation says "

Option NameDescription

Report on the contents of the library, as registered in the metadata repository

generates a report of the library's contents based on the table definitions in the metadata repository

 

Thanks

5 REPLIES 5
Sajid01
Meteorite | Level 14

Hello @skarnew 
Your library is referencing a physical location d:\dwh\PA\CDS\Data and there are no tables existing.
From the error message it appears that you are trying to perform some operation on the non-existent table /dataset PERIOD_BASE. The error message is apparently correct.
What exactly are you trying to do?


SASKiwi
PROC Star

You can't update a table's registered metadata definition if the underlying table does not exist. Either delete the table's metadata definition or recreate the underlying physical table so that the update metadata process can work successfully. 

skarnew
Calcite | Level 5

Hi,

 

many thanks, so the documentation is not accurate.

 

So when a create a duplicate another table and renamed it as PERIOD_BASE it said 

 

ERROR: Variable ABSENCE_ID is not on file C_PA.PERIOD_BASE.

 

So i don't understand what is the purpose of the option 

 

skarnew_0-1709715897942.png

 

apparently SAS look  on physical table rather than the metada repository

Why this action is named like this then? It's confusing...

 

SASKiwi
PROC Star

Personally I've never found any great benefit to registering SAS tables in metadata so we simply don't do it.

 

Maybe the second option in your screenshot is more useful  - to report differences between the metadata definitions and the physical tables.

skarnew
Calcite | Level 5
Hi Kiwi,

many thanks for your answer. I´m working with data integration studio so working with metadata is mandatory.

Yes your proposition to use the second option in the menu what my first attempt but as I get error I switch to thé first option.

Finally the problem was comming from metadata table with the same name, same physical name but one colum has different lenght. No other choice to take à look to the tables one by one.

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 5 replies
  • 531 views
  • 2 likes
  • 3 in conversation