
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
We are upgrading from ACADE 2012 to 2016. The migration utility is great, but we wanted to take it one step further with this implementation and connect the ACADE catalog directly to our part master information in SQL (which is inderectly linked to our ERP system). The best way I could think of to do this was to create a view in SQL and then create a linked table to that view. The original MISC_CAT table is then renamed, and the newly created linked table renamed to MISC_CAT. After some trial and error with the linked table creation, it worked. The problem is, now it doesn't and I have no idea why.
Using the catalog browser interface, causes ACADE to crash when I enter a search term and click the magnifying glass button. I get a dialog with the message: "FATAL ERROR: Unhandled e0434352h Exception at fd74965dh". I have reported the bug a couple times, but have not had a response.
If I use the edit component dialog (as opposed to the catalog browser) and the lookup function to query the catalog, I get a different result. After entering a search term and searching, edit component dialog just closes on its own. However, the following message and stack trace are recorded in the command line:
Extracting item numbers in use . . .System.ArgumentException: An item with the same key has already been added.
at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
at Autodesk.Electrical.Database.AccessDbCatalogStore.getManufacturers(String catName, Dictionary`2& manufacturers)
at Autodesk.Electrical.Database.CataLogSearch.getManufacturers()
at Autodesk.Electrical.Database.CataLogSearch.buildQueryLocal(String& queryStr, List`1 partials, List`1 phrases, List`1 orOperands, String blockName, Int32[] indexes)
at Autodesk.Electrical.Database.CataLogSearch.executeSearch(String searchStr, String blockName, Boolean excludeSubassemblies, ExceptionHandler exceptionHandler, Int32[] indexes)
at Autodesk.Electrical.SharedControl.CatalogGridViewModel.DoSearch(Boolean isFirstTimeLookup, ExceptionHandler exceptionHandler)
at Autodesk.Electrical.SharedControl.CatalogGrid.DoSearch(Object sender, ExecutedRoutedEventArgs e)
at System.Windows.Input.CommandBinding.OnExecuted(Object sender, ExecutedRoutedEventArgs e)
at System.Windows.Input.CommandManager.ExecuteCommandBinding(Object sender, ExecutedRoutedEventArgs e, CommandBinding commandBinding)
at System.Windows.Input.CommandManager.FindCommandBinding(CommandBindingCollection commandBindings, Object sender, RoutedEventArgs e, ICommand command, Boolean execute)
at System.Windows.Input.CommandManager.FindCommandBinding(Object sender, RoutedEventArgs e, ICommand command, Boolean execute)
at System.Windows.Input.CommandManager.OnExecuted(Object sender, ExecutedRoutedEventArgs e)
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
at System.Windows.Input.RoutedCommand.ExecuteImpl(Object parameter, IInputElement target, Boolean userInitiated)
at MS.Internal.Commands.CommandHelpers.CriticalExecuteCommandSource(ICommandSource commandSource, Boolean userInitiated)
at System.Windows.Controls.Primitives.ButtonBase.OnClick()
at System.Windows.Controls.Button.OnClick()
at System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e)
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
at System.Windows.UIElement.OnMouseUpThunk(Object sender, MouseButtonEventArgs e)
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
at System.Windows.Input.InputManager.ProcessStagingArea()
at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
at System.Windows.Window.ShowHelper(Object booleanBox)
at System.Windows.Window.ShowDialog()
at Autodesk.AutoCAD.ApplicationServices.Core.Application.ShowModalWindow(IntPtr owner, Window formToShow, Boolean persistSizeAndPosition)
at Autodesk.Electrical.AceCatalogBrowser.WindowedHost.ShowDialog()
at Autodesk.Electrical.AceCatalogBrowser.LookupDlg.CatLkup(ResultBuffer args)
at Autodesk.AutoCAD.Runtime.CommandClass.InvokeWorker(MethodInfo mi, Object commandObject, Boolean bLispFunction)
at Autodesk.AutoCAD.Runtime.CommandClass.InvokeWorkerWithExceptionFilter(MethodInfo mi, Object commandObject, Boolean bLispFunction)
at Autodesk.AutoCAD.Runtime.CommandClass.CommandThunk.InvokeLisp(); error: ADS request error
Clearly the problem is with the linked table, as I can rename the original MISC_CAT table (not linked to SQL) and it works just fine. I have no clue when this stoppped working (sometime over the last 2 weeks). I have tried using all available drivers to create the table: the generic SQL Server, SQL Server Native Client 10.0, and SQL Server Native Client 11.0. I've also tried linking the table with and without primary keys.
Thanks,
Jeremiah
Solved! Go to Solution.