web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

Edit in Excel won't properly connect

(1) ShareShare
ReportReport
Posted on by 20
Recently a user complained that on the production platform of BC SaaS he used the "Edit in Excel" share option for the Items List, but the generated Excel file wouldn't properly connect and download the list, raising error 
Error Loading Metadata

Details:
Please check server connection, verify the current user has proper access, and try again. Error message: 'Metadata was unable to be retrieved for entity Item_Card_Excel as it was not found.'
 
I tried in my dev sandbox ad got the same issue.
 
Copilot advised to change language to English and retry. I was already using "English (UK)" but changed to "English (US)", just in case. Also the regional setting was changed accordingly. Repeated my tests. Same error.
 
Checked the Web Services, located the "Item_Card_Excel" web service (page 30) and it was there. Deleted the web service, repeated the "Edit in Excel" from the Items List. The web service was automatically recreated and published, but the newly generated "Item Card (2).xlsx" also didn't connect, raising the same error.
 
Tried the "Item_Card_Excel" Web Service hyperlink in Postman. Got error 404.
 
tried the "Vendor_Card_Excel" Web Service hyperlink in Postman. Got a complete valid XML response.
 
 
On another hand, "Open in Excel" for Items List works perfectly. Also, "Edit in Excel" for the Vendors List works perfectly. This one also uses its published web service on BC.
 
Checked the metadata document that one can download on the Web Services page. Found:
 
<NavigationProperty Name="Vendor_Card_Excel" Type="Collection(NAV.Vendor_Card_Excel)" ContainsTarget="true"/>
 
But nothing there, about "Item_Card_Excel". It looks now pretty obvious why the thing doesn't work. When the "Item_Card_Excel" web service is created, it isn't providing any metadata, getting confused.
 
 
Any ideas, please?
I have the same question (0)
  • JL-23101125-0 Profile Picture
    20 on at
    Update:
     
    Tried the "Edit in Excel" on a plain sandbox without any custom extensions. It worked.
     
    Got back to my sandbox where it didn't work previously, and started removing my extensions. Identified one culprit after removing it. "Edit in Excel" now works.
     
    Will need to investigate my AL code in that extension, created about 2 years ago, to try to determine what's on it that might be interfering.
     
    Will post here any positive findings.
  • Suggested answer
    JL-23101125-0 Profile Picture
    20 on at
    Update 2:
     
    After investigating my BC extension, found that if I'd publish a page extension to the Item Card, the "Edit in Excel" would fail. That page has 11 additional fields in a group, provided by the table extension. 
     
    After a considerable number of trial/error, by first supressing the group, then the fields, then publishing one by one, Murphy's law applied as always (joke). The last field on the page was the culprit:
     
                    field("Country-Region of Origin Code"; Rec."Country/Region of Origin Code")
                    {
                        ToolTip = 'Specifies a code for the country or region where the Item was manufactured.';
                        ApplicationArea = All;
                        Description = 'A****.6';
                    }
     
    The size of the field name was 29; the "-" and the "/" were under sight, but because the "Edit in Excel" worked while having this field on the table extension, my attention went to the name of the field on the page, not the Rec. fieldname.
     
    Started to test with "Country Region of Origin Code". Still 29 chars. Didn't work.
     
    Tested with "CountryRegion of Origin Code". 28 chars. That works.
     
    Tested with "Country-Region ofOrigin Code". 28 chars. That also works - the "-" is not causing the problem. The size of the fieldname is.
     
    Ended-up adopting the fieldname "Country/Region of Origin". Even less characters and adopts the "/". And it works with "Edit in Excel".
     
    Happy days.
     
    Conclusion: Having more than 28 chars on a fieldname on a page extension to the Item table (will tend to believe this would also affect, e.g. the Vendor Card, was causing issues on the "Edit in Excel" functionality on the Excel side,, that wasn't able to retrieve the required dynamic metadata. 
     
     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,166

#2
YUN ZHU Profile Picture

YUN ZHU 1,183 Super User 2025 Season 2

#3
Dhiren Nagar Profile Picture

Dhiren Nagar 1,175

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans