//This gets rid of the exception but we should not remove all the names
//currentWorkbook.Worksheets.Names.Clear();
var b1 = userWorkbook.HasExernalLinks();
//This does not helps. Furthemore, both b1 and b2 are True...
userWorkbook.RemoveExternalLinks();
var b2 = userWorkbook.HasExernalLinks();
mainWorkbook.Combine(userWorkbook);
MemoryStream ms = new MemoryStream();
//This causes the "Object reference not set to an instance of an object." at Aspose.Cells.ExternalSheetCollection.FindSupbook(Int32 refIndex)...
mainWorkbook.Save(ms, SaveFormat.Xlsx);
The files being used are attached. Please see the comments in the code. 2.xlsx contains a number of external references (names). .RemoveExternalLinks() does not work in this case. Before and after .HasExternalLinks() method returns True. Anyway, I think there should be no exception in any cases.
Could you please look into it asap as we experience the issue in production.
Your issue is under evaluation/investigation, we are working on your issue. Once we figure it out, we will let you know here immediately. If it takes more days, we may provide you an eta for it.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.