MS Access 2007 :When running an a saved excel import we get "The specification failed to execute. Try recreating the specification." What could I try to solve this issue ?

Please advise.
itbabeAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Rey Obrero (Capricorn1)Commented:
From Access Ribbon

External Data > Import Group, click on Excel

select the button for  > Import the source data ...
click the Browse button and locate and select the excel file you want to import, click OK

follow the Import Spreadsheet wizard . click on Next  until you reach the part to specify a table name, click finish

in the window that show Save Import Steps, check the box and give the Import step a name or accept the proposed name and click on Save Import

you can then use that saved import steps next time you import the excel file with fresh information.
Jeffrey CoachmanMIS LiasonCommented:
You did not post any specifics...

Ultimately you cannot just make one Import spec and use it to import "different" files.
The spec is specific to the file it was created for.
Any file that you try to import using the same spec may fail unless it has the EXACT same parameters as the original file.
The same number of fields
The same datatype
The same delimiters
...ect...

JeffCoachman

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Rey Obrero (Capricorn1)Commented:
post at #a40972773 should resolve this issue.
T JCommented:
An addition to Jeffrey Coachman's "Accepted Solution" above:

When running a Saved Import on an Excel file (I'm using MS Access Professional Plus 2016), not only must the number of fields, data types, etc. be the same as they were when you created the original specification, but even the spreadsheet tab name (at the bottom of the worksheet) must be the same.

I wrote up a multi-step process which included a step to import spreadsheet data differing only on a date range. I used the same file name (e.g., FileName_WorkingDates) and columns every time I created the spreadsheet, but I would modify the tab name as a reference to go back to if I needed to check what date range I was working on. Every time I ran the import, I would get the error in this post's title. However, that message was actually preceded by another error message:

"<original tab name>$" is not a valid name. Make sure that it does not include invalid characters or punctuation and that it is not too long.

It took me some while to figure out that the <original tab name> text in this error message was what I had entered in the tab in the file used when I created and saved the import. Based on Jeffrey's post, I decided to change the file's tab name to <original tab name>, and voila, the import worked.

Thanks for this post.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Access

From novice to tech pro — start learning today.