i have the SAS DI in 2 different environments. one is SAS DI version 4.2.1 and the other one is 4.8.
We're trying to export the package from 4.8 and trying to import it in 4.2.1 .
But we're getting an error as "The SAS package specified is not a valid export package.the required metadata file was not found in the package".
BUT, when we tried to export the package from SAS DI 4.2.1 and import it in SAS DI 4.8, we able to import the package without that error message.
Can someone please tell me why the error is occuring ? Is it the issue really matters here with the versions ? or anyother issues ?
Please suggest.
Both DIS functionality and the underlying metadata model has evolved from DIS4.2.1 to DIS4.8.
I guess metadata backward compatibility in such a scenario would be close to impossible to achieve. It's certainly not available with DIS .spk packages.
SAS code on the other hand is highly backward compatible and as long as the DIS4.8 generated code doesn't use functionality not available with the SAS version you're using in the environment where DIS4.2 connects to then the DIS4.8 generated code should be executable in your older environment (as long as everything else like paths in the code are identical between the environments).
Also: When migrating metadata (.spk) to a newer DIS version then be aware that this newer DIS version will sometimes generate different (normally improved) SAS code. For this reason you should redeploy and retest your jobs after migration to a newer DIS version - or make the conscious decision to not redeploy the jobs but then when changing earlier migrated DIS jobs later on testing needs to cover the whole job and not only the change.
Both DIS functionality and the underlying metadata model has evolved from DIS4.2.1 to DIS4.8.
I guess metadata backward compatibility in such a scenario would be close to impossible to achieve. It's certainly not available with DIS .spk packages.
SAS code on the other hand is highly backward compatible and as long as the DIS4.8 generated code doesn't use functionality not available with the SAS version you're using in the environment where DIS4.2 connects to then the DIS4.8 generated code should be executable in your older environment (as long as everything else like paths in the code are identical between the environments).
Also: When migrating metadata (.spk) to a newer DIS version then be aware that this newer DIS version will sometimes generate different (normally improved) SAS code. For this reason you should redeploy and retest your jobs after migration to a newer DIS version - or make the conscious decision to not redeploy the jobs but then when changing earlier migrated DIS jobs later on testing needs to cover the whole job and not only the change.
thanks Patrick for Your response 🙂 helpful
Hi @JoshuaHarris,
I'm glad you found some useful info! If @Patrick's reply was the exact solution to your problem, can you "Accept it as a solution"? Or if it was particularly helpful, feel free to "Like" it. This will help other community members who may run into the same issue know what worked.
Thanks!
Anna
Join us for SAS Community Trivia
SAS Bowl XXIX, The SAS Hackathon
Wednesday, March 8, 2023, at 10 AM ET | #SASBowl
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
Need to connect to databases in SAS Viya? SAS’ David Ghan shows you two methods – via SAS/ACCESS LIBNAME and SAS Data Connector SASLIBS – in this video.
Find more tutorials on the SAS Users YouTube channel.