Question

Unable to Submit Financial Report using Screen-Based SOAP API

  • 15 July 2023
  • 0 replies
  • 28 views

Hi,

I’m using Screen-Based SOAP API to generate PDF reports and saving them to local folders. It all works fine besides the financial reports.

For our balance sheet, we have three parameters: Branch, Ledger, and Financial Period. For some reason, the schema does not contain the Branch and Ledger as part of the parameters. It only contains financial period in the parameter list. But then I tried to set a default value for the Branch and Ledger in the report setting, it’s still giving me the below error:

System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.ArgumentNullException: Value cannot be null.
Parameter name: key
at System.ThrowHelper.ThrowArgumentNullException(ExceptionArgument argument)
at System.Collections.Generic.Dictionary`2.FindEntry(TKey key)
at PX.Data.PXViewCollection.TryGetOrCreateValue(String key, PXView& value)
at PX.Data.PXViewCollection.get_Item(String key)
at PX.Api.ScreenUtils.Submit(String screenId, IReadOnlyList`1 commands, SchemaMode schemaMode, PXGraph& graph, String& redirectContainerView, String& redirectScreen, Boolean mobile, Dictionary`2 viewFilters, IGraphHelper graphHelper)
at PX.Api.Services.ScreenService.Submit(String id, IEnumerable`1 commands, SchemaMode schemaMode, Boolean mobile, PXGraph& forceGraph, String& redirectContainerView, String& redirectScreen, Dictionary`2 viewFilters, IGraphHelper graphHelper)
at PX.Api.Services.ScreenService.Submit(String id, IEnumerable`1 commands, SchemaMode schemaMode)
at PX.Api.Soap.Screen.ScreenGate.Submit(Command[] commands)

 


0 replies

Be the first to reply!

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