Solved

Asset Class Import throwing error -Error: 1 items have not been processed successfully. View name: AssetClass.

  • 8 August 2023
  • 3 replies
  • 71 views

Badge

I am trying to import asset classes into Acumatica using an import scenario. I have attached the XML file for the scenario. When I run the scenario, I get the following error:

{"MessageText":"Error: 1 items have not been processed successfully. View name: AssetClass.","StackTrace":"   at PX.Data.PXFirstChanceExceptionLogger.ProfilerFirstChanceException(Object o, FirstChanceExceptionEventArgs args)\r\n   at  PX.Api.SyMappingUtils.ImportData(SYProcess graph, SYMappingActive mapping, SYImportOperation operation, SYMappingActive updated)\r\n   at PX.Api.SyMappingUtils.ProcessMapping(SYProcess graph, SYMappingActive mapping, SYImportOperation operation)\r\n   at PX.Api.SYImportProcessSingle.<>c__DisplayClass67_0.<PerformOperation>b__0()\r\n   at PX.Concurrency.CancellationIgnorantExtensions.RunWithCancellationViaThreadAbort(Action method, CancellationToken cancellationToken)\r\n   at PX.Concurrency.CancellationIgnorantExtensions.<>c__DisplayClass1_0.<ToCancellationViaThreadAbort>b__0(CancellationToken cancellationToken)\r\n   at PX.Concurrency.Internal.PXLongOperationPars.PopAndRunDelegate(CancellationToken cancellationToken)\r\n   at PX.Concurrency.Internal.RuntimeLongOperationManager.PerformOperation(PXLongOperationPars p)\r\n   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)\r\n   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)\r\n   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)\r\n   at PX.Concurrency.Internal.PXThreadPool.RunItem(RequestItem item)\r\n   at PX.Concurrency.Internal.PXThreadPool.Run()\r\n   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)\r\n   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)\r\n   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)\r\n   at System.Threading.ThreadHelper.ThreadStart()\r\n","ShortMessage":"Error: 1 items have not been processed successfully. View name: AssetClass.","ParentId":38,"RecordId":12,"RequestStartTime":2115.3211,"TraceMessageId":1945418096,"Source":"PX.Data","TraceType":"FirstChanceException","StackTraceId":833109847,"EventDateTime":"2023-08-08T16:34:55.907","ExceptionType":"PX.Data.PXSetPropertyException","EventDetails":null},


However, when I do a prepare on the scenario, I am able to see the record on the screen without any errors. This leads me to believe that the issue is with the import process itself, rather than with the XML file.

I am a novice in Acumatica, so I am not sure what could be causing this error. Any guidance you can provide would be greatly appreciated.
 

icon

Best answer by abhijit 9 August 2023, 04:26

View original

3 replies

Badge

This is now resolved. I was missing a very basic and important item in the import scenario. In the help file, it clearly states

 

At the end of the mapping of the scenario that imports or updates data in the system, to save the imported record to the database, you have to insert a row with the <Action: Save> action.

Userlevel 7
Badge

Thank you for sharing your solution with the community @abhijit!

Badge

Thank you for sharing your solution with the community @abhijit!

I wish the system would issue a warning when the <Save> is missing in a scenario instead of this cryptic message.

Reply


About Acumatica ERP system
Acumatica Cloud ERP provides the best business management solution for transforming your company to thrive in the new digital economy. Built on a future-proof platform with open architecture for rapid integrations, scalability, and ease of use, Acumatica delivers unparalleled value to small and midmarket organizations. Connected Business. Delivered.
© 2008 — 2024  Acumatica, Inc. All rights reserved