Skip to main content
Solved

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


abhijit
Varsity I
Forum|alt.badge.img

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.
 

Best answer by abhijit

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.

View original
Did this topic help you find an answer to your question?

3 replies

abhijit
Varsity I
Forum|alt.badge.img
  • Author
  • 43 replies
  • Answer
  • August 9, 2023

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.


Chris Hackett
Community Manager
Forum|alt.badge.img
  • Acumatica Community Manager
  • 2755 replies
  • August 9, 2023

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


abhijit
Varsity I
Forum|alt.badge.img
  • Author
  • 43 replies
  • August 9, 2023
Chris Hackett wrote:

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


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings