I have a development instance of Acumatica 2025R2 setup and am testing sending requests to the OData DAC endpoints.
Specifically I am targeting the PX_Objects_CS_Segment endpoint and have noticed an issue when including the Length field in the $select parameter.
When testing in Postman, these requests return the expected data:
- {{EndpointURLDAC}}/t/SalesDemo/api/odata/dac/PX_Objects_CS_Segment
- {{EndpointURLDAC}}/t/SalesDemo/api/odata/dac/PX_Objects_CS_Segment?$top=5
- {{EndpointURLDAC}}/t/SalesDemo/api/odata/dac/PX_Objects_CS_Segment?$select=SegmentID,DimensionID,Descr,EditMask,FillCharacter,tstamp,LastModifiedDateTime
These requests result in ECONNRESET errors:
- {{EndpointURLDAC}}/t/SalesDemo/api/odata/dac/PX_Objects_CS_Segment?$select=SegmentID,DimensionID,Descr,EditMask,FillCharacter,tstamp,LastModifiedDateTime,Length
- {{EndpointURLDAC}}/t/SalesDemo/api/odata/dac/PX_Objects_CS_Segment?$select=Length
Is there something special about the Length field that the DAC endpoint is having an issue with? Or maybe there is something to do with how I deployed the development instance of Acumatica?
If I send similar requests (with the Length field in the $select parameter) to these DAC endpoints (all of which have Length fields in the metadata) a similar ECONNRESET error is returned:
- PX_Objects_GL_FinPeriods_MasterFinPeriod
- PX_Objects_CS_Dimension
- PX_Objects_CS_CSBox
- PX_Objects_GL_FinPeriods_OrganizationFinPeriod
- PX_Objects_IN_INItemBoxEx
- PX_Objects_SO_SOPackageDetail
- PX_Objects_SO_SOPackageInfo
There are obvious workarounds for this if the issue is internal (ie: since I need the Length field in the returned results, I can just omit the $select parameter in the request), but if this is a local configuration issue and won’t be present at a live client, I want to solve it that way.
Thank you.