Native error code 193

Hello I have a spreadsheet using PowerQuery to pull data from a online API.  It used to work fine, but now it gives the error message nativeerrorcode:193

Hello I have a spreadsheet using PowerQuery to pull data from a online API.  It used to work fine, but now it gives the error message nativeerrorcode:193

What can I do to fix this?

Error Message:

Cannot create process. NativeErrorCode:193

Stack Trace:

   at Microsoft.Mashup.Evaluator.ContainerProcess.Start()
   at Microsoft.Mashup.Evaluator.ContainerFactory.Container..ctor(String exePath, String exitMutexName, Int32 containerId, Int32 maxWorkingSetInMB)
   at Microsoft.Mashup.Evaluator.ContainerFactory.CreateContainer()
   at Microsoft.Mashup.Evaluator.ContainerPoolContainerFactory.CreateContainer()
   at Microsoft.Mashup.Evaluator.RemoteDocumentEvaluator.CreateContainer()
   at Microsoft.Mashup.Evaluator.RemoteDocumentEvaluator.BeginGetResult[T](RemoteEvaluation`1 evaluation)
   at Microsoft.Mashup.Evaluator.RemoteDocumentEvaluator.BeginGetResult[T](RemoteEvaluation`1 evaluation)
   at Microsoft.Mashup.Evaluator.ConcurrentDocumentEvaluatorFactory.Evaluation`1.BeginEvaluation()
   at Microsoft.Mashup.Evaluator.SafeThread2.<>c__DisplayClass15.<Wrap>b__14(Object o)
   at Microsoft.Mashup.Evaluator.SafeThread2.<>c__DisplayClass15.<Wrap>b__14(Object o)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
   at System.Threading.ThreadPoolWorkQueue.Dispatch()

Invocation Stack Trace:

   at Microsoft.Mashup.Host.Document.ExceptionExtensions.GetCurrentInvocationStackTrace()
   at Microsoft.Mashup.Client.ClientShared.UnexpectedExceptionHandler.HandleException(Exception e)
   at Microsoft.Mashup.Host.Document.ExceptionHandlerExtensions.HandleExceptions(IExceptionHandler exceptionHandler, Action action)
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
   at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
   at System.Delegate.DynamicInvokeImpl(Object[] args)
   at System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEntry tme)
   at System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object obj)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry tme)
   at System.Windows.Forms.Control.InvokeMarshaledCallbacks()
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
   at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
   at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
   at System.Windows.Forms.Application.ThreadContext.LocalModalMessageLoop(Form form)
   at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
   at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
   at System.Windows.Forms.Form.ShowDialog(IWin32Window owner)
   at Microsoft.Mashup.Client.Excel.EditorManager.ShowModalEditor(IWin32Window ownerWindow, IWorkbookIdentity workbookIdentity, BaseEditorDialogParameters editorDialogInitializationContext, Queries queries, Action`1 viewInitializer)
   at Microsoft.Mashup.Client.Excel.DialogManager.EditNewQuery(Query query, IWin32Window ownerWindow, IWorkbookIdentity workbookIdentity, JsonUpdate builderResults, Boolean isBlankQuery)
   at Microsoft.Mashup.Client.Excel.ExcelDataImporter.OnImportSuccess(IEnumerable`1 importedQueries, DataImportDestination destination)
   at Microsoft.Mashup.Client.ClientShared.DataImporter.OnGetPreviewResult(PreviewResult preview, Query query, String sourceID)
   at Microsoft.Mashup.Client.ClientShared.PreviewResultPolling.<GetPreviewResult>b__3()
   at Microsoft.Mashup.Host.Document.ExceptionHandlerExtensions.HandleExceptions(IExceptionHandler exceptionHandler, Action action)
   at System.Windows.Forms.Timer.TimerNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
   at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
   at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
   at System.Windows.Forms.Application.ThreadContext.LocalModalMessageLoop(Form form)
   at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
   at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
   at System.Windows.Forms.Form.ShowDialog(IWin32Window owner)
   at Microsoft.Mashup.Client.ClientShared.WindowManager.ShowDialog[T](T form, IWin32Window owner)
   at Microsoft.Mashup.Client.ClientShared.Ux.FloatingDialog.SimpleDialog.StatusDialog.ShowStatusDialog(IWin32Window owner, Action cancelCallback, Nullable`1 showTimeout)
   at Microsoft.Mashup.Client.ClientShared.PreviewResultPolling.<>c__DisplayClass5.<InitializeStatusDialog>b__4()
   at Microsoft.Mashup.Host.Document.ExceptionHandlerExtensions.HandleExceptions(IExceptionHandler exceptionHandler, Action action)
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
   at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
   at System.Delegate.DynamicInvokeImpl(Object[] args)
   at System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEntry tme)
   at System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object obj)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry tme)
   at System.Windows.Forms.Control.InvokeMarshaledCallbacks()
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

  • Remove From My Forums
  • Question

  • I recently had the SQL Server 2008 R2 Client installed on my Windows XP laptop.  Ever since, when I try to create a new System DSN connection in the ODBC Administrator using the SQL Server 2008 Native Driver (v10.0 is what shows up in the ODBC Administrator)
    the process fails with «The setup routines for the SQL Server Native Client 10.0 ODBC Driver could not be loaded due to system error code 193».  Everything that I’ve been able to find out about this system error suggests that this problem is caused
    by an error in the way the driver was registered when it was installed (that it was registered as 64 bit when it is really the 32 bit version or vice-versa).  Is there an easy registry correction that will fix this problem?

Answers

  • Hi ElkinsEcon,

    Regarding to your description, seems the installation of the driver mis-registered a 64 bit driver but it is a  32 bit or vise-versa version. As the ODBC driver listing is determined by registry keys that are set on installation of the driver, it is likely
    that the driver installer has a fault which is causing it to be mis-registered with ODBC.

    Please try to load either a 32 bit driver from the 64 bit version (C:windowssystem32odbcad32.exe) or trying to load a 64 bit driver from the 32 bit version (C:windowssyswow64odbcad32.exe).

    Additional if you build and then run an application as a 32-bit application on a 64-bit operating system, the workaround is try to create the ODBC data source by using the ODBC Administrator tool in %windir%SysWOW64odbcad32.exe. To indicate the type of DSN,
    you can add «_32» to the 32-bit user DSNs and «_64» to the 64-bit user DSNs.

    More information, please refer to
    The 32-bit version of the ODBC Administrator tool and the 64-bit version of the ODBC Administrator tool display both the 32-bit user DSNs and the 64-bit user DSNs in a 64-bit version of the Windows operating system


    Regards, Amber zhang

    • Marked as answer by

      Tuesday, January 17, 2012 8:00 AM

Issue Type: Bug

I have this task decimate and plot csv executing a python script plotting the csv I’m editing, and several others which executs cmd as dune utop :

{
			"label": "dune utop",
			"command": "external_tools/_run_config/dune_utop.cmd"
		},
		{
			"label": "decimate and plot csv",
			"command": "external_tools/show_data/show_task.py",
			"args": ["${relativeFile}","${input:decimateFactor}"]
		}

	],
	"inputs": [
		{
			"id": "decimateFactor",
			"description": "Decimate factor :",
			"default": "1000",
			"type": "promptString"
		}
	]

The dune task works well but the python one just doesn’t :

> Executing task in folder ocaml-tsp: C:UsersClementDocumentsprepatipeocaml-tspexternal_toolsshow_datashow_task.py logsMCTS-att48-7s-Random-Min_spanning_tree-Two_opt_optimization_200len_100iter_1sall_scores.csv 1000 <

Échec du lancement du processus de terminal : A native exception occurred during launch (Cannot create process, error code: 193).

Le terminal sera réutilisé par les tâches, appuyez sur une touche pour le fermer.

However when I copy paste the task in a vscode cmd, it works well :

Microsoft Windows [version 10.0.19043.1466]
(c) Microsoft Corporation. Tous droits réservés.

C:UsersClementDocumentsprepatipeocaml-tsp>C:UsersClementDocumentsprepatipeocaml-tspexternal_toolsshow_datashow_task.py logsMCTS-att48-7s-Random-Min_spanning_tree-Two_opt_optimization_200len_100iter_1sall_scores.csv 1000
debugging...
file decimated

By the way this is the python script called :

from show_data import decimate
import matplotlib.pyplot as plt
import os
import sys

print("debugging...", flush=True)
os.chdir("C:/Users/Clement/Documents/prepa/tipe/ocaml-tsp/")
factor = 1000 if len(sys.argv) <= 2 else int(sys.argv[2])
result = decimate(sys.argv[1], factor)

plt.plot(result['timestamp'], result['length'])
plt.show()

VS Code version: Code 1.63.2 (899d46d, 2021-12-15T09:40:02.816Z)
OS version: Windows_NT x64 10.0.19043
Restricted Mode: No

System Info

Item Value
CPUs Intel(R) Core(TM) i7-10510U CPU @ 1.80GHz (8 x 2304)
GPU Status 2d_canvas: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
rasterization: enabled
skia_renderer: enabled_on
video_decode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
Load (avg) undefined
Memory (System) 7.80GB (0.97GB free)
Process Argv —crash-reporter-id 8a98e7f6-95cb-41bb-86c4-651ceca005df
Screen Reader no
VM 0%

Extensions (1)

Extension Author (truncated) Version
vscode-language-pack-fr MS- 1.63.3

A/B Experiments

vsliv368:30146709
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
pythonvspyl392cf:30425750
pythontb:30283811
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
pythondataviewer:30285071
vscod805:30301674
pythonvspyt200:30340761
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
vsaa593cf:30376535
vsc1dst:30428979
pythonvs932:30410667
vscop804cf:30404767
vscop341:30404997
vsrem710:30416614
vsbas813:30426126

Причин появления несколько: неполная установка, повреждение реестра из-за изменения (установки или удаления), вредоносное ПО и т.д.

Как исправить?

Просканируйте ПК на вирусы вредоносное ПО.

Есть вероятность, что проблема связана с заражением компьютера. Вирусы повреждают или удаляют файлы. Поэтому очистка, вероятно, решит возникшую проблему.

Очистите систему от временных документов и папок.

Как запустить очистку диска в Виндовс XP, Vista, 7, 8 и 10?

  • Нажимаем Winkey + R.
  • Печатаем «cleanmgr» -> Enter.

  • Откроется диалоговое окно «очистка диска», содержащее флажки. В большинстве, категория «временные файлы» занимает большую часть.
  • Установите флажки напротив не использующихся категорий и примените.

  • Поставьте автоматическое обновление драйверов устройств.

Ошибки 193 иногда связаны с повреждением или устареванием драйверов

  • Запустите sysdm.cpl. Для этого используйте кнопки «Winkey + R», вбейте «sysdm.cpl» в командной строке и тапните Enter.

  • В окне «свойства системы» кликните вкладку «оборудование».

  • В «параметрах установки устройств» проверьте настройку автоматического обновления.

  • На той же вкладке найдите диспетчер устройств.

  • Не установленные или поврежденные драйверы обозначаются желтым знаком восклицания.

  • Обновите автоматически или вручную.

Используйте «восстановление системы Виндовс» для отмены последних изменений.

Это вернет файлы и программы на вашем ПК к тому времени, когда все работало нормально. Произведите следующие шаги:

  • Нажмите «пуск».
  • В поисковой строке введите «Восстановление системы» и нажмите «ок».
  • В окне результатов выберите «Восстановление».

  • По инструкциям уже «мастера настроек» завершите работу.
  • Запустите проверку системных файлов Windows («sfc /scannow»).

Весьма удобный инструмент, позволяющий просканировать и исправить поврежденные файлы (включая те, что имеют отношение к ошибка 193).

  • Выберите «пуск».
  • Введите «cmd».

  • Запустите от имени администратора.
  • Наберите «sfc /scannow» и Enter.

 

  • Проверка начнет сканирование на наличие проблем.
  • Завершите процедуру по инструкциям на экране.

Понравилась статья? Поделить с друзьями:
  • Native error code 0x80090326
  • Native error code 0x80090302
  • Native error 265929
  • Native error 00012
  • Native error 00008