Solved

OData feed - DataSource Error in Power BI

  • 24 September 2021
  • 6 replies
  • 129 views

When accessing a GI through OData in PowerBi or Excel, I get the following error message:

DataSource.Error: We couldn't parse OData response result.  Error: Unexpected end of file has occurred. The following elements are not closed: feed. Line 6, position 120.
Details:
    DataSourceKind=OData
Does anyone know what this means, and how this can be solved?

icon

Best answer by BenjaminCrisman 4 October 2021, 16:12

View original

6 replies

Userlevel 7
Badge +10

Hi @suemackeown13 Is that GI is with large dataset ?

If yes, add some conditions at GI and make smaller dataset and check once

Hi. No it is currently only about 4700 records.

Userlevel 4
Badge +1

Hi @suemackeown13 ! For this issue I would check to see if there are calculated fields used in expressions which could be throwing an error for a single result or small sub-set of results. I would recommend to simplify the GI results by trimming the results, conditions, or even relations until the GI is able to be loaded via OData and then build back on to it until it is easier to identify which part is triggering the error.

Sometimes I’ve seen something like an expressions which relies on a calculation and can throw a divide by zero error for a single result, which the GI may be able to handle and still display results, but if there are any errors in the GI when attempting to grab over OData this will almost always result in failure.

Thank you Benjamin. I think that will be the best option, as the GI is quite complex. 

Userlevel 4
Badge +1

@suemackeown13 Actually, I was doing some research on a different case and I found that there is a known issue with using ARAdjust table in a GI and then viewing this in OData, same error is generated.

It may be that until the fix version is implemented you will need to use something like ARRegister if possible to get this data, if applicable.

I found adding the $select with the names (captions from the Results Grid) of the GI columns resolved the issue

https://<site.com>/OData/<Tenant>/GenericInquiryName?
$format=json
&$select=ReferenceNbr , Field1, Field2, Field3
&$filter=ReferenceNbr eq '1234567'

 

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 — 2020  Acumatica, Inc. All rights reserved